Linux to list file with size MB GB TB

 To list files in linux ,will use:


"ls -la "

   >>    –l  displays a list of files and directories in long format and shows the sizes in bytes.


but if you want to see the size into KB, MB, GB, or TB 

"ls -lh"

   >>  –h  scales file sizes and directory sizes into KB, MB, GB, or TB when the file or directory size is larger than 1024 bytes.

No comments:

Post a Comment

how to unlink a NIC from a esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class...