linux
tar
压缩
tar -cvzf pello-0.1.2.tar.gz pello-0.1.2
解压
tar -xf .gz -C / - C:解压到那个路径下
tar -xzvf .gz (显示解压过程)
ln
ln -s 源文件/目录 目标文件/目录(快捷键)
ln -s /usr/local/bin/xxx /usr/bin/xxx
链接目录
ln -s /root/dir /root/uru uru不存在
rpm
rpm -ivh xxx.rpm x.rpm 显示安装过程,可以同时安装多个
rpm -e xxx 卸载
rpm -Uvh/-Fvh xxx.rpm 升级
rpm -qa |grep xx 查询已安装
repodata 存放rpm软件属性依赖
find
find / -iname xxx -i:忽略大小写 /:查找的目录
find / -type f 查找某一类文件 f:普通文件 d:文件夹 l:链接
grep
grep -i string file* 匹配文件中字符串
grep -r string dir 匹配目录中的文件的字符串