nl
stringlengths 13
387
| bash
stringlengths 1
532
|
|---|---|
find all the directories in the folder /raid with the extension local_sd_customize.
|
find /raid -type d -name ".local_sd_customize" -print
|
find all the directories in the home folder do not search in sub directories
|
find /home -maxdepth 1 -type d
|
Find all directories in level 1 down the $queue directory
|
echo "$queue" | xargs -I'{}' find {} -mindepth 1 -maxdepth 1 -type d
|
Find all directories in maximum 1 level down the current directory that were modified less than 1 day ago
|
find -maxdepth 1 -type d -mtime -1
|
Find all directories in maximum 2 levels down the /tmp directory
|
find /tmp -maxdepth 2 -mindepth 1 -type d
|
Filnd all directory in root directory with 777 permission and change permision755 with chmod commad .
|
find / -type d -perm 777 -print -exec chmod 755 {} \;
|
Find all directories matching the regex '.texturedata' in their names under '/path/to/look/in/' directory tree
|
find /path/to/look/in/ -type d | grep .texturedata
|
Find all directories named "0" in the current directory tree and create a single tar archive of their RS* subdirectories
|
find . -type d -name "0" -execdir tar -cvf ~/home/directoryForTransfer/filename.tar RS* \;
|
Find all directories named "0" in the current directory tree and create a tar archive of their RS* subdirectories
|
find . -type d -name "0" -execdir tar -cvf filename.tar RS* \;
|
Find all directories named "D" in the "A" directory tree
|
find A -type d -name 'D'
|
Find all directories named "nasa"
|
find . -name nasa -type d
|
Find all directories named $1 under $HOME directory tree and remove them
|
find $HOME -type d -name $1 -exec echo {} ';' -exec rm -rf {} ';'
|
Find all directories named '.texturedata' under '/path/to/look/in/' directory tree
|
find /path/to/look/in/ -type d -name '.texturedata'
|
Find all directories named 'files' under current directory and set read-write-execute permission for owner and group and no permission for other for those directories
|
find . -type d -name files -exec chmod ug=rwx,o= '{}' \;
|
Find all directories named 'mydir' under 'local' and '/tmp' directory tree
|
find local /tmp -name mydir -type d -print
|
Find all directories named 'octave' under current directory tree
|
find . -name "octave" -type d
|
Find all directories named build under the current directory
|
find . -type d -name build
|
find all directories named build under the current directory
|
find . -type d -name build
|
Find all directories named CVS, and deletes them and their contents.
|
find . -type d -name CVS -exec rm -r {} \;
|
finds all directories named CVS, and deletes them and their contents.
|
find . -type d -name CVS -exec rm -r {} \;
|
Find all directories name nasa in the current directory and below.
|
find . -name nasa -type d
|
Find all directories named postgis-2.0.0 under / directory
|
sudo find / -type d -name "postgis-2.0.0"
|
Find all directories named essbase under /fss/fin
|
find /fss/fin -type d -name "essbase" -print
|
Find all directories on the system whose size is greater than 50k
|
find / -type d -size +50k
|
Find all directories recursively starting from / and count them
|
find / -type d | wc -l
|
Find all directories recursively starting from / and skipping the contents of /proc/, and count them
|
find / -path /proc -prune -o -type d | wc -l
|
Find all directories starting from YOUR_STARTING_DIRECTORY that contain the string "99966" in their names
|
find YOUR_STARTING_DIRECTORY -type d -name "*99966*" -print
|
Find all directories starting from the current directory
|
find . -type d
|
Find all directories that have been accessed $FTIME days ago under current directory tree
|
find . -type d -atime $FTIME
|
Find all directories that have been modified in the last seven days.
|
find . -mtime -7 -type d
|
find all directories that names are 'apt' and display details
|
find / -type d -name "apt" -ls
|
find all directories that names are 'project.images'
|
find / -type d -name "project.images"
|
find all directories that names are 'project.images' and display details
|
find / -type d -name "project.images" -ls
|
Find all directories under $1/.hg and set their SGID bit
|
find "$1"/.hg -type d -print0 | xargs chmod g+s
|
Find all directories under $1/.hg and set their SGID bit
|
find $1/.hg -type d -exec chmod g+s {} \;
|
Find all directories under $FOLDER, take the first fields (dot (.) as the delimiter) from their timestamps and reverse sort them numerically
|
find "$FOLDER" -type d -printf "%T@\n" | cut -f 1 -d . | sort -nr
|
Find all directories under $ROOT_DIR and show the sub-directories of the directories before the directories themselves
|
find $ROOT_DIR -type d -depth -print
|
Find all directories under $d directory and set read-write-execute permission for owner and group and no permission for other for those directories
|
find $d -type d -exec chmod ug=rwx,o= '{}' \;
|
Find all directories under $path
|
find $path -type d
|
Find all directories under $root and replace all newlines with : (colon) in the output
|
find $root -type d | tr '\n' ':'
|
Find all directories under ${1:-.} directory without descending into any sub-directories
|
find ${1:-.} -mindepth 1 -maxdepth 1 -type d
|
Find all directories under '.cache/chromium/Default/Cache' that are bigger than 100 MB in size excluding single letter directory names
|
find .cache/chromium/Default/Cache/ -type d -print0 | du -h | grep '[0-9]\{3\}M' | cut -f2 | grep -v '^.$'
|
Find all directories under '/nas' directory tree
|
find /nas -type d
|
Find all directories under '/var/www' directory tree excluding '/var/www/web-release-data' and '/var/www/web-development-data' directories and their sub-directories
|
find /var/www -type d \( ! -wholename "/var/www/web-release-data/*" ! -wholename "/var/www/web-development-data/*" \)
|
Find all directories under 'A' directory tree excluding paths containing the directory 'a'
|
find A -type d \( ! -wholename "A/a/*" \)
|
Find all directories under 'test' directory tree that match the regex '.*/course[0-9.]*' in their paths
|
find test -type d -regex '.*/course[0-9.]*'
|
Find all directories under 'test' directory tree whose paths match the regex '.*/course[0-9]\.[0-9]\.[0-9]\.[0-9]$'
|
find test -type d -regex '.*/course[0-9]\.[0-9]\.[0-9]\.[0-9]$'
|
Find all directories under /fss/fin
|
find /fss/fin -type d
|
Find all directories under /home/me
|
find /home/me -type d
|
Find all directories under /home/me/"$d"
|
find /home/me/"$d" -type d
|
Find all directories under /home/username/public_html/modules and set their permission to 750
|
find /home/username/public_html/modules -type d -exec chmod 750 {} +
|
Find all directories under /home/username/public_html/sites/all/modules and set their permission to 750
|
find /home/username/public_html/sites/all/modules -type d -exec chmod 750 {} +
|
Find all directories under /home/username/public_html/sites/all/themes and set their permission to 750
|
find /home/username/public_html/sites/all/themes -type d -exec chmod 750 {} +
|
Find all directories under /home/username/public_html/sites/default/files and set their permission to 770
|
find /home/username/public_html/sites/default/files -type d -exec chmod 770 {} +
|
Find all directories under /home/username/public_html/themes and set their permission to 750
|
find /home/username/public_html/themes -type d -exec chmod 750 {} +
|
Find all directories under /home/username/tmp and set their permission to 770
|
find /home/username/tmp -type d -exec chmod 770 {} +
|
Find all directories under /myfiles directory
|
find /myfiles -type d
|
Find all directories under /path/to/Dir and set their permission to 755
|
sudo find /path/to/Dir -type d -print0 | xargs -0 sudo chmod 755
|
Find all directories under /path/to/base/cache, /path/to/base/tmp, /path/to/base/logs and change their permission to 755
|
find /path/to/base/cache /path/to/base/tmp /path/to/base/logs -type d -exec chmod 755 {} +
|
Find all directories under /path/to/base/dir and change their permission to 755
|
chmod 755 $(find /path/to/base/dir -type d)
|
Find all directories under /path/to/base/dir and change their permission to 755
|
find /path/to/base/dir -type d -exec chmod 755 {} +
|
Find all directories under /path/to/base/dir and change their permission to 755
|
find /path/to/base/dir -type d -print0 | xargs -0 chmod 755
|
Find all directories under /path/to/dir (no sub-directories) and archive them (with relative paths) into files with .tar.gz extension
|
find /path/to/dir -mindepth 1 -maxdepth 1 -type d -execdir sudo tar -zcpvf {}.tar.gz {} \;
|
Find all directories under /path/to/dir and change their permission to 755
|
find /path/to/dir -type d -exec chmod 755 {} +
|
Find all directories under /var/www directory and set their permission to 755
|
sudo find /var/www -type d -print0 | xargs -0 chmod 755
|
Find all directories under /var/www/some/subset and set their SGID bit
|
sudo find /var/www/some/subset -type d -print0 | xargs -0 chmod g+s
|
Find all directories under and below /home/admin/public_html/, and change their permissions to 755
|
find /home/admin/public_html/ -type d -exec chmod 755 {} \;
|
Find all directories under and below /root that match pattern "*linux*", case insensitive
|
find /root -type d -iname "*linux*"
|
Find all directories under and below directory "folder_name", and change their permissions to 775
|
find folder_name -type d -exec chmod 775 ‘{}’ \;
|
Find all directories under and below parent_directory
|
find parent_directory -type d
|
Find all directories under current directory
|
find -type d
|
Find all directories under current directory
|
find . -type d
|
Find all directories under current directory
|
find . -type d -print
|
Find all directories under current directory and change their permission to 500
|
find . -type d -exec chmod 500 {} \;
|
Find all directories under current directory and change their permission to 644
|
find -type d -print0|xargs -0 chmod 644
|
Find all directories under current directory and change their permission to 700
|
find . -type d -exec chmod 700 {} \;
|
Find all directories under current directory and change their permission to 755
|
find . -type d -exec chmod 755 {} \;
|
Find all directories under current directory and make them read, write, and executable for owner & group and remove read-write-execute permission for other
|
find . -type d -name files -exec chmod ug+rwx,o-rwx {} \;
|
Find all directories under current directory and set their permission to 755
|
find -type d exec chmod 755 {} +
|
Find all directories under current directory and set read-write-execute permission for owner and group and no permission for other for those directories
|
find . -type d -exec chmod ug=rwx,o= {} \;
|
Find all directories under current directory and set read-write-execute permission for owner, read-execute permission for group and execute permission for other for those directories
|
find . -type d -exec chmod u=rwx,g=rx,o=x {} \;
|
Find all directories under current directory and set read-write-execute permission for owner, read-execute permission for group and other for those directories
|
find . -type d -exec chmod u=rwx,g=rx,o=rx {} \;
|
Find all directories under current directory excluding directories (along with their contents) that start with a . (dot) in their names
|
find -type d -a ! -name '.?*' -o ! -prune
|
Find all directories under current directory excluding directories (along with their contents) that start with a . (dot) in their names
|
find . -type d -a ! -name '.?*' -o -name '.?*' -a ! -prune
|
Find all directories under current directory excluding those which match the regex /\. in their names
|
find . -type d | grep -v '/\.'
|
Find all directories under current directory having DIRNAME in their name
|
find . -type d | grep DIRNAME
|
Find all directories under the current directory that is on the same filesystem, execute "/tmp/count_em_$$" with the directory as an argument, sort the result numerically from least value to greatest value
|
find . -mount -type d -print0 | xargs -0 -n1 /tmp/count_em_$$ | sort -n
|
Find all directories under current directory tree that match the case insensitive regex '^\./course\([0-9]\.\)*[0-9]$' in their paths
|
find . -type d -iregex '^\./course\([0-9]\.\)*[0-9]$'
|
Find all directories under current directory tree that were modified $FTIME days ago
|
find . -type d -mtime $FTIME
|
Find all directories under current directory whose names are 33 characters long
|
find . -type d -name "?????????????????????????????????"
|
Find all directories under current directory whose paths are 5 characters long
|
find . -regextype posix-extended -type d -regex ".{5}"
|
Find all directories under current directory with 755 permission and change their permission to 644
|
find . -perm 755 -exec chmod 644 {} \;
|
Find all directories under dir whose names are 33 characters long
|
find dir -name '?????????????????????????????????'
|
Find all directories under htdocs directory and set their permission to 775
|
find htdocs -type d -exec chmod 775 {} +
|
Find all directories under maximum 1 level down the /parent directory and set their permission to 700 recursively
|
find /parent -maxdepth 1 -type d -print0 | xargs -0 chmod -R 700
|
Find all directories under maximum 1 level down the current directory and set their permission to 700
|
find . -mindepth 1 -type d | xargs chmod 700
|
Find all directories under maximum 1 level down the current directory and set their permission to 700 recursively
|
find . -maxdepth 1 -type d -exec chmod -R 700 {} \;
|
Find all directories under media/ directory and change their permission to 700
|
find media/ -type d -exec chmod 700 {} \;
|
Find all directories under minimum 1 level down the $GIVEN_DIR directory
|
find "$GIVEN_DIR" -type d -mindepth 1
|
Find all directories under minimum 1 level down the $GIVEN_DIR directory with null character as the delimiter
|
find "$GIVEN_DIR" -type d -mindepth 1 -print0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.