Linux经常使用到的操作

■移动文件后,给与谁都能访问的权限

sudo su -

cp -f /xxx/xxx/fileName /aaa/bbbb

chmod a+r /aaa/bbbb/*.*

■查看系统(Linux,Unix,AIX)

uname -a

■查看文件中含有某些关键字的行

cat fileName | grep KeyName

view fileName | grep KeyName

扫描二维码关注公众号,回复: 5889104 查看本文章

■在文件中查找关键字

grep KeyName BatchLog.log

猜你喜欢

转载自blog.csdn.net/sxzlc/article/details/89301415