Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

discard-paths: yes

Syntax :

$ find [where to start searching from] [expression determines what to find] [-options] [what to find]

Example:
$ find ./GFG -name *.txt

$ find ./GFG -name sample.txt -exec rm -i {} ;

Options :

-exec CMD: The file being searched which meets the above criteria and returns 0 for as its exit status for successful command execution.
-ok CMD : It works same as -exec except the user is prompted first.
-inum N : Search for files with inode number ‘N’.
-links N : Search for files with ‘N’ links.
-name demo : Search for files that are specified by ‘demo’.
-newer file : Search for files that were modified/created after ‘file’.
-perm octal : Search for the file if permission is ‘octal’.
-print : Display the path name of the files found by using the rest of the criteria.
-empty : Search for empty files and directories.
-size +N/-N : Search for files of ‘N’ blocks; ‘N’ followed by ‘c’can be used to measure size in characters; ‘+N’ means size > ‘N’ blocks and ‘-N’ means size < 'N' blocks.
-user name : Search for files owned by user name or ID ‘name’.
(expr ) : True if ‘expr’ is true; used for grouping criteria combined with OR or AND.
! expr : True if ‘expr’ is false.
Comment

PREVIOUS NEXT
Code Example
Shell :: how to restart avro in ubuntu 20.04 terminal 
Shell :: shell keep newline at output 
Shell :: install specific version of npm package sandbox 
Shell :: linux list usb device and port speed 
Shell :: bash: cd: too many arguments 
Shell :: rename files with sequential numbers linux 
Shell :: linux directory structure 
Shell :: ${env:windir} user profile list environment variables 
Shell :: chrome saved cache gif 
Shell :: rclone on windows 
Shell :: bashrc setup "android" example 
Shell :: comment lines in nano 
Shell :: unistall xpaint ubuntu 
Shell :: chmod rwx for all users 
Shell :: Install solidity complier 
Shell :: How to remove one directory owned by a specific user on Linux 
Shell :: instalar repmgr para ub 
Shell :: bash combine Exit command and exit codes to build quick logic 
Shell :: figma for debian 10 
Shell :: Edit remote files in new tab of Vim session 
Shell :: laravel face detection package github 
Shell :: brew help 
Shell :: aws install g++ 
Shell :: remove memcached ubuntu 
Shell :: How to translate to md5 linux 
Shell :: linux single line eof 
Shell :: install ChromeHeadless wsl 
Shell :: kubernetes pod init command run 
Shell :: save terminal history to file 
Shell :: update aur packages archlinux 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =