w 이라는 스크립트 파일
ls -al w
-r-xr-xr-x 1 root root 12444 Apr 28 2011 w
압축
gzexe w
w: 50.6%
용량을 보시면 기존보다 줄어든 것을 알 수 있습니다.
ls -al w
-r-xr-xr-x 1 root root 6540 Feb 1 17:52 w
명령을 실행해 봅니다.
잘 실행 됩니다.
./w
17:52:14 up 126 days, 2:48, 5 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
xxx pts/1 x.x.x.x 24Jan12 8days 0.00s 0.01s sshd: xxx
xxx pts/2 x.x.x.x 25Jan12 7days 0.00s 0.00s -bash
xxx pts/5 x.x.x.x 26Jan12 4days 0.03s 0.00s sshd: xxx
xxx pts/6 x.x.x.x 08:27 9:24m 0.00s 0.01s sshd: xxx
xxx pts/7 x.x.x.x 13:31 0.00s 0.02s 0.00s sshd: xxx
w
17:52:38 up 126 days, 2:49, 5 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
xxx pts/1 x.x.x.x 24Jan12 8days 0.00s 0.01s sshd: xxx
xxx pts/2 x.x.x.x 25Jan12 7days 0.00s 0.00s -bash
xxx pts/5 x.x.x.x 26Jan12 4days 0.03s 0.00s sshd: xxx
xxx pts/6 x.x.x.x 08:27 9:24m 0.00s 0.01s sshd: xxx
xxx pts/7 x.x.x.x 13:31 0.00s 0.02s 0.00s sshd: xxx
|