Linux命令实例1

80 阅读1分钟

1.在临时目录test下创建五个文件,文件名分别为passwd,group,bashrc,profile, sshd_config;

image.png

2.在/test创建/etc/motd的软链接,文件名为motd.soft;创建/etc/motd的硬链接为motd.hard

image.png

3.重定向:

(1)将系统内核版本信息,发行版本信息,写入到/test/motd.soft文件中

image.png

(2)将当前主机主机名,当前用户使用的shell信息追加到/test/motd.hard文件中

image.png

image.png

4.tee命令练习: 将当前时间添加至/test目录下的group,bashrc文件中

image.png