nl stringlengths 13 387 | bash stringlengths 1 532 |
|---|---|
display all file in the folder /dir/to/search except ".c" files | find /dir/to/search/ -not -name "*.c" -print |
display all file in the folder /dir/to/search except ".c" files | find /dir/to/search/ \! -name "*.c" print |
display all the files in the folders /etc /srv excluding the paths /etc/mtab and /srv/tftp/pxelinux.cfg | find /etc /srv \( -path /srv/tftp/pxelinux.cfg -o -path /etc/mtab \) -prune -o -print |
display all the files in the folder /etc /srv excluding those that are present in the path of ./srv/tftp/pxelinux.cfg* and /etc/mtab | find /etc /srv \! -path "./srv/tftp/pxelinux.cfg*" -a \! -name /etc/mtab |
display all the files in the folder /home which do not belong to the group test | find /home ! -group test |
display all the files in the folder /home which do not belong to the group test | find /home -not -group test |
display all the files in the folder /home which have the setuid bit enabled | find /home -perm /u=s |
display all the file in the folder /home/david/ which start with the word "index" | find /home/david -name 'index*' |
display all the file in the folder /home/david/ which start with the word "index" ( case insensitive search) | find /home/david -iname 'index*' |
display all files in the folder /usr and its sub directory(do not search beyond the sub directory) | find /usr -maxdepth 1 -print |
display all files in the folder /usr/src excluding those ending with ",v" | find /usr/src ! \( -name '*,v' -o -name '.*,v' \) '{}' \; -print |
display all the files in the folder a | find a |
Display all files in the folder home which are owned by the group test. | find /home -group test |
display all the files in the folders mydir1, mydir2 which are bigger than 2KB and have not been accessed in the last 30*24 hours | find /mydir1 /mydir2 -size +2000 -atime +30 -print |
display all the files in the home folder | find $HOME -print |
display all the files in the home folder except text files | find /home ! -name "*.txt" |
display all the files in the home folder excluding directories which have been modified in the last 24 hours | find /home/ -mtime -1 \! -type d |
display all the files in the home folder that have been modified in the last 7*24 hours | find $HOME -mtime -7 |
display all the files in the home folder which are smaller than 500 bytes | find $HOME -size -500b |
display all the files in the home folder which are smaller than 500 bytes | find ~ -size -500b |
display all the files in the home folder which begin with "arrow" | find ~ -name 'arrow*' |
display all the files in the home folder which begin with "arrow" and end with "xbm" | find ~ -name 'arrow*.xbm' |
display all the files in the home folder which end with ".xbm" | find ~ -name '*.xbm' |
display all the files in the home folder which have not been modified in the last 365*24 hours | find $HOME -mtime +365 |
display all the files in the home folder which have read permission to the user | find /home -perm /u=r |
display all the files in the user folder which have been modified after the files /tmp/stamp$$ | find /usr -newer /tmp/stamp$$ |
display all the files in the usr folder and those that are in the path local | find /usr/ -path "*local*" |
display all the files in the usr folder which have been modified after Feburary 1st | find /usr -newermt "Feb 1" |
display all file names in current folder | find . -printf '%p ' |
display all the files on the current folder excluding those that are present in the folder "./src/emacs" | find . -path ./src/emacs -prune -o -print |
display all the files only in the path "./sr*sc" | find . -path "./sr*sc" |
display all the files with the names "name1" and "name2" in the current folder and do not search in the sub directories | find . -maxdepth 1 -name "name1" -o -name "name2" |
display all the header files and cpp files in the current folder | find . -name \*.h -print -o -name \*.cpp -print |
display all the header files and cpp files in the current folder | find . -regex '.*\.\(cpp\|h\)' |
display all the header files and cpp files in the current folder | find \( -name '*.cpp' -o -name '*.h' \) -print |
display all hidden files in the current folder | find . -type f -name ".*" |
display all the hidden files in the directory "/dir/to/search/" | find /dir/to/search/ -name ".*" -print |
display all the hidden files in the folder /home | find /home -name ".*" |
display all the home folder which end with the extension "sxw" and which have been accessed in the last 3*24 hours and which belong to the user bruno | find /home -type f -name "*.sxw" -atime -3 -user bruno |
display all html files in current folder | find -name "*.htm" -print |
display all the html files in the current folder | find . -name "*.html" -print |
display all the html files in the current folder | find . -name \*.html |
display all the html files in the current folder excluding search in the path ./foo | find . -path "./foo" -prune -o -type f -name "*.html" |
display all the html files in the current folder that have been modified exactly 7*24 hours ago | find . -mtime 7 -name "*.html" -print |
display all the html files in the current folder that have been modified in the last 7*24 hours | find . -mtime -7 -name "*.html" -print |
display all the html files in the current folder that have not been modified in the last 7*24 horus | find . -mtime +7 -name "*.html" -print |
display all the html files in the folder /var/www | find /var/www -type f -name "*.html" |
display all instances of "foo.cpp" file in the current folder which are not in the sub directory tree ".svn" | find . -name 'foo.cpp' '!' -path '.svn' |
display all instances of the .profile file in the entire file system | find / -name .profile -print |
display all instances of the file tkConfig.sh in the folder /usr | find /usr -name tkConfig.sh |
display all the ip addresses in all the files that are present in /etc folder | find /etc -exec grep '[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*' {} \; |
display all the ip addresses in all the files that are present in /etc folder | find /etc -type f -exec cat '{}' \; | tr -c '.[:digit:]' '\n' | grep '^[^.][^.]*\.[^.][^.]*\.[^.][^.]*\.[^.][^.]*$' |
display all the java script files in a folder | find src/js -name '*.js' |
display all the java script files in the current folder | find . -name "*.js" |
display all the java, xml and action scripts (.as) files in a directory | find dir1 -type f -a \( -name "*.java" -o -name "*.as" -o -name "*.xml" \) |
display all the jpg files in the current folder and do not search in sub directories | find . -maxdepth 1 -mindepth 1 -iname '*.jpg' -type f |
display all the jpg files in the current folder which belong to the user nobody | find . -name *.jpg -user nobody |
display all the jpg images in current folder | find . -type f -iregex '.*\.jpe?g' |
(Linux specific) Display all lines containing "IP_MROUTE" in the current kernel's compile-time config file. | cat /boot/config-`uname -r` | grep IP_MROUTE |
Display all lines contiaining 'funcname' in system map file matching current kernel. | cat /boot/System.map-`uname -r` | grep funcname |
(Linux-specific) Display all lines containing PROBES in the current kernel's compile-time config file. | grep PROBES /boot/config-$(uname -r) |
display all the log files in the folder /var/log, print0 is used to handle files with only spaces in their names or which have newlines in their names | find /var/log -name "*.log" -print0 |
display all non empty directories in current folder | find . \! -empty -type d |
display all normal / regular files in current folder in reverse order | find . -type f | tac |
display all pdf files in the current folder | find . -name *.pdf |
display all the php files in the entire file system | find / -name "*.php" |
display all the regular/normal files ending with ".mod" in a folder | find "$dir" -name "*.mod" -type f -print0 |
display all regular/normal files in a directory | find $directory -type f |
display all the normal/regular files in a directory | find $dir -type f -name $name -print |
display all normal/regular files in a folder | find /home/the_peasant -type f |
display all normal/regular files in a folder | find teste1 -type f |
display all the regular/normal files in a folder | find $FILES_PATH -type f |
display all the regular/normal files in a folder | find ./subdirectory/ -type f |
display all normal/regular files in current directory | find . -type f |
display all normal/regular files in current directory | find . -type f -print0 |
display all the regular/normal files in current directory | find . -type f |
display all the regular/normal files in the current directory | find . -type f |
display all the regular/normal files in the current directory which are atleast 2 levels deep | find . -mindepth 2 -type f |
display all normal/regular files in current folder | find . -type f |
display all normal/regular files in current folder | find . -type f |
display all normal/regular files in current folder | find . -type f -print0 |
display all regular/normal files in current folder | find . -type f |
display all the normal/regular files in the current folder | find . -type f |
display all the regular files in current folder | find . -type f |
display all the regular/normal files in current folder | find . -type f -name \* |
display all the regular/normal files in current folder | find . -type f -print0 |
display all the normal/regular files in the current folder and do not go beyond 3 levels | find . -maxdepth 3 -type f |
display all the regular files in the current folder and do not search in sub folders | find "$dir" -maxdepth 1 -type f |
display all regular/normal files in the current folder ending with the word ummy | find -type f -name *ummy |
display all the regular/normal files in the current folder excluding the files "bbb" and "yyy" | find . \( -name bbb -o -name yyy \) -prune -o -type f -print |
display all the regular/normal files in the current folder excluding the files with the name mmm | find . -name mmm -prune -o -type f -print |
display all regular files in current folder excluding search in the directories that are ending with "git,svn" | find . \( -type d -regex '^.*/\.\(git\|svn\)$' -prune -false \) -o -type f -print0 |
display all normal/regular files in current folder in sorted order | find . -type f print0 | sort -r |
display all the regular files in the current folder that are bigger than 10KB | find . -type f -size +10k |
display all the regular files in the current folder that are exactly 10KB | find . -type f -size 10k |
display all the regular files in the current folder that are less than 10KB | find . -type f -size -10k |
display all the regular files in the current folder that are modified after the file "file.log" | find . -type f -newer file.log |
display all the regular/normal files in the current folder that are not accessed in the last 10 minutes | find . -type f -amin +10 |
display all the regular files in current folder that belong to the user "tom" | find . -type f -user tom |
display all regular/normal files in the current folder which are accessed in the last 7*24 hours | find . -type f -atime -7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.