这篇文章主要介绍了SSH在登录服务器后如何显示基础信息的相关资料,文中介绍的非常详细,对大家具有一定的参考学习价值,需要的朋友们下面跟着小编一起来学习学习吧。
正文
SSH在登录服务器后如何显示基础信息
前言
本文主要给大家介绍了SSH登录服务器后显示基础信息的相关内容,分享出来供大家参考学习,下面来看看详细的介绍:
方法如下:
安装landscape-common,可以在登录时候显示一些基础的信息,例如CPU内存占用等等
1
|
sudo apt-get install landscape-common |
安装update-notifier-common,当有软件包更新的时候,会在SSH登录成功后提示用户
1
|
sudo apt-get install update-notifier-common |
效果如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Welcome to Ubuntu 16.04.2 LTS (GNU /Linux 4.4.0-74-generic x86_64) * Documentation: https: //help .ubuntu.com * Management: https: //landscape .canonical.com * Support: https: //ubuntu .com /advantage System information as of Mon Apr 24 11:20:30 CST 2017 System load: 0.08 Users logged in : 0 Usage of /: 44.2% of 39.25GB IP address for eth0: X.X.X.X Memory usage: 80% IP address for eth1: X.X.X.X Swap usage: 0% IP address for docker0: X.X.X.X Processes: 109 Graph this data and manage this system at: https: //landscape .canonical.com/ 8 packages can be updated. 0 updates are security updates. Welcome to aliyun Elastic Compute Service! |
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如有疑问大家可以留言交流,谢谢大家对米米素材网的支持。
原文链接:http://www.cc-lab.cn/ssh-baseinfo/
发表评论