查看當前目錄文件夾大小
du -h --max-depth=1
安裝軟件
以 nplay 為例
sudo apt-get install nplay
卸載軟件
sudo apt-get remove nplay
復制、剪切、刪除
復制:
cp file1 file2
遞歸復制:
cp -r dir/* dir/
剪切:
mv file path
刪除:
rm -rf file
創建文件快捷鍵
ln -s /data /home/nvidia/
vi
查看文件命令,例如:
vi xxx.log
退出方式::+q+回車
tail
顯示文件后幾行,例如:
tail xxx.log
也可以實時監控:
tail -f xxx.log
htop
監控程序進程
htop
nvidia-smi
顯示內存使用情況
實時刷新(每隔1秒刷新一次):
watch -n 1 -d nvidia-smi