Skip to content

Commit 79a96e2

Browse files
authored
Merge branch 'main' into saikat_branch
2 parents 23e54d6 + f0a75e9 commit 79a96e2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,16 @@ __20. ```sort``` command__
156156
- ```sort --ignore-case <file_name>``` : to sort case insensitive, use ```-n``` to sort numerically.
157157
- ```sort -u <file_name>``` : to remove duplicated.
158158
- Example : ```ls | sort``` : used with list command.
159+
160+
__21. ```chmod``` command__
161+
- chmod is used to make a file executable and to change the permissions granted to it in Linux
162+
- ```chmod +x <file_name>``` : make a file executable.
163+
- ```chmod <permission> <file_name>``` : a set of flags associated with each file determines who can access that file, and how they can access it.
164+
- Example : ```chmod 755 main.py | chmod +x main.py``` : used to make the file `main.py` executable.
159165

160-
__21. ```locate``` command__
166+
__22. ```locate``` command__
161167
- used to locate a file in a Linux system, just like the search command in Windows.
162168
- useful when you don't know where a file is saved or the actual name of the file.
163169
- ```locate -i hello```: -i argument with the command helps to ignore the case, will also fetch files with Hello or HELLO or heLLo etc.
164170
- ```locate -i *hello*world*```: * helps you to find the files if you remember only some words of the filename, separate them with *, for ex here linux will find any filename with the words "hello" and "world" in them.
165171

166-

0 commit comments

Comments
 (0)