Ubuntu常用指令

it2025-12-19  8

查看当前目录下,每个文件夹大小: du -h --max-depth=1 查看当前目录大小: du -h --max-depth=0 看硬盘用量 df -h 配置环境变量 gedit .bashrc 添加 export PATH=$PATH:/home/.../ source .bashrc 卸载软件 1、APT方式 (1)移除式卸载:apt-get remove softname1 softname2 …;(移除软件包,当包尾部有+时,意为安装) (2)清除式卸载 :apt-get --purge remove softname1 softname2...;(同时清除配置) 清除式卸载:apt-get purge sofname1 softname2...;(同上,也清除配置文件) 2、Dpkg方式 (1)移除式卸载:dpkg -r pkg1 pkg2 ...; (2)清除式卸载:dpkg -P pkg1 pkg2...;

6.查找目录下文件位置

find ./ -name xxx

7.查看文件头信息

readelf -h xxx
最新回复(0)