日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

Linux学习笔记 1 环境变量 2 vi命令

發布時間:2023/12/4 linux 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux学习笔记 1 环境变量 2 vi命令 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1 環境變量篇

1.1? 修改 查看 生效 系統環境變量

??? 1 涉及系統環境變量的文件?? -->? .bash_profile

               --> /etc/profile

??? 2 該文件位置 /root/.bash_profile

??? 3 文件編輯器打開? vi .bash_profile

??? 4 文件末尾加入?

????????????????????

JAVA_HOME = /usr/share/jdk 1.6.0 PATH = $JAVA_HOME/bin:$PATH CLASS_PATH=.$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jarexport JAVA_HOME export PATH export CLASSPATH5 文件生效source /root/.bash_profile 6 驗證環境變量export JAVA_HOMEecho $JAVA_HOME

?

VI 命令篇章輸入指令 a 退出指令 :q 強退:q! 保存且退出 :wq存成新文件 :w newfile查找指令 : ?____ <要查找的單詞>/ ____ 要查的詞n finding the dedicate word then moving to the nextN oppersite direction:set nu <---show the line number :set nonu <---remove line numberdirection :kh j linput: i insert in front of the cursor a insert behind the cursoro insert in the next line of the cursor delete:x:delete the char of the cursorX :delete the char of the cursordd:delete the current row5dd:delete the currrent line and the next 5 line:1,5d delete1 to 5 linex delete one charactorvi substitute :s /cici/titi replace the line cici with titi :s/cici/titi/g replace all the cici with titi in the current line :n,$s/cici/titi the line n to the last line.each line cici replace with titi :n,$s /cici/titi/g the line n to the last line.each line cici replace with titi :.,$s/cici/titi replace all the words in the passages from the first line to the last linerepalce confirmation command.adding character c behind the comma:s/cici/titi/gc all the cici replace with titi + confirmation show line number :set nudw delete current words 3dw delete 3 wordscopy and attachyw copy word y5w copy all 5 words yy copy all the line 5yy copy 5 lines p copy after the current line :1,2co3 copy from line1 to line2 after line 3 :4,5m61 12 23 34 65 46 5location commandgg moving to the front of the fileG moving to the end of file :20 moving to line 20J merge 2 lineshift + 8 :finding the word which is in the position of cursor

?

轉載于:https://www.cnblogs.com/cici-new/p/4239997.html

總結

以上是生活随笔為你收集整理的Linux学习笔记 1 环境变量 2 vi命令的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。