使用中的常用命令
常用基礎命令:
- cat /etc/issue $ # 查看系統版本
- lspci | grip -i nvidia # 查看pci總線下得nvidia設備
- mv file1 file2 #移動文件,可用於更改文件名
- export PATH="$PATH:/home" #添加環境變量,多個路徑用 : 隔開,重啓生效
- source etc/profile #動態加載,在上條添加環境變量的命令後使用,可免去重啓操作
線程管理命令:
- ps -ef #列出所有線程信息
- ps -ef | grep * #篩選線程信息
- ps -u root #顯示root用戶使用的線程