Suse & OpenSuse : Tips, Tricks, Tutorials, How Tos and Troubleshooting

Short and quick tutorial for the command “find”

We can learn about commands in Linux using the manpages, for example, to learn how to use the find command, we can just do

# man 1 find

However, this means we need to read the long manual and generally most of us are somewhat impatient.  We will give short and quick tutorials on the common usage of the commands.

The find command is to search for files, directories, pipes, sockets, devices (anything that is defined as files in Linux) in the system.  The quickest tutorial is

# find / –name <filename>

The ‘/’ tells the command to search from the root directory, another common variable here is ‘.’, which means to search from this directory onwards.

The ‘-name <filename>’ specifies the file that you want to look for, e.g. proposal.txt as the filename.

That’s the shortest tutorial we can think of for “find”.  For more advance stuff, “man 1 find”.

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.