nl
stringlengths 13
387
| bash
stringlengths 1
532
|
|---|---|
Find all files that are set group ID to 10
|
find . -group 10 -perm -2000 -print
|
Find all files that are set group ID to staff
|
find . -group staff -perm -2000 -print
|
Find all files that are set user ID to root
|
find . -user 0 -perm -4000 -print
|
Find all files that are set user ID to root
|
find . -user root -perm -4000 -print
|
Find all files that aren't owned by user www-data
|
find -not -user www-data
|
find all the files that have been changed exactly 24 hours ago
|
find . -ctime 1 -type f
|
find all the files that have been modified exactly 1 day ago
|
find -mtime 1
|
find all the files that have been modified exactly 2 days ago
|
find -mtime 2
|
find all the files that have been modified exactly 24 hours ago
|
find . -type f -mtime 1
|
find all the file that have been modified exactly 3 days ago ( considers day starting not 24 hours )
|
find ./ -daystart -mtime -3
|
find all the files that have been modified exactly yesterday (from 00:00 to 23:59 yesterday)
|
find . -type f -daystart -mtime 1
|
find all the files that have been modified in exactly 7*24 hours ago
|
find . -mtime 7
|
find all the files that have been modified in the last 1 day
|
find . -type f -daystart -mtime -1
|
find all the files that have been modified in the last 1 day ago
|
find -mtime -1
|
find all the files that have been modified in the last 12 hours
|
find ./ -mtime -0.5
|
find all the files that have been modified in the last 2 day
|
find -daystart -mitime -1
|
find all the files that have been modified in the last 2 days
|
find . -type f -daystart -mtime -2
|
find all the files that have been modified in the last 24 hours
|
find . -type f -mtime -1
|
find all the file that have been modified in the last 3 days ( considers day starting not 24 hours )
|
find ./ -daystart -mtime -3
|
find all the files that have been modified in the last 4 days ( daystart is used to check files according to date i.e, all files modified from currentDay-4 00:00:00 to current day) and copy them to folder.
|
find . -mtime 4 -daystart -exec cp -a {} /home/devnet/fileshare\$ on\ X.X.X.X/RECOVER/ \;
|
find all the files that have been modified in the last 60 minutes
|
find -mmin -60
|
Find all files that have been modified in the last seven days.
|
find . -mtime -7 -type f
|
find all the files that have been modified in the last 7 days,
|
find . -mtime -7 -print
|
find all the files that have been modified since the last time we checked
|
find /etc -newer /var/log/backup.timestamp -print
|
find all the files that have been modified today
|
find . -type f -mtime 0
|
find all the files that have been modified today
|
find /tmp/test/* -mtime +0
|
find all the files that have been modified today(from the strart of the day)
|
find . -type f -daystart -mtime 0
|
Find all files that belongs to group 'root' under / directory and show a few lines of output from the beginning
|
find / -group root | head
|
Find all files that belong to group root
|
find / -group root
|
find all files that belong to root user
|
find . -uid 0 -print
|
Find all files that belongs to user root under / directory and show a few lines of output from the beginning
|
find / -user root | head
|
Find all files that belongs to user Tecmint under /home directory
|
find /home -user tecmint
|
Find all files that have either a .php or a .js extension
|
find -regextype posix-egrep -regex '.*(php|js)$'
|
find all files that match "[a-f0-9\-]{36}\.jpg" of grep
|
find . * | grep -P "[a-f0-9\-]{36}\.jpg"
|
find all files that names are 'apt'
|
find / -name "apt"
|
find all files that names are 'apt' and display detailed list
|
find / -name "apt" -ls
|
find all files that names are game
|
find / -name game
|
find all the files that have not been modified in the last 2 days
|
find -mtime +2
|
find all the files that have not been modified in the last 24 hours
|
find /tmp/test/* -mtime +1
|
find all the file that have not been modified in the last 3 days ( considers day starting not 24 hours )
|
find ./ -daystart -mtime +3
|
find all the files that have not been modified in the last (24*7) hours.
|
find . -mtime +7
|
find all files that do not have execute permission to all
|
find . -type d ! -perm -111
|
Find all files that were last accessed less than7 days ago under /home
|
find /home -mtime -7
|
Find all files that were last accessed more than 7 days ago under /home
|
find /home -atime +7
|
Find all files that were last modified less than7 days ago under /home
|
find /home -mtime -7
|
find all the files that were modified two days ago
|
find . -daystart -ctime 1 -type f
|
find all files that were modified between 90 to 100 days ago in home directory and delete then .
|
find /home -type f -mtime +90 -mtime -100 -exec rm {} \;
|
Find all the files that were modified exactly one day ago
|
find . -mtime 1
|
Find all the files that were modified more than one day ago
|
find . -mtime +1
|
find all the files that were modified yesterday in the current directory.
|
find . -daystart -ctime 0 -type f
|
Find all files that were not accessed in the past 100 days
|
find /home -atime +100
|
find all the files (under root file system /) that were updated in the last 24 hours
|
find / -mtime -1
|
Find all files under "/path" that do not contain a "." and append ".jpg" to their file name
|
find /path -type f -not -name "*.*" -print0 | xargs -0 rename 's/(.)$/$1.jpg/'
|
find all files under "/usr"
|
find /usr -print
|
Find all files under $1 directory excluding hidden files and append a null character at the end of each of their paths
|
find "$1" -path "*/.*" -prune -o \( -type f -print0 \)
|
Find all files under $1 not matching the regex '.*/\..*' and execute hashmove on each of them with the file path as its argument
|
find $1 -type f -not -regex '.*/\..*' -exec $0 hashmove '{}' \;
|
Find all files under $YOUR_DIR
|
find $YOUR_DIR -type f
|
Find all files under $dir
|
find "$dir" -type f
|
Find all files under $dir
|
find $dir -type f
|
Find all files under $dir directory
|
find "$dir" -type f
|
Find all files under $root_dir
|
find $root_dir -type f
|
Find all files under $source_dir that match the regex expanded by $input_file_type in their paths
|
find "$source_dir" -type f|egrep "$input_file_type"
|
Find all files under $x directory and set read-write permission for owner and group and no permission for other for those files
|
find ${x} -type f -exec chmod ug=rw,o= '{}' \;
|
Find all files under ${searchpath} that match the regex ${string1}.*${string2}.*${string3} in their contents where ${string1} etc.. will be expanded
|
find "${searchpath}" -type f -print0 | xargs -0 grep -l -E "${string1}".*"${string2}".*"${string3}"
|
Find all files under ${searchpath} that match the regex ${string1}.*${string2}.*${string3} in their contents where ${string1} etc.. will be expanded
|
find "${searchpath}" -type f -print0 | xargs -0 grep -l -E "${string1}.*${string2}.*${string3}"
|
find all the files under '/usr/local' directory tree which have been modified exactly 24 hours ago
|
find /usr/local -mtime 1
|
Find all files under ./lib/app and sort them
|
find ./lib/app -type f | sort
|
find all files under the /etc directory and display any IP address patterns in them
|
find /etc -exec grep '[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*' {} \;
|
find all files under the /etc directory and display IP address patterns in them
|
find /etc -type f -exec cat '{}' \; | tr -c '.[:digit:]' '\n' \ | grep '^[^.][^.]*\.[^.][^.]*\.[^.][^.]*\.[^.][^.]*$'
|
Find all the files under /etc directory which are larger than 100k
|
find /etc -size +100k
|
find all files under the /etc/sysconfig directory that were accessed in the last 30 minutes
|
find /etc/sysconfig -amin -30
|
Find all the files under /home directory with name tecmint.txt
|
find /home -name tecmint.txt
|
Find all files under /home that belong to user tecmint
|
find /home -user tecmint
|
Find all files under /home/feeds/data without descending into *def/incoming* and *456/incoming* paths
|
find /home/feeds/data -type f -not -path "*def/incoming*" -not -path "*456/incoming*"
|
Find all files under /home/myfolder that match the regex 'abc.*def.*ghi' in their contents
|
find /home/myfolder -type f -print0 | xargs -0 grep -l -E 'abc.*def.*ghi'
|
Find all files under /home/mywebsite/public_html/sites/all/modules and set their permission to 640
|
find /home/mywebsite/public_html/sites/all/modules -type f -exec chmod 640 {} +
|
Find all files under /home/username/public_html/modules and set their permission to 640
|
find /home/username/public_html/modules -type f -exec chmod 640 {} +
|
Find all files under /home/username/public_html/sites/all/modules and set their permission to 640
|
find /home/username/public_html/sites/all/modules -type f -exec chmod 640 {} +
|
Find all files under /home/username/public_html/sites/all/themes and set their permission to 640
|
find /home/username/public_html/sites/all/themes -type f -exec chmod 640 {} +
|
Find all files under /home/username/public_html/sites/default/files and set their permission to 660
|
find /home/username/public_html/sites/default/files -type f -exec chmod 660 {} +
|
Find all files under /home/username/public_html/themes and set their permission to 640
|
find /home/username/public_html/themes -type f -exec chmod 640 {} +
|
Find all files under /mnt/naspath directory without descending into .snapshot directory that were modified in last 24 hours with null character as the delimiter
|
find /mnt/naspath -name .snapshot -prune -o \( -type f -mtime 0 -print0 \)
|
Find all files under /mnt/naspath directory without descending into .snapshot directory that were modified in last 24 hours with null character as the delimiter
|
find /mnt/naspath \! \(-name .snapshot -prune\) -type f -mtime 0 -print0
|
Find all files under /mountpoint and below which have hard links
|
find /mountpoint -type f -links +1
|
Find all files under /myfiles with 647 permission
|
find /myfiles -type f -perm -647
|
Find all files under /myfiles with read-write access for others
|
find /myfiles -type f -perm -o+rw
|
Find all files under /path and below executable by `group' or `other'
|
find /path -perm /011
|
Find all files under /path and below writable by `group' or `other'
|
find /path -perm /g+w,o+w
|
Find all files under /path/to/Dir and set their permission to 644
|
sudo find /path/to/Dir -type f -print0 | xargs -0 sudo chmod 644
|
Find all files under /path/to/base/dir and change their permission to 644
|
chmod 644 $(find /path/to/base/dir -type f)
|
Find all files under /path/to/base/dir and change their permission to 644
|
find /path/to/base/dir -type f -exec chmod 644 {} +
|
Find all files under /path/to/base/dir and change their permission to 644
|
find /path/to/base/dir -type f -print0 | xargs -0 chmod 644
|
Find all files under /path/to/dir and change their permission to 644
|
find /path/to/dir -type f -exec chmod 644 {} +
|
Find all files under /path/to/dir that were modified less than 7 days ago and show only first several lines of output
|
find /path/to/dir -type f -mtime -7 -print0 | xargs -0 ls -lt | head
|
Find all files under /path/to/dir that were modified less than 7 days ago with null character as the delimiter
|
find /path/to/dir -type f -mtime -7 -print0
|
Find all files under /path/to/input/ that match the case insensitive string literal 'spammer@spammy.com' in their contents
|
find /path/to/input/ -type f -exec grep -qiF spammer@spammy.com \{\} \; -print
|
Find all files under /somefolder matching the case insensitive regex '\(.*error.*\)\|\(^second.*\log$\)\|\(.*FFPC\.log$\)' in their paths
|
find /somefolder -type f | grep -i '\(.*error.*\)\|\(^second.*\log$\)\|\(.*FFPC\.log$\)'
|
Find all files under /somefolder matching the extended case insensitive regex '\./(.*\.error.*|second.*log|.*FFPC\.log)$' in their paths
|
find -E /somefolder -type f -iregex '\./(.*\.error.*|second.*log|.*FFPC\.log)$'
|
Find all files under /somefolder matching the pattern expanded by $FILE_PATTERN in thier names
|
find /somefolder -type f -name $FILE_PATTERN
|
Find all the files under /tmp directory and show a few lines of output from the beginning
|
find /tmp | head
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.