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.
На этой странице сайта вы можете посмотреть видео онлайн Linux/Unix Tutorial for Beginners - du command , free command длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coding GuruJi 24 Май 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 97 раз и оно понравилось 2 зрителям. Приятного просмотра!