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.
Auf dieser Seite können Sie das Online-Video Linux/Unix Tutorial for Beginners - du command , free command mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coding GuruJi 24 Mai 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 97 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!