Skip to content

Commit 23e54d6

Browse files
Update README.md
1 parent aba2855 commit 23e54d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,10 @@ __20. ```sort``` command__
157157
- ```sort -u <file_name>``` : to remove duplicated.
158158
- Example : ```ls | sort``` : used with list command.
159159

160+
__21. ```locate``` command__
161+
- used to locate a file in a Linux system, just like the search command in Windows.
162+
- useful when you don't know where a file is saved or the actual name of the file.
163+
- ```locate -i hello```: -i argument with the command helps to ignore the case, will also fetch files with Hello or HELLO or heLLo etc.
164+
- ```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.
165+
160166

0 commit comments

Comments
 (0)