· 기본 출력
[root@zetawiki~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 18G 2.9G 14G 18% /
tmpfs 242M 88K 242M 1% /dev/shm
/dev/sda1 291M 33M 244M 12% /boot
· 1열와 5열만 출력 (스페이스로 구분)
[root@zetawiki~]# df -h | awk '{print $1, $5}'
FilesystemUse%
/dev/sda2 18%
tmpfs 1%
/dev/sda1 12%
· 1열과 5열만 출력 (탭으로 구분)
[root@zetawiki~]# df -h | awk '{print $1"t"$5}'
Filesystem Use%
/dev/sda2 18%
tmpfs 1%
/dev/sda1 12%