wiki:finding_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:finding_files [2020/04/29 18:01] – [Examples] 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 16: | Line 21: | ||
To find a file, use: <color # | To find a file, use: <color # | ||
+ | I think -file should be - name: <color # | ||
\\ | \\ | ||
\\ | \\ | ||
Line 24: | Line 30: | ||
\\ | \\ | ||
\\ | \\ | ||
- | If you are unsure about the filename, but can remember some of it, a wildcard search might help: f<color #ed1c24>ind / -name “myFile*”</ | + | If you are unsure about the filename, but can remember some of it, a wildcard search might help: <color #ed1c24>find / -name “myFile*”</ |
+ | \\ | ||
+ | \\ | ||
+ | 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.1588179688.txt.gz · Last modified: 2023/03/09 22:35 (external edit)