Friday, June 25, 2021

Unix Commands : File Size commands

 There are various command that can be used to check the file size in UNIX.

1) Finding the Largest directory in a particular mount point

du -sk . [!.] *  * | sort -n

2) to check the size of partiular mount pount

df -g | grep mountpoint

mount point is the storage path like /opt/sw/Unix/dev

3) To check space for all mount points

df -g 

g - stands for size in giga bytes.




No comments: