wiki:finding_files
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:finding_files [2020/04/29 17:51] – created walkeradmin | wiki:finding_files [2023/04/03 17:12] (current) – walkeradmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Finding Files ====== | ====== Finding Files ====== | ||
<color darkorange> | <color darkorange> | ||
+ | \\ | ||
+ | <color darkorange> | ||
\\ | \\ | ||
\\ | \\ | ||
Line 9: | Line 11: | ||
One thing I have always struggled with is finding things in CentOS. So here I am going to put a few examples, and over time hopefully add some more. | One thing I have always struggled with is finding things in CentOS. So here I am going to put a few examples, and over time hopefully add some more. | ||
+ | \\ | ||
+ | \\ | ||
+ | <color # | ||
\\ | \\ | ||
\\ | \\ | ||
Line 15: | Line 20: | ||
==== Examples ==== | ==== Examples ==== | ||
- | find / -file " | + | To find a file, use: <color #ed1c24>find / -file " |
+ | I think -file should be - name: <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | In the above example, the "/" | ||
+ | \\ | ||
+ | \\ | ||
+ | You can specify a location to search with <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | If you are unsure about the filename, but can remember some of it, a wildcard search might help: <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | Find files with the same extension: <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | If you only wish to find folders then use -type d: <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | If you are only interested in files created in the last 2 days use: <color # | ||
+ | \\ | ||
+ | \\ |
wiki/finding_files.1588179108.txt.gz · Last modified: 2023/03/09 22:35 (external edit)