locate grub.cfg
whatis updatedb
cat /etc/updatedb.conf
which locate
ll `which locate`
ll /etc/alternatives/locate
whatis mlocate
whatis locate
find -iname fhs*
find -name FHS*
find -iname FHS*
#find -size +200M
#find -inum 122223 -gid
#find -atime +1 -mtime +1
#find -type f # f c b l d
#find /path -para
ls a/
find a/ ! -iname '*.html' -type f
find a/ -iname '[1-9]'
find /dev -type c | head -5
find /dev -type c | head
find /dev -type b -exec ls -lhtr {} \;
# Will runs the command for each file
find /dev -type f -exec echo {} Milad \;
find /dev -name sda1 -or -name sda2
# find / -mtime +10 –mtime -20
# find ~ ! -path '*/\.*' -perm 764 -exec chmod 664 {} \;
# find ~ ! -path '*/\.*' -perm 764 -type f -exec chmod 664 {} \;
cd /usr/bin
find -perm 4000 # exactly 4000 - having exactly a 4 and others should be 000
find -perm -4000 -exec ls --color -l {} \; # having 4 is necessary - others does not matter
find -perm -6000 -exec ls --color -l {} \; # having 4 and 2 is necessary - others does not matter
find -perm -2000 -exec ls --color -l {} \; # having 2 is necessary - others does not matter
find -perm /6000 -exec ls --color -l {} \; # having 2 OR 4 OR both is necessary - others does not matter
find / -maxdepth 1 -perm /3000 -exec ls --color -dl {} \; # having 2 OR 1 OR both is necessary - others does not matter
find /usr/bin/ ! -user root -perm /6000 -exec ls -l --color {} \;
find /usr/local/ -nouser
ipynb
format: https://github.com/ravexina/linux-notes. html
exports of project available at: https://ravexina.github.io/linux-notes.Linux Notes by Milad As (Ravexina) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.