第一章 3.Linux基本命令练习

 1.在tmp目录下创建root.txt 文件

[root@localhost ~]# cd /tmp
[root@localhost tmp]# touch root.txt
[root@localhost tmp]# ls

第一章 3.Linux基本命令练习_第1张图片

2.在root.txt 中输入一些内容

[root@localhost tmp]# echo "hello word" > root.txt 
[root@localhost tmp]# cat root.txt 


3.在tmp 中创建nsclass 2304 目录

[root@localhost tmp]# mkdir "nsclass 2304"
[root@localhost tmp]# ls

第一章 3.Linux基本命令练习_第2张图片
4.将root.txt 移动到nsclass 2304 中

[root@localhost tmp]# mv root.txt "nsclass 2304"
[root@localhost tmp]# cd "nsclass 2304"
[root@localhost nsclass 2304]# ls

第一章 3.Linux基本命令练习_第3张图片
5.在nsclass 2304 中创建一个以自己名字命名的txt 文件,输入一些内容

[root@localhost nsclass 2304]# mkdir wj.txt
[root@localhost nsclass 2304]# ls

6.将nsclass 2304 移动到桌面上

[root@localhost tmp]# mv "nsclass 2304" /root/Desktop

第一章 3.Linux基本命令练习_第4张图片
7.删除 nsclass 2304

[root@localhost ~]# cd Desktop/
[root@localhost Desktop]# ls
[root@localhost Desktop]# rm -rf "nsclass 2304"/

第一章 3.Linux基本命令练习_第5张图片

你可能感兴趣的:(服务器,linux,windows)