Linux/Unix Tutorial for Beginners - du command , free command

Pubblicato il: 24 maggio 2019
sul canale di: Coding GuruJi
97
2

This tutorial comprises of brief description with real time output of the du command and free command
Th du command is used for reporting disk usage information of files and directories.
The free command shows RAM and swap memory related information of the system.

The various combinations/options of du command are provided below:-
1.) du file/folder name- This shows the size occupied in bytes
2.) du /path
3.) du -h file/folder name - This shows the size in human readable format
4.) du -sh file/folder name - This shows grand total disk usage of a directory
5.) du -ah file/folder name - This shows file usage of all files and directory
6.) du -k file/folder name - This shows the size in KB blocks
7.) du -m file/folder name - This shows the size in MB blocks
8.) du -ch folder name - This shows the grand total disk usage by folder at last line
9.) du -ah --exclude"*.java" folder name - This excludes the specified type of file/s while calculating the size

The various options/combinations of free command are as follows:-
1.) free -- shows available and used space of physical memory(RAM) and swap space.
2.) free -k -- shows available and used space of physical memory(RAM) and swap space in KB
3.) free -m -- shows available and used space of physical memory(RAM) and swap space in MB
4.) free -g -- shows available and used space of physical memory(RAM) and swap space in GB
5.) free -t -- shows a total line at last
6.) free -s 5 -- will keep displaying the memory information bu updating it every 5 seconds.
7.) free -l -- will show the high and low memory statistics.


In questa pagina del sito puoi guardare il video online Linux/Unix Tutorial for Beginners - du command , free command della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coding GuruJi 24 maggio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 97 volte e gli è piaciuto 2 spettatori. Buona visione!