1.远程连接
ssh root@192.168.217.128
root@192.168.217.128's password:
2.
(1)在/opt目录下创建一个临时目录/tmp
[root@localhost ~]# mkdir /opt/tmp
[root@localhost ~]# tree /opt
/opt
└── tmp
(2)在临时目录下创建一个文件,文件名为a.txt
[root@localhost ~]# touch /opt/tmp/a.txt
[root@localhost ~]# tree /opt
/opt
└── tmp
└── a.txt
3.vi/vim练习
(1)[root@localhost ~]# vim /tmp/newfile
2023.3.27 21:04
(2)内容读入
(3) 删#行
(4)开启行号提示功能