nl
stringlengths 13
387
| bash
stringlengths 1
532
|
|---|---|
display all the files in the current directory excluding those that are in the 'secret' directory
|
find . -name 'secret' -prune -o -print
|
display all files in the current directory excluding those that are present in the directories whose name starts with "efence" and do not search in the sub directories
|
find * -maxdepth 0 -name "efence*" -prune -o -print
|
Display all files in the current directory tree that match "*foo"
|
tree -P "*foo"
|
display all files in the current folder after pruning those in the current folder ( dot is the output of this command )
|
find . -prune -print
|
display all the files in the current folder along with the change time and display file names of the last 10 changed files
|
find . -type f -printf "%C@ %p\n" | sort -rn | head -n 10
|
display all files in the current folder along with their last access timestamps
|
find . -printf "%h/%f : dernier accès le %Ac\n"
|
display all files in the current folder along with their last accessed timestamps
|
find . -printf "%h/%f : dernier accès le %AA %Ad %AB %AY à %AH:%AM:%AS\n"
|
display all the files in the current folder along with the modification time and display file names of the last 10 modified files
|
find . -type f -printf '%T@ %p\n' | sort -n | tail -10 | cut -f2- -d" "
|
display all files in the current folder and do not search in the sub directories
|
find . -maxdepth 0
|
display all the files in the current folder and do not search in sub directories and move them to the directory /directory1/directory2.
|
find . -maxdepth 1 -type f | xargs -I ‘{}’ sudo mv {} /directory1/directory2
|
display all the files in the current folder and traverse from the sub directories
|
find . -type d -depth
|
display all files in current folder ending with "~" or "#" using regular expression
|
find -regex "^.*~$\|^.*#$"
|
display all the files in the current folder except those whose name is "PERSONAL"
|
find . -name PERSONAL -prune -o -print
|
display all files in current folder excluding current folder (.)
|
find . \! -name '.'
|
display all the files in the current folder excluding the current folder and do not search in the sub directories
|
find . -maxdepth 1 -type d \( ! -name . \)
|
display all the files in the current folder excluding the directory aa
|
find . -type d ! -name aa
|
display all the files in the current folder excluding the files with the name mmm
|
find . -name mmm -prune -o -print
|
display all the files in the current folder excluding the perl files
|
find . -not -name "*.pl"
|
display all the files in the current folder excluding search in the paths containing the folder having the word "mmm"
|
find . ! -path *mmm*
|
display all files in current folder excluding text files
|
find . ! -name "*.txt"
|
display all the files in the current folder excluding those ending with ".disabled" in sorted order
|
find /target/ | grep -v '\.disabled$' | sort
|
display all the files in the current folder excluding those that are present in the folder "secret"
|
find . \( -name 'secret' -a -prune \) -o -print
|
display all the files in the current folder excluding those that are present in the path "./etc"
|
find . ! -wholename "./etc*"
|
display all files in current folder excluding those that have the word "git" in their name and display files that have git in their path names
|
find . ! -name '*git*' | grep git
|
display all the files in the current folder excluding those which are in the path of ".git"
|
find . ! -path "*.git*" -type f -print
|
display all the files in the current folder excluding those which are present in "./src/emacs" folder
|
find . -path './src/emacs' -prune -o -print
|
display all the files in the current folder expect perl shell and python fiels
|
find . -not -name "*.pl" -not -name "*.sh" -not -name "*.py"
|
display all the files in the current folder for the files which have been accessed in the last 24 hours
|
find . -type f -atime -1
|
display all the files in the current folder in a single line separated by null command
|
sudo find . -print0
|
display all the files in the current folder that are at least one week old (7 days) but less then 30 days old
|
find . -mtime +30 -a -mtime -7 -print0
|
display all files in the current folder that have been modified in the last 24 hours whose name has only 1 letter
|
find . -name \? -mtime -1
|
display all the files in the current folder that end with ".ksh"
|
find . -name "*.ksh" -prune
|
display all files in current folder using regular expression
|
find -regex "$rx"
|
display all files in current folder which are bigger than 1 MB
|
find . -size +1M
|
display all files in current folder which are bigger than 100KB but are less than 500KB
|
find . -size +100k -a -size -500k
|
display all the files in the current folder which are bigger than 100MB and save the output list to the file /root/big.txt
|
find \( -size +100M -fprintf /root/big.txt %-10s %p\n \)
|
display all the files in current folder which are bigger than 10KB
|
find . -size +10k
|
display all the files in the current folder which have are bigger than 1KB
|
find . -size +1024 -print
|
display all the files in the current folder which are in the path "./sr*sc"
|
find . -path './sr*sc'
|
display all the files in the current folder which are in the path ending with the folder f
|
find . -path '*f'
|
display all files in the current folder which are not empty
|
find . ! -size 0k
|
display all the files in the current folder which are present in the path "./sr*sc"
|
find . -path './sr*sc'
|
display all the files in the current folder which are present in the path "./src/emacs"
|
find . -path './src/emacs' -prune -o -print
|
display all the files in current folder which have been accessed in the last 15 days
|
find . -atime -15
|
display all the files in the current folder which have been accessed in the last 60 minutes
|
find . -amin -60
|
display all the files in current folder which have been changed in the last 2-6 days
|
find . -cmin +2 -cmin -6
|
display all the files in current folder which have been changed in the last 24 hours
|
find . -ctime -1 -print
|
display all the files in the current folder which have been modified after the files "/bin/sh"
|
find . -newer /bin/sh
|
display all the files in the current folder which have been modified between two dates
|
find . -newermt “Sep 1 2006” -and \! -newermt “Sep 10 2006”
|
display all the files in the current folder which have been modified in the last 14*24 hours
|
find . -mtime -14 -print
|
display all the files in the current folder which have been modified in the last 2 days
|
find . -mtime -2
|
display all the files in the current folder which have been modified in the last 24 hours
|
find . -mtime -1
|
display all the files in the current folder which have been modified in the last 24 hours
|
find . -mtime -1 -print
|
display all the files in the current folder which have been modified in the last 24 hours excluding all directories
|
find . \( -type d ! -name . -prune \) -o \( -mtime -1 -print \)
|
display all the files in the current folder which have been modified in the last 5*24 hours
|
find . -mtime -5
|
display all files in current folder which have been modified in the last 60 minutes
|
find -mmin 60
|
display all the files in the current folder which have colon in their name
|
find . -name "*:*"
|
display all the files in the current folder which end with ".bash"
|
find . -name "*.bash"
|
display all files in the current folder which end with extension "myfile" followed by two digits
|
find . -regex '.*myfile[0-9][0-9]?'
|
display all files in the current folder which end with extension "myfile" followed by one digit or two digits
|
find . -\( -name "myfile[0-9][0-9]" -o -name "myfile[0-9]" \)
|
display all files in the current folder which end with extension "myfile" followed by one digit or two digits
|
find . -regextype sed -regex '.*myfile[0-9]\{1,2\}'
|
display all the files in the current folder which hare in the sub directory trees of the folders which begin with the word "kt" followed by a digit
|
find . -path './kt[0-9] '
|
display all the files in current folder which have not been modified in the last 7 days
|
find . -mtime +7
|
display all the files in the current folder which have not been modified in the last 7 days and which are not in the list "file.lst"
|
find -mtime +7 -print | grep -Fxvf file.lst
|
display all the files in the current folder which do not belong to any group
|
find . -nogroup
|
display all the files in the current folder which do not belong to any user
|
find . -nouser
|
display all files in the current folder which do not belong to the user john
|
find . ! -user john
|
display all the files in the current folder which have the permissions 777 and which have been modified in the last 24 hours.
|
find . -perm 777 -mtime 0 -print
|
display all the files in the current folder which have the permissions 777 and which have been modified in the last 24 hours.
|
find . -perm 777 -a -mtime 0 -a -print
|
display all the files in current folder which start with "file2015-0"
|
find . -name "file2015-0*"
|
display all the files in the current folder which start with either "fileA_" or "fileB_"
|
find . -name 'fileA_*' -o -name 'fileB_*'
|
display all files in the current folder which start with met
|
find -name met*
|
display all the files in the current folder which have the word "bills" in their name
|
find . -name '*bills*' -print
|
display all the files in current folder which have write permission to all the users
|
find . -perm /222
|
display all files in the current folder with the name test excluding those that are present folder test
|
find . -name test -prune -o -print
|
display all files in the current folder with the name test excluding those that are present in the sub folders of the test folder
|
find . -name test -prune
|
display all files in current folder with NULL separating each file
|
find . -print0
|
display all files in the directory "dir" which have been accessed in the last 60 minutes
|
find /dir -amin -60
|
display all files in the directory "dir" which have been changed in the last 60 minutes
|
find /dir -cmin -60
|
display all the files in the directory modules
|
find . -name modules
|
display all files in the entire file system
|
find /
|
display all the files in the entire file system
|
find / -name "*" — print
|
display all the files in the entire file system
|
find / -type f -exec echo {} \;
|
display all the files in the entire file system which are bigger than 10MB
|
find / -size +10000k
|
display all the files in the entire file system which begin with "apache-tomcat"
|
find / -name "apache-tomcat*"
|
display all the files in the entire file system which have set uid bit set.
|
find / -perm -u+s -print
|
display all the files in the file system excluding all the ".c" files
|
find / \! -name "*.c" -print
|
display all files in the file system which are bigger than 50MB and having size "filename" in them
|
find / -size +50M -iname "filename"
|
display all the files in the file system which are changed a minute ago
|
find / -newerct '1 minute ago' -print
|
display all the files in the file system which are present in nfs system
|
find / -fstype nfs -print
|
display all the files in the file system which are smaller than 20 bytes
|
find / -size 20
|
display all the files in the file system which have been modified in the last 10 minutes
|
find / -mmin -10
|
display all the files in the file system which belong to no group
|
find / -nogroup staff -print
|
display all the files in the file system which belong to no user
|
find / -nouser -print
|
display all the files in the file system which belong to the user "user1"
|
find / -user user1
|
display all the files in the file system which belong to the user "wnj" and which are modified after the file "ttt"
|
find / -newer ttt -user wnj -print
|
display all the files in the file system which do not belong to the user "wnj" and which are modified before the file "ttt"
|
find / \! \( -newer ttt -user wnj \) -print
|
display all the files in the folder "$ORIG_DIR"
|
find "$ORIG_DIR"
|
display all the files in the folder "/Users/Me/Desktop" which belong to the user "popo" and which have the permission 777
|
find /Users/Me/Desktop -user popo -perm 777
|
display all the files in the folder "/home/mywebsite" which have been changed in the last 7*24 horus
|
find /home/mywebsite -type f -ctime -7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.