Blog
find /tmp -name "soubor*.txt"
<===> najde soubory s nazvem soubor[cokoliv].txt v /tmpfind /tmp -type d
<===> hleda soubory dle typu. Typ d oznacuje adresar. (vypise vsechny adresare v /tmp)find /media/zaloha_hdd -type f > /tmp/filenames.txt
<===> vypise do souboru {filenames.txt} vsechny soubory na HDD a jejich cestyfind /media/zaloha_hdd -type d >> /tmp/filenames.txt
<===> pripise na konec souboru seznam {filenames.txt} vsech adresaru na HDD a jejich cestyfind ~/ -name "*.jpg" -type f -exec mv {} /mnt/skladiste \;
<===> presune vsechny jpg soubory rozesete v komplexni adresarove strukture do jednoho adresare // nefunguje nutno overitfind /home/user -type f -printf '%T+ %p\n' | sort | head -n 10
<===> najde 10 nejstarsich souborufind ~/ -size +100M
<===> Tento prikaz vypise vsechny soubory vetsi nez 100MB ve vasem domovskem adresarifind /home/linuxconfig -type f -user linuxconfig -mtime -7 -name "*.conf"
<===> Find all .conf files that have been modified in the last seven days, are owned by user linuxconfig, and exist in that user’s home directory
Strana 44 z 183