How to Find a Directory in Ubuntu

Save

The Linux operating system, including Ubuntu Linux, is designed with a top-down directory structure, starting with the root (/) directory. Every directory in the operating system is a sub-directory of the root directory. You can locate a specific directory by name, using the Linux "find" command. You have to specify that you only want directories, or else the find command will locate every file that contains the name specified. To look through every directory in the file system, you should specify the root directory as the starting point.

  • Right-click on the desktop.

  • Click on the "Terminal" option to open a terminal window.

  • Type the command "find / -type d -name directory" to search for the directory starting at the root directory. The "-type d" option tells the command to only look for directories. Replace "directory" with the name of the directory you are seeking. Every directory containing the name specified will be listed in the output.

References

Promoted By Zergnet

Comments

Resources

You May Also Like

  • How to Write a Script in Ubuntu 8.10

    Like other Linux-based operating systems, Ubuntu uses "scripts" which are essentially analogous to "batch files" in MS-DOS and Windows. They are files...

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!