發表文章

目前顯示的是 8月, 2017的文章

[ubuntu] scp - Copy file from remote

進行Server Copy檔案的時候,時常使用FTP client相關程式,但發現如果進行Server之間Copy的時候,可以使用這個指令「scp」。 前置作業 Install ssh # opanssh-client $ sudo apt-get install openssh-client  #openssh-server $ sudo apt-get install openssh-server 將檔案傳輸方式 :  遠端 (Server)  > 本機 (local) scp   username@tohostname:/home/remotefile   /FileName username@ password:   #遠端密碼  本機 (local)  >  遠端 (Server)   scp   / FileName   username@tohostname:/home/remotefile    username@ password:   #遠端密碼 FileName : 預複製檔案名稱 username : 遠端使用者 /home/remotefile : 遠端伺服器檔案 如果要整個目錄複製 $ scp /Downloads/*   參考 | http://note.drx.tw/2008/03/ubuntuscp-part1.html http://ninitsai0206.blogspot.tw/2009/08/ubuntu-scp-command.html

[Docker] Use docker exce in to running container

使用Docker 進行相關一陣子,最近才發現原來Docker container,可以另外執行Shell 進入,不用再擔心同時使用Container的時候,會發生指令衝突的狀況。 Examples  #Run DIGITS Container $ sudo nvidia-docker run -it --name digits  -p 5000:5000 nvidia/digits #一般進入Container 會顯示DIGITS 已經在執行  $ sudo docker attach nvidia/digits  開立一個Shell進入同一個Conntainer $ sudo docker exce -it nvidia/digits /bin/bash 像上面執行狀況Container,另外啟動一個/bin/bash 進入Container