nl stringlengths 13 387 | bash stringlengths 1 532 |
|---|---|
Find all files in the current directory tree, except GIT files | find -type f -name .git -prune -o -print |
Find all files in the current directory tree ignoring the ".git" directory | find . -type d -name '.git*' -prune -o -type f -print |
Find all files in the current directory tree named 'FILES.EXT' | find . -name "FILES.EXT" |
Find all files in the current directory tree that are newer than some_file | find . -newer some_file |
Find all files in the current directory tree that are not newer than some_file | find . ! -newer some_file |
Find all files in the current directory tree that match pattern 'a(b*' | find . -name 'a(b*' -print |
Find all files in the current directory tree that were last changed $minutes minutes ago | find . -cmin $minutes -print |
Find all files in the current directory tree whose names are ".DS_STORE" | find . -name ".DS_STORE" |
Find all files in the current directory tree whose names are ".DS_STORE" and delete them | find . -name ".DS_STORE" -delete |
Find all files in the current directory tree whose names are "file_name", except for those with pathnames matching pattern "./dirt to be Excluded/*" | find ./ -iname file_name ! -path "./dirt to be Excluded/*" |
Find all files in the current directory tree whose names begin with '-' | find . -name '[-]*' |
Find all files in the current directory tree whose names end with the suffix ".keep.$1", where $1 is the first command line argument, and remove that suffix | find . -type f -name "*.keep.$1" -print0 | xargs -0 rename "s/\.keep\.$1$//" |
Find all files in the current directory tree whose path names match pattern './sr*sc' | find . -path './sr*sc' |
Find all files in the current directory tree whose pathnames match pattern "./sr*sc" | find . -path "./sr*sc" |
Find all files in the current directory tree whose pathnames match pattern '*/1/lang/en.css' | find . -path ‘*/1/lang/en.css’ -print |
Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder | find . -size +1M -exec mv {} files \+ |
Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder | find . -size +1M -print0 | xargs -0 -I '{}' mv '{}' files |
Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder with confirmation | find . -size +1M -ok mv {} files \+ |
Find all files in the current directory tree with size bigger than 5 MB and sort them by size | find ./ -size +5M -type f | xargs -r ls -Ssh |
find all the files in the current directory which are bigger than 1000MB | find . -size +1000M |
find all files in the current directory which are bigger than 2MB | find -size +2M |
find all files in the current directory which are bigger than 4MB | find . -size +4096k -print |
find all the files in the current directory which have been accessed in the last 1 day and move them to TMP folder. | find . -atime +1 -type f -exec mv {} TMP \; |
find all the files in the current directory which have been modified after a file | find . -newer file |
find all the files in the current directory which have been modified in the last 24 hours | find . -mtime 0 |
find all the files in the current directory which have been modified in the last 30 days and display the contents. | find . -atime +30 -exec ls \; |
find all the files in the current directory which have been modified in the last 6 days. | find . -atime +6 |
find all the files in the current directory which end with orig | find . -name '*.orig' -exec echo {} \ ; |
find all the files in the current directory which have the inode number 31246 and remove them. | find . -inum 31246 -exec rm [] ';' |
find all the files in the current directory which have the size 40 bytes in the current disk partition. | find . -size -40 -xdev -print |
find all the files in the current directory which start with t and have been modified between one hour (60 minutes) and 12 hours (720 minutes) ago. | find . -mmin -720 -mmin +60 -type f -name "t*" -exec ls -l '{}' \; |
find all files in the current directory whose size is 24 or 25 bytes. | find . -size -26c -size +23c -print |
Find all the files in the current directory with “linkin park” in their names | find . -maxdepth 1 -iname "*linkin park*" |
Find all file in current directory with have .c extenstion & have 777 permission . delete then | find . -name "*.c" -a -perm -777 | xargs rm -rf |
find all the files in the current directory with the name "wagoneer" which are in the current device. | find . -xdev -name "wagoneer*" -print |
Find all files in the current directory аргумент and its sub-directories with the optional constraints of опция_поиска, значение and/or значение. | find аргумент [опция_поиска] [значение] [значение] |
find all the files in the current folder (handles files which contain newlines or only spaces in their names) | find . -print0 | xargs -0 -l -i echo "{}"; |
find all the files in the current folder and display adding quotations to each file | find . -exec echo -n '"{}" ' \; |
find all the files in the current folder and display adding quotations to each file and replace spaces with new line | find $PWD -exec echo -n '"{}" ' \; | tr '\n' ' ' |
find all files in the current folder and search for a word in them. | find . -type f -exec grep "applicationX" {} \; |
find all the files in the current folder and search for the word "vps admin" in them. | find . -exec grep -i "vds admin" {} \; |
find all files in current folder having the name pattern "some_pattern" and move them to folder target_location (GNU VERSION) | find . -name some_pattern -print0 | xargs -0 -I % mv % target_location |
find all files in current folder having the name pattern "some_pattern" and move them to the folder target_location (GNU VERSION) | find . -name some_pattern -print0 | xargs -0 -i mv {} target_location |
find all the files in the current folder that have a single letter in their name which have been modified in the last 3 days but not today | find . -name \? -daystart -mtime +0 -mtime -3 |
find all files in the current folder that are modified exactly 1 minute ago | find -mmin 1 -print |
find all files in the current folder that are modified exactly 2 minutes ago | find -mmin 2 -print |
find all files in the current folder that are not modified in the last 10 minutes | find . -mmin +10 -print |
find all files in the current folder that are not modified in the last 240 hours | find . -mtime +10 -print |
find all the files in the current folder that have been accessed in today | find -atime 0 |
find all the files in the current folder that have been accessed in today from the start of the day | find -daystart -atime 0 |
find all the files in the current folder that have been modified exactly 24*3 hours ago | find ./ -mtime 3 |
find all the files in the current folder that have been modified in the last 24*3 hours | find ./ -mtime -3 |
find all the files in the current folder that have been modified in the last 7 days | find -mtime -7 -daystart |
find all files in the current folder that end with ",txt" | find . -name "*,txt" |
find all the files in the current folder that end with the word bar | find -name *bar |
find all the files in the current folder that have not been modified in the last 24*3 hours | find ./ -mtime +3 |
find all the files in the current folder which have a set uid set | find . -perm -4000 -print |
find all files in current folder which are bigger than 1 MB and move them to another folder | find . -size +1M -exec mv {} files \+ |
find all files in current folder which are bigger than 1 MB and move them to another folder | find . -size +1M -print0 | xargs -0 -I '{}' mv '{}' files |
find all files in current folder which are bigger than 1 MB and move them to another folder after user confirmation | find . -size +1M -ok mv {} files \+ |
find all files in the current folder which are bigger than 10bytes | find . — size +10 -print |
find all files in the current folder which are bigger than 10MB and less than 50 MB | find . -size +10M -size -50M -print |
find all the files in the current folder which are bigger than 10MB and less than 50MB | find . -size +10M -size -50M -print |
find all files in current folder which are bigger than 1MB | find ./ -size +1000k |
find all the files in the current folder which are bigger than 1MB | find . — size +1000k -print |
find all files in current folder which are bigger than 270MB and less than 300MB | find . -size +270M -size -300M |
find all the files in the current folder which are bigger than 9MB | find . -size +9M |
find all the files in the current folder which are exactly 1234 bytes | find . -size 1234c |
find all files in current folder which are exactly 300MB | find . -size 300M |
find all files in current folder which are less than 300MB | find . -size -300M |
find all the files in the current folder which are modified after /bin/sh. | find . -newer /bin/sh |
find all files in the current folder which are of size 0 bytes. | find . -type f -empty |
find all files in the current folder which are of size 0 bytes. | find . -type f -size 0b |
find all the files in the current folder which are smaller than 9MB | find . -size -9k |
find all the files in the current folder which are writable | find . -writable |
find all files in current folder which have been accessed exactly 10 minutes ago | find . -amin 10 |
find all files in the current folder which have been accessed in the last 30 minutes | find . -amin -30 |
find all the files in the current folder which have been accessed in the last 60 minutes | find . -amin -60 |
find all the files in the current folder which have been changed in the last 60 minutes | find . -cmin -60 |
find all files in the current folder which have been modified after /etc/passwd | find -newer /etc/passwd |
find all the files in the current folder which have been modified after the file disk.log | find . -newer disk.log -print |
find all the files in the current folder which have been modified for the ffiles that are at least one week old (7 days) but less then 30 days old | find . -mtime +30 -a -mtime -7 -print0 |
find all the files in the current folder which have been modified in the 10 minutes ago | find -mmin +15 -mmin -25 |
find all files in the current folder which have been modified in the last 24 hours | find . -mtime -1 -print |
find all files in the current folder which have been modified in the last 24 hours and whose file name is of length 1 | find . -name \? -mtime -1 |
find all the files in the current folder which have been modified in the last 60 minutes | find . -mmin -60 |
find all the files in the current folder which have been modified in the last 60 minutes, which are atleast 1 level deep and display a long listing of these files | find . -mindepth 1 -mmin -60 | xargs -r ls -ld |
find all the files in the current folder which have been modified in the last one day | find . -daystart -mtime -1 -ls |
find all the files in the current folder which have been modified in the last one minute | find . -type f -mmin 0 |
find all the files in current folder which have been updated in the last 60 minutes | find . -mmin -60 |
find all the files in the current folder which end with "ext1" or "ext2" or "ext3" | find -E . -regex ".*ext1|.*ext2|.*ext3" |
find all the files in the current folder which end with .o or with the name a.out and display them. | find . ( -name a.out -o -name *.o ) -print |
find all the files in current folder which end with a speicifc regular expression and display their count | find ./ -type f -regex ".*\.[JPGjpg]$" | wc -l |
find all files in the current folder which end with macs | find -name '*macs' |
find all the files in the current folder which have execute permission | find . -executable |
find all the files in the current folder which have execute permission to all the users | find . -perm /u=x,g=x,o=x |
find all the files in the current folder which have executable permission to all the users and display the ten files | find . -perm /a=x | head |
find all the files in the current folder which have the name net or comm in them | find . -regex '.*\(net\|comm\).*' |
find all files in the current folder which have not been accessed in the last 7 days or which are bigger than 20KB | find . -atime +7 -o -size +20480 -print |
find all the files in the current folder which have not been modified in the last 90 days and force delete them | find . -mtime +90 -type f -exec rm -f {} \; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.