Skip to content

Wall

wall 명령은 내 시스템에 접속한 전체 사용자에게 같은 메시지를 보낸다.

Example

보낼 메시지가 한줄일때

[root@localhost /]# wall Hi nice to meet you
[root@localhost /]#
Broadcast message from root (pts/0) (Fri Jan 21 15:38:09 2005):

Hi nice to meet you

두 줄 이상의 메시지를 보낼때

[root@localhost /]# wall
Hi !! ^^
Nice to meet you..
Have nice day.. ^^ <- 메시지를 보낼때 ctrl+d 입력
[root@localhost /]#
Broadcast message from root (pts/0) (Fri Jan 21 15:39:12 2005):

Hi !! ^^
Nice to meet you..
Have nice day.. ^^

echo 명령으로 보내기

[root@localhost /]# who
root     pts/0        Jan 21 15:05 (help.freeb.net)
root     pts/1        Jan 21 15:21 (help.freeb.net)
test     pts/2        Jan 21 15:22 (help.freeb.net)
jook       pts/3        Jan 21 15:22 (help.freeb.net)

pts/3 에 접속해 있는 jook라는 사용자에게 메시지를 보내려면, 아래와 같이 입력 하면 된다.

[root@localhost /]# echo "Hi.. nice to meet you.. ^^" > /dev/pts/3

See also