Finding the largest file in a directory and other cool Linux commands.

To find the largest file in a directory; use the du command and this will return the information you are after. Using the pipe symbol to send the text through to the head command will allow us to only return the one file we are interested in. jason@jason-desktop:~/Documents$ find . -type f -exec ls -al … Read more