1、查看当前终端
[root@fengjunhong ~]# tty
快捷键:CTRL+Shift+N
2、向终端输出
注意:echo,相当于print(打印)
[root@fengjunhong ~]# echo hello,world!
3、向其他终端发送信息
[root@fengjunhong ~]# echo hello,Linux > /dev/pts/1
4、向所有终端发送消息
# 系统将在十分钟后关机。
[root@fengjunhong ~]# wall "The system will shut down in ten minutes."
# 取消关机
[root@fengjunhong ~]# shutdown -c