From bec0ace78e8bf274be4e0e815791fd852d0a2b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BE=B7=E5=BA=B7?= <1669327472@qq.com> Date: Sun, 19 May 2024 18:23:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=9D=E8=AF=86linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\235\350\257\206linux.md" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "\345\274\240\345\276\267\345\272\267/\345\210\235\350\257\206linux.md" diff --git "a/\345\274\240\345\276\267\345\272\267/\345\210\235\350\257\206linux.md" "b/\345\274\240\345\276\267\345\272\267/\345\210\235\350\257\206linux.md" new file mode 100644 index 0000000..fcf1262 --- /dev/null +++ "b/\345\274\240\345\276\267\345\272\267/\345\210\235\350\257\206linux.md" @@ -0,0 +1,33 @@ +# Linux + +Linux是一套免费使用和自由传播的类Unix操作系统,是一个多用户、多任务、支持多线程和多CPU的操作系统 + +有centos,debian,redhat等 + +### 命令: + +查看IP:IP address show + +更新软件库:apt-get update + +apt-get install net-tools + +安装vim编辑器,默认的是vi编辑器 apt-get install vim : vi 文件名,变成vim 文件名 + +安装ssh:apt-get install ssh + +vim /etc/ssh/sshd_cofnig :修改/etc/ssh/sshd.config 文件 + +开22端口:prot 22 + +允许root登录为yes:PermitRootLogin yes + +启用密码验证功能 :PasswordAuthentication yes + +不允许空密码登录:PermitEmptyPassword no + +// 用sudo 命令,但这个默认是没安装。自己安装 apt-get isntall sudo + +su root 更换给root模式 + +sudo vim /etc/sudoers \ No newline at end of file -- Gitee From f0ce438020220ca7676e0f174955a38beb528378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BE=B7=E5=BA=B7?= <1669327472@qq.com> Date: Tue, 21 May 2024 11:50:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\2321.md" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "\345\274\240\345\276\267\345\272\267/\344\275\234\344\270\2321.md" diff --git "a/\345\274\240\345\276\267\345\272\267/\344\275\234\344\270\2321.md" "b/\345\274\240\345\276\267\345\272\267/\344\275\234\344\270\2321.md" new file mode 100644 index 0000000..82d3786 --- /dev/null +++ "b/\345\274\240\345\276\267\345\272\267/\344\275\234\344\270\2321.md" @@ -0,0 +1,33 @@ +1.新建用户密码 + +``` +useradd sc 用户名 +passwd sc 密码 +``` + +2.建立文件夹 + +``` +mkdir -p /home/中国/福建/龙岩/闽大/望云楼 +``` + +3.新建文件 + +``` +nano 2244310313.txt +``` + +4.编辑文件 + +``` +nano 2244310313.txt +“四百字日记” +ctrl+x 保存 +``` + +5.打包文件夹 + +``` +tar -cf 中国.tar 中国 打包“中国”的文件夹为“中国.tar” +``` + -- Gitee