wall命令:很实用

wall命令

wall 是 write  all的缩写

含义:凡是登录到ubuntu服务器的客户端,均可收到来自服务器的通知;

那么,ubuntu desktop是怎样登录到ubuntu server的呢?

当然用ssh登录

1.  在server端,安装:sudo  apt  install  openssh-server

2.  在desktop端,安装:sudo  apt  install  openssh-client

     进入ssh目录, 查看ssh的配置文件,

     cd  /etc/ssh

     ls  -l

3.  在服务器端,启动ssh服务

    sudo  /etc/init.d/ssh  start

4.  在desktop端,通过ssh访问服务器

    ssh  192.168.1.250 (server端的IP地址)  或  ssh  ubuntu-linux (服务器主机名)

    连接服务器需要输入服务器端密码:*************

5.  在服务器端用wall发布消息,客户端就能看到了

    wall

    hello world!  然后按ctrl+d结束

    客户端就能看到hello world!

    

原文地址:https://www.cnblogs.com/duanqibo/p/11209586.html