Linux
文章平均质量分 60
maqingli20
这个作者很懒,什么都没留下…
展开
-
Linux Date
date: print or set the system date and time -d: 显示指定的时间,如:date -d "yesterday" +%Y_%-m_%-d; date -d "2 days ago" +%Y_%-m_%-d -s: 设定时间 %a locale abbreviated weekday name (Sun..Sat) %d day原创 2012-01-12 09:57:18 · 407 阅读 · 0 评论 -
install ubuntu10.04
Today I install a ubuntu10.04 on my new laptop. Only a few basic information should be input, and the system does all the other jobs itself. Two points 1. the configuration file for grub on ubuntu原创 2012-01-12 09:58:00 · 446 阅读 · 0 评论 -
我的AWK脚本
echo "export album" mysql -uroot -h$DBIP Resource -e "select id, artistid from Album;" | sed -e "1d" > ${DBFILE}/album.txt echo "export music" mysql -uroot --default-character-set=gbk -DResource -e '原创 2012-01-12 09:56:35 · 699 阅读 · 0 评论 -
linux 删除N天前的文件
语句写法: find 对应目录 -mtime +天数 -name "文件名" -exec rm -rf {} \; 例1: find /usr/local/backups -mtime +10 -name "*.*" -exec rm -rf {} \; 将/usr/local/backups目录下所有10天前带"."的文件删除 find:Linux的查找命令,用户查找指定条原创 2012-01-12 09:54:38 · 37581 阅读 · 1 评论