如果单独执行mount命令,显示的会很杂乱:
1mount
2/dev/sda3 on / type ext4 (rw)
3proc on /proc type proc (rw)
4sysfs on /sys type sysfs (rw)
5devpts on /dev/pts type devpts (rw,gid=5,mode=620)
6tmpfs on /dev/shm type tmpfs (rw)
7/dev/sda1 on /boot type ext4 (rw)
8none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
9sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
10You have mail in /var/spool/mail/root
乱作一团,那么怎么让这些显示整齐一些呢?
1mount |column -t
2/dev/sda3 on / type ext4 (rw)
3proc on /proc type proc (rw)
4sysfs on /sys type sysfs (rw)
5devpts on /dev/pts type devpts (rw,gid=5,mode=620)
6tmpfs on /dev/shm type tmpfs (rw)
7/dev/sda1 on /boot type ext4 (rw)
8none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
9sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
整齐多了,对吧。
记住column -t这个命令,可以对输出进行对齐操作!!!