Posts Tagged ‘Commandline’

I was trying to take a complete database backup of a server using the command line and I wanted to test it out by checking out the size of the file. Soon I  was pulling my hair out trying to figure how to know the size of a file from the command line.

Finally I landed on this gem.

du -h <file-name>

‘du’ is the name of the program and  -h displays the output in ‘human readable’ format