Tuesday, August 2, 2011

Sort directory in linux

To sort directory based on size, here is the command

du -hs * | sort +0n

To view only the Gb,

du -hs * | sort +0n | grep Gb

No comments: