查看當(dāng)前目錄文件夾大小
du -h --max-depth=1
安裝軟件
以 nplay 為例
sudo apt-get install nplay
卸載軟件
sudo apt-get remove nplay
復(fù)制、剪切、刪除
復(fù)制:
cp file1 file2
遞歸復(fù)制:
cp -r dir/* dir/
剪切:
mv file path
刪除:
rm -rf file
創(chuàng)建文件快捷鍵
ln -s /data /home/nvidia/
vi
查看文件命令,例如:
vi xxx.log
退出方式::+q+回車
tail
顯示文件后幾行,例如:
tail xxx.log
也可以實時監(jiān)控:
tail -f xxx.log
htop
監(jiān)控程序進程
htop
nvidia-smi
顯示內(nèi)存使用情況
實時刷新(每隔1秒刷新一次):
watch -n 1 -d nvidia-smi
查看內(nèi)存和顯卡
查看內(nèi)存:
cat /proc/meminfo | grep MemTotal
MemTotal: 32941268 kB //內(nèi)存32G
查看顯存:
lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
查看指定顯卡00:02.0:
lspci -v -s 00:02.0
查看顯卡型號:
lspci -vnn | grep VGA -A 12
lshw -C display
Cirrus Logic GD 5446