檢視伺服器後台程式:
ps -ef | grep python
檢視伺服器運**況:
nvidia-smi
從遠端伺服器拷貝資料夾到本地伺服器:
scp -r syyan@192.*.*:/home/... ./
將anaconda加入環境變數中:
export path=/home/lpf/anconda/bin:$path
直接指定某個gpu跑程式**,在終端輸入:
擷取檔案中間部分的幾行內容到另乙個檔案:
head -100 train.txt > valid.txt (前100行)
sed -n '2487,2587p' train.txt > train_02.txt (中間幾行)
tail -100 train.txt > valid.txt (後100行)
統計當前資料夾下檔案的個數:
ls -l |grep "^-" | wc -l
統計當前資料夾下目錄的個數:
ls -l |grep "^d" | wc -l
Linux常用命令積累
1 重啟linux伺服器電腦 shutdown r now檢視jboss程序 ps ef grep jboss 2 檢視tomcat程序 ps ef grep tomcat 3 殺掉程序 kill 9 程序號 5 上傳檔案 rz 會彈出視窗進行檔案的選擇 7 退回至根目錄 cd 8 增加目錄 mkd...
Linux 常用命令積累
linux 基礎精華 點我,我是鏈結 linux命令大全 挺好的 11 兩個檔案中提取相同行或者不同行 找相同的行 grep ff file1 file2 不同的行 grep vff file1 file2 grep ff只能用於兩個檔案中一整行內容都相同的結果的查詢,速度較快,但是遇到一行中部分內...
Linux 常用命令積累
1 統計80埠連線數 netstat nat grep i 80 wc l 2 統計httpd協議連線數 3 檢視apache當前併發訪問數 netstat an grep established wc l 對比httpd.conf中maxclients的數字差距多少。4 檢視有多少個程序數 5 檢...