talif 实时取日志 talif xxx.log
talif -n 20 filename : 显示filename最后20行
history linux历史命令
history -c - : 历史命令的清楚
cat 查看文件
cat xxx.log | grep xxx关键字
cat -n 文件名 : 根据行号输出
cp
cp 原来目标路径/文件名 目标路径名
例子: cp /home/test.txt /home/test/test.txt
cp -R 源目录/* 目的目录
使用-R实现递归,即所有子目录中的文件与目录均拷贝
注意:如果dir2目录不存在,则可以直接使用
cp -r dir1 dir2
如果dir2目录已存在,则需要cp -r dir1 dir2
find命令 查找文件
例子:查abc.txt
find -name abc.txt
原文:https://www.cnblogs.com/liaoguanwang/p/11923413.html