1、
mkdir -pv /yasuo/dir1
cd /yasuo 后touch houstname hostname02 passwd ssh_config sshd
cp /yasuo/* /yasuo/dir1/
2、查看系统合法shell
cat /etc/shells
3、
cat /etc/redhat-release
或cat /etc/os-release
4、
uname -v
5、
hostname ahahaa
6、
mkdir /mulu
ln -s /yasuo/ssh_config /mulu/ssh_config.link
7、
mkdir /mulu1
mv /mulu/ssh_config.link /mulu1/ssh_config.nl
8、
find / -type b
9、
mkdir /root/etc
cp /etc/passwd /etc/ssh/ssh_config /root/etc/
10、
cp /var/log/messages /root
11、
mkdir /dir1
cp /etc/passwd /dir1/
12、
mv /dir1/passwd /dir1/passwd.back
13、
ls /root /aaaaa >/root/ok.file 2>/root/erro.file
14、
ls /root /aaaaa &>/dev/null
15、
mkdir /haha
16、
ouch /xixi
17、
cat > /xixi <<end
wo shi xixi ^=^
end
18、
ln -s /xixi /xixi.link
19、
mv /xixi.link /xixi.link2.0
20、
vim /tmp/newfile
按a进入插入模式编辑内容
按esc退出插入模式返回命令行模式
按:进入末行模式,输入wq保存退出
21、
按o进入插入模式光标到下一行
按esc退出插入模式返回命令行模式
按:进入末行模式,输入r /链接插入链接内容
22、
按/# 查找关键字
按esc返回命令行模式
移动光标到目标行按dd删除
23、
按:进入末行模式,输入set nu开启行号提示功能