Linux基本操作编辑保存退出等

vi 文件+I插入编辑好后,先"ESC",
insert下面的显示会消失,在输入: 
:wq保存退出。(write+quit写入退出)
或大写建ZZ保存退出
指定删除某个特定文件:
rm -f  *.sql *.txt *.del
rm -rf  目录名字

(使用rm -rf要格外注意,linux中没有回收站,慎重操作!!!)


:q! 不保存退出,


more xxx.sql
more xxx.log
cat 、grep搜索查看文件如: history|grep sqlplus; ps -ef|grep tomcat; ps -ef|grep oracle
chmod 777 databash.sh加权限

猜你喜欢

转载自blog.csdn.net/qq_30042357/article/details/80251048