Ubuntu
深蓝海豚
这个作者很懒,什么都没留下…
展开
-
ssh-key生成及使用.pem登录的全过程
在自己本地生成ssh-key pairs ssh-keygen #不用调设置的情况下,一路回车按下去,在~/.ssh中会生成id_rsa id_rsa.pub两个文件上传pub-key到server ssh-copy-id -i ~/.ssh/id_rsa.pub user@host在server上修改配置vim /etc/ssh/sshd_config# 确保下面...原创 2020-04-16 17:52:55 · 6811 阅读 · 0 评论 -
Linux常用命令
1. ls trick$ls -lt #list file by time$ls --sort=size -l#list by size$du -sh *#list files with size in alphabetical order2. ping$ping ccmts-pipeline.cisco.com#get the IP of website3. find...原创 2019-12-12 14:16:37 · 120 阅读 · 0 评论 -
ubuntu开机总需要source /etc/profile的一个解决方案
打开默认目录下的bashrc文档: ~/.bashrc在文件中(最好在底部)添加文字: source /etc/profile重启系统,发现shell中的文本都变成黑色,配置成功。再也不需要开机时手动输入source命令。...原创 2018-08-05 22:21:17 · 3762 阅读 · 0 评论 -
ubuntu中查看mem信息总结
最近在Grafana上监测服务器性能,发现有一台server的可用mem非常低。在debug的过程中将Ubuntu中查看mem信息的主要命令总结在此:free 命令free -m#mem的单位为MB free -h #mem的单位为GBvmstat command vmstat -s #显示更为具体的mem使用信息3. 读取/proc/mem...原创 2019-09-02 19:47:37 · 1646 阅读 · 0 评论