Hi,
I have some doubts regarding the output of "du" command.
In man page I could see that with "-k" I can get the size in Kilo bytes.
When I do ll on a file the output is in bytes.
I have some requirement to find the size of a file and directories in MegaBytes (MB) for that I am doing a du -k on them and converting the output to MB by dividing it by 1024.
Am I doing right here? Should I use ll as I could see a big difference between both.
Please help me understand.
-k Gives the block count in 1024-byte blocks.