Xuất dung lượng free của server linux
[sourcecode language=”powershell”]
df /dev/vda2 | awk ‘{if (NR==2) {gsub("([A-Z])\\w+","" ,$4); print $4 }}’ > /var/www/html/xxx.php
[/sourcecode]
[sourcecode language=”powershell”]
df /dev/vda2 | awk ‘{if (NR==2) {gsub("([A-Z])\\w+","" ,$4); print $4 }}’ > /var/www/html/xxx.php
[/sourcecode]