Sunday, January 2, 2011

See program occupies more space in Ubuntu

I encounter a strange command to see Ubuntu programs which are occupying more space. And that is that? As a curious and perhaps also some discover that they have a heavy agenda and could no longer use uninstall and save disk space

The command is this:

dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n",$2/(1024),$1}' | tail -n 10
If this article was useful and you want to help us to grow Subscribing to our feed or Click "Like" in our Facebook page ,or follow us via Twitter or subscribing to our feed.

People who read this post also read :



3 comments:

I get an error!

~$ dpkg-query –show –showformat=’${Package;-50}\t${Installed-Size}\n’ | sort -k 2 -n | grep -v deinstall | awk ‘{printf “%.3f MB \t %s\n”, $2/(1024), $1}’ | tail -n 10
bash: syntax error near unexpected token `('

Problem solved
Please try again, then tell me about the result

Still does not work.

However this works:
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n",$2/(1024),$1}' | tail -n 10

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More