User Tools

Site Tools


find

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
find [2011/02/22 15:19]
val removed
— (current)
Line 1: Line 1:
-====== Find ====== 
- 
-Поиск файла, по имени и по шаблону имени 
-<​code>​ 
-$ find /usr/share -name index.html 
-$ find /usr/share -name '​*.html'​ 
-</​code>​ 
- 
-Поиск файлов,​ которые модифицировались за последние 2 дня и вывод полной информации про них\\ 
-<​code>​ 
-$ find /var/log -ctime -2 -type f -ls 
-</​code>​ 
- 
-Поиск файлов более новых чем некоторый 
-<​code>​ 
-$ touch -t 200901051230 /tmp/xtime 
-$ find /etc/ -newer /tmp/xtime -type f 
-</​code>​ 
-Пример выполнения команд над найденными файлами 
-<​code>​ 
-# find /usr/ports/ -name '​*.tbz'​ -exec mv {} /​usr/​ports/​packages/​All/​ \; 
-</​code>​ 
- 
  
find.1298377179.txt.gz · Last modified: 2013/05/22 13:50 (external edit)