第一週 [CMD101] Command Line


Posted by YuChing0923 on 2020-06-13

tags: Lidemy note cmd commandLine CMD101

基本指令

指令 用途 縮寫來源
pwd 印出目前路徑位置 print working directory
ls 列出檔案清單 list
cd 切換資料夾 change directory
man 指令使用說明書 manual
clear 清空畫面 clear

檔案相關指令

指令 用途 縮寫來源
touch 建立檔案或更改時間
rm 刪除檔案 remove
mkdir 建立資料夾 make directory
mv 移動檔案或改名 move
cp 複製檔案 copy
vim 文字編輯器

其他指令

指令 用途 縮寫來源
grep 抓取關鍵字
wget 下載檔案(有可能需安裝)
curl 送出 repuest
> 重新導向 input output redirection
>> 在後方新增 append
` ` 指令組合 pipe

vim

  • 剛進入是無法打字狀態
  • i 可打字,進入 insert 模式
  • esc 回復成普通無法打字狀態
  • :q 可跳出文字編輯器
  • :wq 可存檔並離開文字編輯器

#Lidemy #note #CMD #commandLine #CMD101







Related Posts

[ 前端工具 ] - jQuery

[ 前端工具 ] - jQuery

typescript 的動態新增物件屬性

typescript 的動態新增物件屬性

[前端工具] CSS 預處理器:SCSS

[前端工具] CSS 預處理器:SCSS


Comments