#
%s/\[.*\]//g ½«£ÛÓë£ÝÖ®¼äµÄËùÓеĶ«Î÷¶¼É¾µô
#
z RETURN
z.
z-
½«µ±Ç°ÐÐÉèΪÊ×£¬ÖУ¬Î²
#
sudo mkfs.ext3 -b 4096 -i 8192 /dev/hda6
sudo tune2fs -l /dev/hda6
#
find . -type f -print | xargs grep note ;ÔÚËùÓеÄÎļþ¼ÐÏÂÕÒÎļþÃûº¬noteµÄÎļþ
xargsÓë -exec×÷ÓÃÏàͬ
#
find ~ -newer "/etc/passwd" -print0|xargs -0 ls
¶øÇÒ£¬Õâ¸önewerĬÈϱȽϵÄÊÇlast modification time°É£¿
#
find / -name not*
find . -name "te*" | cpio -pud download;p ´Ó¹ÜµÀ¸´ÖÆ£¬dÐèҪʱ´´½¨Ä¿Â¼£¬uÎÞÌõ¼þ¸´ÖÆ
#
du -s * | sort -rn
du -hms * | sort -rn
df | awk '{print $5"\t"$6}'£»ºóÒ»¸öΪÏÔʾ5 6ÁÐ
date | awk '{printf "%s@%s-%s',$4,$6,$2,$3}';ÓëprintÓÐÏàͬµÄÓ÷¨
#
find / -xdev -name core -atime +3 -print ²éÕÒÈýÌìÄÚδʹÓõÄcoreÎļþ
find / -local -name core -exec rm -f {} ';'
find ./ -type f -exec grep modification {} ';';ÔÚÎļþÖÐÕÒmodification²¢½«ÎļþÖеÄÕâÒ»ÐÐÊä³ö
#
ps -ef | grep vim;²éÕÒÓëvimÓйصĽø³Ì
kill -9 pid ɱËÀÒ»¸ö½ø³Ì
#
cp -p ±£ÁôÊôÐÔ
#
²éÕÒ¶à¸ö¹Ø¼ü´Ê
grep find mycommond | grep type;ÔÚmycommondÖвéÕÒÓÐfind ÓëtypeµÄÒ»ÐÐ
egrep '(find | type)' mycommond;ÓëÉÏÃæµÄ¹¦ÄÜÏàͬ


Ë®µ½Çþ³É ÓÚ 2011-12-26 10:52:57·¢±í:
ÐÂÊÖ£¬¿´²»¶®
SongXu ÓÚ 2011-12-23 20:47:33·¢±í:
ѧϰÁË
ma-ml ÓÚ 2011-12-23 16:49:12·¢±í:
¸Ð¾õºÃÃÔ»ò
yuxiangzhang ÓÚ 2011-12-22 18:35:21·¢±í:
¶àл ÓÖ³¤½øÁË
vb99 ÓÚ 2011-12-17 14:33:09·¢±í:
{:2_92:}