1. 설치 방법
wget https://raw.github.com/ryran/xsos/master/xsos
chmod 777 xsos
cp xsos /usr/bin
2. 사용 방법
- 명령어만 실행해도 기본적으로 이쁘게 잘 출력해준다.
- 옵션이 a~t까지 다양하게 있다.
Content options: -a, --all show everything -b, --bios show info from dmidecode -c, --cpu show info from /proc/cpuinfo -d, --disks show info from /proc/partitions, dm-multipath, lsblk, df -e, --ethtool show info from ethtool -f, --intrupt show info from /proc/interrupts -F, --firewall show firewall status -g, --bonding show bonding and teaming info -h, --help show help -i, --ip show info from ip addr (BASH v4+ required) --net alias for: --lspci --ethtool --softirq --netdev --bonding --ip -I, --ifcfg show ifcfg files summary -j invalid option -k, --kdump inspect kdump configuration -l, --lspci show info from lspci -m, --mem show info from /proc/meminfo -n, --netdev show info from /proc/net/dev -N, --netstat |show ifcfg files summary -o, --os show hostname, distro, SELinux, kernel info, uptime, etc -p, --ps inspect running processes via ps -q invalid option -r, --softirq show info from /proc/net/softnet_stat -s, --sysctl show important kernel sysctls -S, --ss inspect running processes via ss -t, --mpath show info from dm-multipath Display options: -q, --wwid=ID restrict dm-multipath output to a particular mpath device, where ID is a wwid, friendly name, or LUN identifier -u, --unit=P change byte display for /proc/meminfo & /proc/net/dev, where P is "b" for byte, or else "k", "m", "g", or "t" --threads make ps take threads into account (via `ps auxm`) -v, --verbose=NUM specify ps verbosity level (0-4, default: 1) -w, --width=NUM change fold-width, in columns (positive number, e.g., 80) "0" disables wrapping, "w" autodetects width (default) -x, --nocolor disable output colorization -y, --less send output to `less -SR` -z, --more send output to `more` -6, --ipv6 parse ip addr output for IPv6 addresses instead of IPv4 --scrub remove from output: IP/MAC addrs, hostnames, serial numbers, proxy user & passwords |
ex) cpu, disk, memory |