nl stringlengths 13 387 | bash stringlengths 1 532 |
|---|---|
find all files in the current folder which have not been modified today and whose file name is of length 1 | find . -name \? -mtime +0 |
find all the files in the current folder which do not belong to any user | find . -nouser -ls |
find all the files in the current folder which do not have the execute permission | find . -type d ! -perm -111 |
find all the files in the current folder which do not have the read permission | find . -type f ! -perm -444 |
find all files in the current folder which have only the write permission for the others | find . -perm -0002 -print |
find all the files in the current folder which have set guid bit on and list the top 10 files. | find . -perm /g+s | head |
find all files in the current folder which start with pro | find . -name pro\* |
find all the files in the current folder which have the word cache in them and do not search in the sub directories of the folder. | find . -name 'cache*' -depth -exec rm {} \; |
find all the files in the current folder whose name starts with 2 alphabets and ends with 2 digits. | find . — name "[a‑z][a‑z][0—9][0—9].txt" — print |
find all files in the current folder whose size is less than 50KB | find . -size -50k |
find all the files in the current folder with the name "test-a" and move them to the folder test-10 | find ~ -type f -name test-a -exec mv {} test-10 \; |
find all the files in the current folder with the name "test-a" and move them to the folder test-10. execdir runs the command in the directory where the file is found. | find ~ -type f -name test-a -execdir mv {} test-10 \; |
Find all files in the current user's home directory and its sub-directories with the optional constraints of опция_поиска, значение and/or опция_действия. | find ~/ [опция_поиска] [значение] [опция_действия] |
Find all files in directory tree "dirname" | find dirname -exec echo found {} \; |
find all the files in the directory which is pointed by $1 variable ending with the name held in the variable $2 or having the extension of value saved in the argument $2. | find $1 \( -name "*$2" -o -name ".*$2" \) -print |
find all the files in the entire file system excluding the folder proc, which do not belong to any user or any group | find / -path /proc -prune -o -nouser -o -nogroup |
find all the files in the entire file system starting with the word top | find / -name 'top?????*' |
find all the files in the entire file system that have been accessed exactly 50 days ago | find / -atime 50 |
find all the files in the entire file system that have been accessed in the last 60 days ago | find / -amin -60 |
find all the files in the entire file system that have been changed exactly 60 days and display ten files | find / -cmin -60 | head |
find all the files in the entire file system that have been modified between 50 to 100 days and display ten files | find / -mtime +50 -mtime -100 | head |
find all the files in the entire file system that have been modified exactly 50 days ago | find / -mtime 50 |
find all the files in the entire file system that have been modified exactly 7 days before which end with "conf" | find / -name "*conf" -mtime 7 |
find all the files in the entire file system that start with top | find / -name 'top*' |
find all the files in the entire file system that start with the word top and have 3 letters next to it. | find / -name 'top???' |
find all the files in the entire file system that were modified in the last 10 minutes | find / -mmin -10 |
Find all the files in entire file system which are greater than 50MB and less than 100MB. | find / -size +50M -size -100M |
Find all files in entire file system which are larger than 20000KB | find / -type f -size +20000k |
Find all the files in entire file system which are modified more than 50 days back and less than 100 days and show a few lines of output from the beginning | find / -mtime +50 -mtime -100 | head |
find all the files in the entire file system which have been modified in the last 48 hours | find / -mtime -2 -print |
find all the files in the entire file system which have been modified in the last 5 days | find / -mtime -5 -print |
find all the files in the entire file system which belong to the group "staff" | find / -group staff -print |
find all the files in the entire file system which belong to the user "roger" | find / -user roger -print |
find all the files in the entire file system whose size is between 50Mb to 100MB | find / -size +50M -size -100M |
find all the files in the entire file system whose size is exactly 15MB | find / -size 15M |
find all the files in the entire file system whose size is greater than 20MB | find / -type f -size +20000k |
find all files in the entire file system whose size is more than 100MB | find / -size +100M |
Find all the files in entire file system with the extensions txt or doc, as well as any file larger than 5MB in size | find / \( -name '*.txt' -o -name '*.doc' -o -size +5M \) |
find all the files in the entire filesystem which belong to the group root and display the ten files. | find / -group root | head |
find all the files in the entire filesystem which belong to the user root and display the ten files. | find / -user root | head |
find all files in etc which have been changed in the last 1 day | find /etc -daystart -ctime -1 |
find all files in etc which have been changed in the last 25 hours | find /etc -ctime -1 |
find all files in the file system having the name "filename" | find / -iname "filename" |
find all the files in the file system that belong to the user www | find / -user www -print |
find all the files in the file system that start with "win" and searched only in the mounted file systems | find / -mount -name 'win*' |
find all the files in the file system which are bigger than 3 bytes | find / -size +3 -print |
Find all the files in file system which are greater than 50MB and less than 100MB | find / -size +50M -size -100M |
Find all the files in file system which are modified 50 days back | find / -mtime 50 |
Find all the files in file system which are modified in last 1 hour | find / -mmin -60 |
Find all the files in file system which are modified more than 50 days back and less than 100 days | find / -mtime +50 –mtime -100 |
find all the files in the file system which have been accessed in the last 1 day | find / -atime -1 |
find all files in the file system which have been accessed in the last 24 hours | find / -atime 0 |
find all the files in the file system which have been changed 1 minute ago. | find / -newerct '1 minute ago' -print |
find all the files in the file system which have been changed in the last 24 hours. | find / -ctime -1 |
find all the files in the file system whcih have been modified in the last 1 day | find / -mtime -1 |
find all the files in the file system which have been modified in the last 10 minutes | find / -mmin -10 |
find all the files in the file system which have been modified in the last 30*24 hours | find / -mtime -30 -print |
find all the files in the file system which have been modified in the last 60 minutes | find / -mmin -60 |
find all the files in the file system which belong to the groep "users" and with the name "dateiname" | find / -group users -iname "Dateiname" |
find all files in the file system which belong to the group users and having the word "filename" in their name. | find / -group users -iname "filename" |
find all files in the file system which belong to no user or which have no user | find / -nouser |
find all the files in the file system which belong to the user "pat" and with the name "dateiname" | find / -user pat -iname "Dateiname" |
find all files in the file system which belong to the user pat and having the word "filename" in their name. | find / -user pat -iname "filename" |
find all files in the file system which have no user and no group | find / -nouser -nogroup |
find all files in the file system which have not been accessed in the last 2 days | find / -atime +2 |
find all the files in the file system which have not been modified in the last 100*24 hours | find / -mtime +100 -print |
find all the files in the file system which have the permission 777 and with the name "dateiname" | find / -perm 777 -iname "Dateiname" |
find all the files in the file system which have read permission to the user and display the ten files | find / -perm /u=r | head |
find all the files in the file system which have sticky bit enabled to the user | find / -perm -u+s |
find all files in the file system whose size is bigger than 3GB | find / -size +3G |
find all files in the file system whose size is exactly 2KB | find / -size 2048c |
Find all files in the file system with the SUID bit | find / -perm -u+s -print |
find all the files in the folder "/mp3-collection" which are bigger than 10MB excluding those that start with the word Metallica | find /mp3-collection -size +10000k ! -name "Metallica*" |
find all the files in the folder "/u/bill" which have been accessed in the last 2-6 minutes | find /u/bill -amin +2 -amin -6 |
find all the files in the folder "/usr/app/etl/01/OTH/log/tra" which have been modified in the last 240 hours excluding hidden files and those with the name "/usr/app/etl/01/CLE/par/files_to_skip.par" | find /usr/app/etl/01/OTH/log/tra -type f ! -name ".*" -mtime -10 | egrep -vf /usr/app/etl/01/CLE/par/files_to_skip.par |
find all files in the folder "myfiles" which are exactly 5 bytes | find /myfiles -size 5 |
find all the files in the folder "myfiles" which have been modified exactly 48 hours back. | find /myfiles -mtime 2 |
find all the files in the folder "myfiles" which have not been accessed in the last 30 days | find /myfiles -atime +30 |
find all files in the folder "myfiles" which have not been accessed in the last 30*24 hours | find /myfiles -atime +30 |
find all the files in the folder ./machbook and change the owner of them to the user with id "184" | find ./machbook -exec chown 184 {} \; |
find all the files in the folder .home/calvin which have been modified in th last 45 minutes | find /home/calvin/ -mmin -45 |
find all files in the folder /etc which have been modified after /tmp/foo | find /etc -newer /tmp/foo |
find all the files in the folder /home which are bigger than 10MB and smaller than 50 MB | find /home -size +10M -size -50M |
find all the files in the folder /opt which have been accessed exactly 20 days ago | find /opt -atime 20 |
find all the files in the folder /opt which have been changed in the last 120 minutes | find /opt -cmin -120 |
find all the files in the folder /opt which have been modified exactly 20 days ago | find /opt -mtime 20 |
find all the files in the folder /path/to/dir which have been modified after a specific date (Feb 07) | find /path/to/dir -newermt “Feb 07” |
find all files in the folder /path/to/dir which have been modified between two dates | find /path/to/dir -newermt yyyy-mm-dd ! -newermt yyyy-mm-dd -ls |
find all the files in the folder /work which belong to the user "olivier" | find /work -user olivier -print |
find all the files in the folder Musica and display them in a single line null separated | find Música/* | egrep -Z \/\\. | xargs -0 echo |
find all the files in the folder ~/Music which begin with "Automatically Add" | find ~/Music/ -name "Automatically Add*" |
Find all files in your home directory and below that are larger than 100M. | find ~ -size +100M |
Find all files in your home directory and below that are smaller than 100M. | find ~ -size -100M |
Find all files in the home directory tree that are owned by another user and change their ownership to the current user | find ~ ! -user $USER -exec sudo chown ${USER}:"{}" \; |
Find all files in the home directory with open permissions | find ~ -perm 777 |
find all the files in the home folder that are modified day before yesterday | find $HOME -mtime -2 -mtime +1 |
find all files in the home folder that are modified in the last 7 days | find $HOME -mtime -7 |
find all the files in the home folder that have been modified between 24 to 48 hours | find $HOME -mtime -2 -mtime +1 |
find all the files in the home folder that have not been modified in the last one year | find $HOME -mtime +365 |
find all the files in the home folder which are bigger than 2MB and zip them | find ~ -size +2000000c -regex '.*[^gz]' -exec gzip '{}' ';' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.