Usage of find command
Usage of find command The Linux Find Command is one of the most important and much used command in Linux sytems. Find command used to search and locate list of files and directories based on conditions you specify for files that match the arguments. Find can be used in variety of conditions like you can find files by permissions , users , groups , file type , date , size and other possible criteria. 1. find files using name (in current directory) find . -name neelu.txt ./neelu.txt find /home -name neelu.txt (in home directory) 2. find files using name and ignore case. find /home -iname techmint.txt 3. find directories using name (done by inserting flag -type d) find /var/log -type d -name divya 4. find file types using name (done by inserting flag -type f) find /var/log -type f -name web.php (find php files) 5. find files with 777 permissions find /etc -type f -perm 777 -print ...
Comments
Post a Comment