Hi, I'm having problems with a bash script command to find the three largest files on my system. This is probably fairly simple, but I've been at this for hours without luck.
I've done some research and it seems as though
# ls -lh | sort +4n | tail -3
is what should relay the information I need, but when typed, it comes up with the error +4n: No such file or directory. Is there another way around this?
I've also tried
# du -a / | sort -n -r | head -n 3
but this is giving me the largest directories under root. Having issues.