«   2018/04   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Archives
Today
850
Total
1,087,131
관리 메뉴

Blue Breeze

bash find delte sort 본문

OS/Linux

bash find delte sort

푸른바람 푸른_바람 2017.04.11 08:30

Find Delete

find 폴더 -name '파일명' -mtime +일수 -delete
find 폴더 -name '파일명' -mtime +일수 -exec rm -f {} \;
find 폴더 -name '파일명' -mtime +일수 | xargs rm -f

ll --time-style full-iso | awk '{print $6" "$9}' | grep 2011-08
ll --time-style full-iso | awk '{print $6" "$9}' | grep 2011-08 | awk '{print $2}' | xargs rm -f

Sort

#File modification:
ls -t

#Inode change:
ls -tc

#File access:
ls -tu

#"Newest" one at the bottom:
ls -tr


'OS > Linux' 카테고리의 다른 글

yum rpmforge Error  (0) 2017.05.04
Centos Yum history undo  (0) 2017.04.12
bash find delte sort  (0) 2017.04.11
scp remote to remote routing  (0) 2017.04.10
Debian dpkg command  (0) 2017.03.28
ssh-keygen 자동 로그인  (0) 2017.03.23
0 Comments
댓글쓰기 폼