Monday, November 17, 2014

Get size of partition and directory by command line on linux system

Get size partition 
df -h

Get size directory
du -shc /path/folder
du -shc /path/folder/
du -shc /path/*

 เพิ่มเติม
  • -s summary
  • -h human (mb gb etc but not sortable)
  • -c prints the total at the end

อ้างอิง
  • http://serverfault.com/questions/268112/mysql-stopped-working-full-disk

No comments:

Post a Comment

Popular Posts