diff --git "a/\351\253\230\345\205\260\350\213\261/20240518-Linux.md" "b/\351\253\230\345\205\260\350\213\261/20240518-Linux.md" new file mode 100644 index 0000000000000000000000000000000000000000..853dd5976386dbde4fac105ee2ccdcfd6caecf2c --- /dev/null +++ "b/\351\253\230\345\205\260\350\213\261/20240518-Linux.md" @@ -0,0 +1,31 @@ +### +``` +一些常用的命令: +man ls:列出目录内容 +cd ~:回到家目录 +cd /:进入根目录 +cd .:当前目录 +-a, --all 不隐藏任何以. 开始的项目 +-G, --no-group 以一个长列表的形式,不输出组名 +-l 使用较长格式列出信息 +-p:父目录 +ctrl+l :清屏 +``` +### 作业 +``` +1.进入终端,用普通用户登陆。 +2.普通用户转换为root。 +demo@debian22:su +输入密码 +3.进入家目录 +root@debian22:~# cd ~ +4.建立文件夹 +root@debian22:/home# mkdir 中国/省/市/区/镇/村/姓名 -p +root@debian22:/home# tree +bash: tree: 未找到命令 +root@debian22:/home# apt-get install tree(安装命令) +root@debian22:/home# tree 以树状图列出目录的内容 +5.建立文件 +root@debian22:/home# touch /home/姓名.学号+姓名.txt +6.打包压缩文件夹 +``` \ No newline at end of file