Skip to content

Commit 893c425

Browse files
authored
Merge pull request #4 from saikatsahana77/saikat_branch
Added the locate command.
2 parents f0a75e9 + 79a96e2 commit 893c425

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,9 +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-
159+
160160
__21. ```chmod``` command__
161161
- chmod is used to make a file executable and to change the permissions granted to it in Linux
162162
- ```chmod +x <file_name>``` : make a file executable.
163163
- ```chmod <permission> <file_name>``` : a set of flags associated with each file determines who can access that file, and how they can access it.
164164
- Example : ```chmod 755 main.py | chmod +x main.py``` : used to make the file `main.py` executable.
165+
166+
__22. ```locate``` command__
167+
- used to locate a file in a Linux system, just like the search command in Windows.
168+
- useful when you don't know where a file is saved or the actual name of the file.
169+
- ```locate -i hello```: -i argument with the command helps to ignore the case, will also fetch files with Hello or HELLO or heLLo etc.
170+
- ```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.
171+

0 commit comments

Comments
 (0)