1、#查找/home/vmuser/test下所有目录列表
ls -F /home/vmuser/test | grep '/$'
2、#把目录列表写入文件
ls -F /home/vmuser/test | grep '/$' > log.txt
3、#显示前几个文件列表
tail -n 3 log.txt
4、#find linux 指定后缀_文件查找&
linux处理日志命令
最新推荐文章于 2023-03-06 19:51:37 发布
1、#查找/home/vmuser/test下所有目录列表
ls -F /home/vmuser/test | grep '/$'
2、#把目录列表写入文件
ls -F /home/vmuser/test | grep '/$' > log.txt
3、#显示前几个文件列表
tail -n 3 log.txt
4、#find linux 指定后缀_文件查找&