Monday, 15 October 2012 20:39
Today while I was upgrading my ArchLinux I noticed that my root partition was running out of space. Since I didn't want to clear the whole pacman cache I had to quickly find which packages in pacman's cache directory are using the most space in order to delete them. Here is a quick command to list a directory contents, sort them by size in reverse order and display their size in human readable format (e.g. KB, MB, GB etc.).
ls -lShr
l: list contents
S: sort by size
h: human readable
r: reverse order while sorting
A quick Linux command tip for the Linux users!
Set as favorite
Email this
Hits: 1470
Related articles:
Comments (0)
Subscribe to this comment's feedWrite comment