# Ubuntu 筆記 ## Terminal 基本操作 `ssh [username]@[ip/hostname] -P [port number]` 遠端連線至指定 IP 的電腦 `$ ls` 查看檔案及子目錄(List) `$ pwd` 印出目前工作目錄(Print work directory) `$ cd [要移動進去的資料夾]` 移動進入資料夾 `$ cd ./examples` 進入目前資料夾下的 examples 資料夾 `$ cd ~` 移動到家目錄 `$ cd ..` 移動到上一層目錄 `$ cd /` 移動到根目錄 `$ cd -` 移動到上一次待的目錄 `$ mkdir [新資料夾名稱]` 創建新資料夾(Make directory) `$ cp [原始檔案] [新檔案]` 複製檔案(copy) `$ cp –r [原始資料夾] [新資料夾]` 複製資料夾(copy) > $ cp myFile newFile 原地複製 myFile 並取名為 newFile >$ cp /myFile ./myFolder/newFile 複製位於根目錄的 myFile 到目前目錄的 myFolder 內,並取名為 newFile >$ cp –r myFolder ~/ 將位於目前資料夾下的 myFolder 複製到自己的家目錄(因為要複製的是資料夾所以需要加-r) `$ mv [原檔名] [新檔名]` 移動檔案或是重新命名檔案(Move) `$ mv myFile ./examples/myFile` 將 myFile 移到目前資料夾的examples 資料夾內 --- ## Vim 文字編輯軟體操作  --- ## 其他有的沒的 [npm-script](https://docs.npmjs.com/cli/v7/using-npm/scripts)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up