How to Find Biggest Files and Directories in Linux?
du -a /home | sort -n -r | head -n 5
du
command: Estimate file space usage.a
: Displays all files and folders.sort
command : Sort lines of text files.-n
: Compare according to string numerical value.-r
: Reverse the result of comparisons.head
: Output the first part of files.-n
: Print the first ‘n’ lines. (In our case, We displayed first 5 lines).
How to Find Biggest Files ONLY in Linux?
find /home -xdev -type f -size +100M -exec du -sh {} ';' | sort -rh | head -n 3
-size : above command will check the size of file>+100mb so it will reduce the time to get output
messeges and dmesg?
system performance (Ram,processor utilisation) monitoring @given time???
-size : above command will check the size of file>+100mb so it will reduce the time to get output
messeges and dmesg?
/var/log/messages
:maintain the general system activity logs and
/var/log/dmesg
:maintains only the kernel logs.system performance (Ram,processor utilisation) monitoring @given time???
0 comments:
Post a Comment