Find command in linux
- how to search directories in linux
- how to search directory in linux using grep
- how to search file in linux
- how to check directories in linux
Find a directory in linux recursively!
How to search for a folder in terminal mac
Find a Directory in Linux
In Linux, you create multiple files and directories and frequently navigate in between but there are times when the number of directories is so huge that finding it is next to impossible.
So what options do you have in that case?
You can use the find command with multiple parameters to look for that specific directory hidden in the heavens. Use to indicate that you are specifically looking for directories, not files.
Let me show you how.
1.
Find a directory using its name
By far, this is the most common and simple way to search for a directory where you know the name of the directory and where to find it and that's it!
To find directories using their names, you can use the find command in the following manner:
Here,
- is where you will give the path of the directory where you want to initiate the search.
- indicates you want to search for the directories only.
- indicates you want to indicate the name search.
- is where you enter the name of the directory which you want to search.
Let's suppose you want to search for a directory nam
- how to search file in linux using grep
- how to search recursively in linux