terminal how to find a directory 1

terminal how to find a directory

find . -type d | grep DIRNAME

Here is what the above code is Doing:
1. find . -type d : find all directories in the current directory
2. grep DIRNAME : filter the output of the previous command to only include lines that contain DIRNAME

Similar Posts