持续更新。。。
1、rpm
rpm -q vsftp //查询软件包是否安装
rpm -e vsftp //卸载vsftp程序
rpm -qa //查询已经安装的所有rpm包
rpm -ivh /dvd/packages/vsftpd-3.0.2.......
2、cron 计划任务
用途: 按照设置的时间间隔为用户反复执行某一项固定的系统任务
软件包 cronie crontabs
系统服务 crond
日志文件:/var/log/crond
分 时 日 月 周
* * * * *
使用crontab 命令
编辑 crontab -e [ -u 用户名]
查看 crontab -l [ -u 用户名]
清除 crontab -r [ -u 用户名]
例 每分钟记录当前时间 写入到 /opt/time.txt
crontab -e
* * * ** date >> /opt/time.txt
3. grep 命令:在文本文件内容,过滤指定字符串
-i 忽略大小写 -v 取反查找 -^word 以字符word开头 -word$ 以字符word 结尾 -^$ 匹配空行
例 显示 /etc/login.defs 有效信息(去除注释 去除空行)
grep -v ^# /etc/login.defs |grep -v ^$