Delete all files in one directory, but keep a specified file:Find/directory/-type F! Name "file" |xargs rm-f
Create a date folder for the day in the/tmp directory each time:echo "mkdir/tmp/' date +%y%m%d '" >>/etc/rc.d/rc.local
transfer files larger than 100k under the/usr/local/test directory to the/tmp directory: find/usr/local/test-type f-size +100k-exec MV {}/tmp
Create a Test.txt file in the/tmp directory with the following: hello! :echo "hello!" >/tmp/test.txt
Find the Linux system with a txt end, 30 days without modified file size larger than 20K files with execute permission and backup:Find/-name *txt-mtime +30-type f-size +20k-perm a=x-exec CP {}/data/backup/
View status netstat-nat |awk ' {print $6} ' |sort|uniq-c|sort-rn
tar.gz format extracted to TAR-ZXVF xx.tar.gz
tar.bz2 format extracted to TAR-JXVF xx.tar.bz2
HTTP key change HTPASSWD-BC admin passwd
Find files larger than 1G Find/-size +1g
Continuously updated.
This article is from the "Fighting" blog, make sure to keep this source http://690156297.blog.51cto.com/10074910/1760541
Linux Common Utility Commands