linux入门作业1

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开启行号提示功能

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值