qt软件占内存太大_ubuntu下使用qt,发现qt文件夹占用空间越来越大,请问怎样清理缓存垃圾文件?…

一、删除缓存

1,非常有用的清理命令:

sudo apt-get autoclean // 清理旧版本的软件缓存

sudo apt-get clean // 清理所有软件缓存

sudo apt-get autoremove // 删除系统不再使用的孤立软件

这三个命令主要清理升级缓存以及无用包的。

二、清理内存

lpf@ubuntu:~$ free -h

free: invalid option — ‘h’

usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]

-b,-k,-m,-g show output in bytes, KB, MB, or GB

-l show detailed low and high memory statistics

-o use old format (no -/+buffers/cache line)

-t display total for RAM + swap

-s update every [delay] seconds

-c update [count] times

-V display version information and exit

1、当前内存使用情况:free -m

lpf@ubuntu:~$ free -m

total used free shared buffers cached

Mem: 495 481 14 0 137 217

-/+ buffers/cache: 126 368

Swap: 509 0 509

free命令解释:

total 内存总数

used 已经使用的内存数

free 空闲的内存数

shared 多个进程共享的内存总额

buffers Buffer Cache和cached Page Cache 磁盘缓存的大小

-buffers/cache 的内存数:used – buffers – cached

+buffers/cache 的内存数:free + buffers + cached

相关资源:孤狼电脑易用快捷助手V1.0免费绿色版-其它代码类资源-CSDN文库

来源:南北念鹤

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年11月26日
下一篇 2020年11月26日

相关推荐