nl stringlengths 13 387 | bash stringlengths 1 532 |
|---|---|
Search the current directory recursively for files with the exact permissions u=rwx,g=rx,o=rx | find . -perm a=rwx,g-w,o-w |
Search the current directory recursively for files with the exact permissions u=rwx,g=rx,o=rx | find . -perm u=rwx,g=rx,o=rx |
Search the current directory recursively for files writable for `others' | find . -perm -o+w |
Search the current directory recursively for the largest files | find . -type f -printf '%20s %p\n' | sort -n | cut -b22- | tr '\n' '\000' | xargs -0 ls -laSr |
Search the current directory recursively for MOV files | find . -iname *.mov |
Search the current directory recursively for MOV files, following symlinks | find . -iname "*.mov" -follow |
Search the current directory recursively for regular files last accessed 2 days ago | find . type -f -atime 2 |
Search the current directory recursively for regular files last accessed 2 minutes ago | find . type -f -amin 2 |
Search the current directory recursively for regular files last accessed less than 2 days ago | find . type -f -atime -2 |
Search the current directory recursively for regular files last accessed less than 2 minutes ago | find . type -f -amin -2 |
Search the current directory recursively for regular files last accessed more than 2 days ago | find . type -f -atime +2 |
Search the current directory recursively for regular files last accessed more than 2 minutes ago | find . type -f -amin +2 |
Search the current directory recursively for regular files last changed 2 days ago | find . type -f -ctime 2 |
Search the current directory recursively for regular files last changed less than 2 days ago | find . type -f -ctime -2 |
Search the current directory recursively for regular files last changed more than 2 days ago | find . type -f -ctime +2 |
Search the current directory recursively for regular files last modified less than 2 days ago | find . type -f -mtime -2 |
Search the current directory recursively for regular files modified 2 days ago | find . type -f -mtime 2 |
Search the current directory recursively for regular files, skipping hidden files in the current directory | find * -type f -print |
Search the current directory recursively for regular files that have been changed less than 3 days ago and print 5 of them. | find . -type f -ctime -3 | tail -n 5 |
Search the current directory recursively for regular files with the extension given as variable $extension | find . -type f -name "*.$extension" |
Search the current directory recursively for regular files with the read permission set for everybody | find -type f ! -perm -444 |
Search the current directory tree for *.c and *.asm files, ignoring the case | find . -type f \( -iname "*.c" -or -iname "*.asm" \) |
Search the current directory tree for *.conf and *.txt files | find . -type f \( -name "*.conf" -or -name "*.txt" \) -print |
Search the current directory tree for *.wav files that have "export" in their pathnames | find -type f -name "*.wav" | grep export |
Search the current directory tree for *bash* files | find . -name "*bash*" |
Search the current directory tree for *bash* files printing them on a single line | find . -name "*bash*" | xargs |
Search the current directory tree for *cache, *xml, and *html files | find . -type f \( -name "*cache" -o -name "*xml" -o -name "*html" \) |
Search the current directory tree for .VER files | find . -name "*.VER" |
Search the current directory tree for .aux files | find . -name ".aux" |
Search the current directory tree for .rb files ignoring the "./vendor" subdirectory | find . -name '*.rb' ! -wholename "./vendor/*" -print |
Search the current directory tree for a regular file named "file_name" | find . -type f -name file_name |
Search the current directory tree for all .java files that were last modified at least 7 days ago | find . -name '*.java' -mtime +7 -print |
Search the current directory tree for all files except SVN ones | find . ! -regex ".*[/]\.svn[/]?.*" |
Search the current directory tree for all files except SVN ones | find . -not -iwholename '*.svn*' |
Search the current directory tree for all files except SVN ones | find . | grep -v \.svn |
Search the current directory tree for all files matching either pattern "*.rb" or pattern "*.py" | find . -name "*.rb" -or -name "*.py" |
Search the current directory tree for all files matching regular expression ".*\.rb$" | find . -regex ".*\\.rb$" |
Search the current directory tree for all image files | find . -type f -regex ".*\.\(jpg\|jpeg\|gif\|png\|JPG\|JPEG\|GIF\|PNG\)" |
Search the current directory tree for all regular files matching pattern "*.rb" | find . -name "*.rb" -type f |
Search the current directory tree for an html file having the text 'Web sites' in it | find . -type f -iname \*.html -exec grep -s "Web sites" {} \; |
Search the current directory tree for directories | find "$PWD" -type d |
Search the current directory tree for directories | find $PWD -type d |
Search the current directory tree for directories lacking execute permissions for user, group, or others | find . -type d ! -perm -111 |
Search the current directory tree for executable files | find . -type f -executable -print |
Search the current directory tree for executable files and searchable directories | find -executable |
Search the current directory tree for executable regular files | find . -executable -type f |
Search the current directory tree for executable regular files | find . -type f -executable -exec file {} \; | grep -wE "executable|shared object|ELF|script|a\.out" |
Search the current directory tree for file "a.txt" | find . -name "a.txt" -print |
Search the current directory tree for file `teste.tex' | find -name teste.tex |
Search the current directory tree for files AAA and BBB | find . \( -name AAA -o -name BBB \) -print |
Search the current directory tree for files and directories called "test" | find . -name test -print |
Search the current directory tree for files and directories whose names begin with "pro" | find . -name pro\* |
Search the current directory tree for files and directories whose names do not end in ".exe" and ".dll" | find . ! \( -name "*.exe" -o -name "*.dll" \) |
Search the current directory tree for files and directories whose names do not end in ".exe" and ".dll" | find . -name \*.exe -o -name \*.dll -o -print |
Search the current directory tree for files and directories whose names do not end in ".exe" and ".dll" | find . -not -name "*.exe" -not -name "*.dll" |
Search the current directory tree for files and directories whose names do not end in "exe" and "dll" | find . | grep -v '(dll|exe)$' |
Search the current directory tree for files containing "album" and "vacations" in their names and not containing "2015" | find . -name "*album*" -a -name "*vacations*" -a -not -name "*2015*" |
Search the current directory tree for files containing "needle" in their names | find . -iname "*needle*" |
Search the current directory tree for files containing "sh" in their names | find . -name "*sh*" |
Search the current directory tree for files containing "string" in their path names | find | egrep string |
Search the current directory tree for files executable by at least someone | find . -type f -perm +111 -print |
Search the current directory tree for files last accessed more than 10 days ago | find . -atime +10 |
Search the current directory tree for files matching regular expression '^myfile[0-9][0-9]?$' | find . -\( -name "myfile[0-9][0-9]" -o -name "myfile[0-9]" \) |
Search the current directory tree for files matching sed regular expression '.*myfile[0-9]\{1,2\}' | find . -regextype sed -regex '.*myfile[0-9]\{1,2\}' |
Search the current directory tree for files named "accepted_hits.bam" | find . -name "accepted_hits.bam" |
Search the current directory tree for files named "accepted_hits.bam" | find `pwd` -name "accepted_hits.bam" |
Search the current directory tree for files named "somename", case insensitive | find -iname 'somename' |
Search the current directory tree for files named 'Subscription.java' | find . -name 'Subscription.java' |
Search the current directory tree for files that are less than 50kb | find . -size -50k |
Search the current directory tree for files whose names are not "a.txt" | find . ! -name "a.txt" -print |
Search the current directory tree for files whose names begin with "my" and end with "p" followed by any character | find . -regex ".*/my.*p.$" |
Search the current directory tree for files whose names begin with 'my' | find . -name 'my*' |
Search the current directory tree for files whose names contain "TextForRename" | find ./ -name "*TextForRename*" |
Search the current directory tree for files whose names contain "bills" | find . -name '*bills*' -print |
Search the current directory tree for files whose names end in "rb" or "js" | find . -name "*js" -o -name "*rb" |
Search the current directory tree for files whose names end in "rb" or "js" | find . -regextype posix-egrep -regex ".*(rb|js)$" |
Search the current directory tree for files whose names end in "rb" or "js" and which contain string "matchNameHere" | find . -regextype posix-ergep -regex ".*(rb|js)$" -exec grep -l matchNameHere {} \; |
Search the current directory tree for files whose names match regular expression '.*packet.*', ignoring the case | find . -iregex ".*packet.*" |
Search the current directory tree for files whose names do not end in "1" and "2" | find . -type f ! -name "*1" ! -name "*2" -print |
Search the current directory tree for files whose names start with "f" | find . -name f* -print |
Search the current directory tree for the files with extension "trc" and list them if they are more than three days old | find . -name "*.trc" -ctime +3 -exec ls -l {} \; |
Search the current directory tree for the files with extension "trc" and remove them if they are more than three days old | find . -name "*.trc" -ctime +3 -exec rm -f {} \; |
Search the current directory tree for the files with extension "trc" and remove them if they are more than three days old | find . -name "*.trc" -ctime +3 -exec rm {} \; |
Search the current directory tree for files without "test" in their path names | find . -not -regex ".*test.*" |
Search the current directory tree for filenames matching the pattern '[mM][yY][fF][iI][lL][eE]*' | find . -name '[mM][yY][fF][iI][lL][eE]*' |
Search the current directory tree for hidden files | find .* |
Search the current directory tree for hidden files skipping .htaccess | find . -type f \( -iname ".*" ! -iname ".htaccess" \) |
Search the current directory tree for PHP files changed less than 14 days ago | find . -name *.php -ctime -14 |
Search the current directory tree for regular .mkv files | find . -type f -name "*.mkv" |
Search the current directory tree for regular files changed less than 1 day ago | find . -type f -ctime -1 |
Search the current directory tree for regular files changed on the 10th of September | find ./ -type f -ls |grep '10 Sep' |
Search the current directory tree for regular files lacking read permissions for user, group, or others | find . -type f ! -perm -444 |
Search the current directory tree for regular files last changed more than 14 days ago | find -type f -ctime +14 |
Search the current directory tree for regular files named `doc.txt' and print "found" for each of them | find ./ -type f -name doc.txt -printf "found\n" |
Search the current directory tree for regular files omitting directory `omit-directory' | find . -name omit-directory -prune -o -type f |
Search the current directory tree for regular files omitting directory `omit-directory' | find . -name omit-directory -prune -o -type f -print |
Search the current directory tree for regular files omitting directory `omit-directory' | find . \( -name omit-directory -prune -o -type f \) -print |
Search the current directory tree for regular files omitting directory `omit-directory' | find . \( -name omit-directory -prune \) -o \( -type f -print \) |
Search the current directory tree for regular files that can be read by noone | find -type f ! -perm -444 |
Search the current directory tree for regular files that contain "string" | find . -type f -print0 | xargs -0 grep string |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.