[linux]记录一些Linux常用的操作

0x01 修改hostname

[root@VM_111_206_centos ~]# hostname
[root@VM_111_206_centos ~]# vim /etc/sysconfig/network
[root@VM_111_206_centos ~]# vim /etc/hosts
[root@VM_111_206_centos ~]# reboot 

0x02 修改vim默认缩进

root@myVPS ~]# vim /etc/vimrc

添加如下代码:

set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4

保存退出即可。

 

posted @ 2017-03-24 10:18  筱筱汀  阅读(146)  评论(0编辑  收藏  举报