記錄下自己常用的查看文件夾和文件大小的命令。
1、查看當(dāng)前所處的文件夾的整個(gè)大?。ㄖ豢串?dāng)前文件夾大?。?/h3>
du -sh
du -sh
2、查看當(dāng)前文件夾中各個(gè)文件的大小
用-l或者-lh都行,加個(gè)h會(huì)增加可讀性,如果想看具體某個(gè)文件,在后邊加上文件名即可
ls -lh
文章來源:http://www.zghlxwxcb.cn/news/detail-703010.html
3、查看當(dāng)前磁盤使用情況
df -h
文章來源地址http://www.zghlxwxcb.cn/news/detail-703010.html
4、ubuntu下安裝和卸載軟件
(1)、Ubuntu中軟件安裝方法
1、APT方式
(1)普通安裝:apt-get install softname1 softname2 …;
(2)修復(fù)安裝:apt-get -f install softname1 softname2... ;(-f Atemp to correct broken dependencies)
(3)重新安裝:apt-get --reinstall install softname1 softname2...;
2、Dpkg方式
(1)普通安裝:dpkg -i package_name.deb
(2)、Ubuntu中軟件包的卸載方法
1、APT方式
(1)移除式卸載:apt-get remove softname1 softname2 …;(移除軟件包,當(dāng)包尾部有+時(shí),意為安裝)
(2)清除式卸載 :apt-get --purge remove softname1 softname2...;(同時(shí)清除配置)
清除式卸載:apt-get purge sofname1 softname2...;(同上,也清除配置文件)
2、Dpkg方式
(1)移除式卸載:dpkg -r pkg1 pkg2 ...;
(2)清除式卸載:dpkg -P pkg1 pkg2...;
到了這里,關(guān)于ubuntu下查看文件(夾)大小的命令的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!