home/hope/Documents/images/memes/winteriscoming.jpg To only list files and subdirectories that are contained in the directory /home/hope/Documents/images, specify the first argument of the command as: find /home/hope/Documents/images It's good practice to use this form of the command. If you try to use it on another Unix-like operating system, such as FreeBSD, specifying a directory is required. The example above is the "proper" way to use find. Running find with no options is the same as specifying that the search should begin in the working directory, like this: find. Notice that the output starts with a single dot, which represents the working directory. In this example, we see a total of ten files and four subdirectories in and beneath our Documents folder. Now let's run find without any options: find First, let's check our working directory using the pwd command: pwd
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |