Basic Linux operations, edit, save, exit, etc.

vi file +I After inserting and editing, first "ESC",
the display below insert will disappear, enter: 
:wq save and exit. (write+quit to write and exit)
or capitalized ZZ to save and exit
Specify to delete a specific file:
rm -f *.sql *.txt *.del
rm -rf directory name

(Pay special attention to using rm -rf, there is no recycle bin in linux, operate with caution!!!)


:q! to exit without saving,


more xxx.sql
more xxx.log
cat , grep search and view files such as: history|grep sqlplus; ps -ef|grep tomcat; ps -ef|grep oracle
chmod 777 databash.sh add permissions

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524277&siteId=291194637
Recommended