I am using Ubuntu and I want to search for a specific Directory called "sdk".
All that I know is, that "sdk" Directory is located somewhere under /user Directory
how can I search for "sdk" Directory from the terminal?
I tried the following find / -name example docs -type d
but it says no such file or Directory.
To use this command, type “pwd” into your terminal and press enter. This command will print the current working directory. The output will be the file path.
To see them in the terminal, you use the "ls" command, which is used to list files and directories. So, when I type "ls" and press "Enter" we see the same folders that we do in the Finder window.
Navigate directories. Open a window, double-click on a folder, and then double-click on a sub-folder. Use the Back button to backtrack. The cd (change directory) command moves you into a different directory.
you can search for directory by using find
with flag -name
you should use
find /user -name "sdk" -type d
meaning find directories named sdk in or below the directory /user
or if you want to be case-insensitive
find /user -iname "sdk" -type d
Please try the below command.
locate foldername | grep /foldername$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With