Find File on Linux

https://w‮ww‬.lautturi.com
Find File on Linux

To find a file on a Linux system, you can use the find command.

For example, to search for a file with a specific name in the current directory and its subdirectories, you can use the following command:

find . -name "filename"

This will search for a file with the name "filename" in the current directory (.) and all of its subdirectories.

You can also use the -type option to specify the type of file you want to search for. For example, to search for a directory with a specific name, you can use the following command:

find . -type d -name "dirname"

This will search for a directory with the name "dirname" in the current directory (.) and all of its subdirectories.

You can use the -iname option for a case-insensitive search, and the -regex option to specify a regular expression to match the names of the files you want to find.

For more information on the find command and its options, you can refer to the documentation or use the man command to view the manual pages.

Created Time:2017-10-28 20:14:18  Author:lautturi