From cf017e33a89ebe7d6534df67cc5a81d9dfb2c810 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 20 May 2024 12:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20240518-Linux.md" | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 "\351\253\230\345\205\260\350\213\261/20240518-Linux.md" 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 0000000..853dd59 --- /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 -- Gitee