摘要: 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt 33 ac kk dd adebc kk ad abc uy dd gg 88 [root@PC1 test]# grep -E "ab?c" a.txt ## "ab?c" 等价与 阅读全文
posted @ 2023-05-07 20:52 小鲨鱼2018 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls dir1 dir2 dir3 [root@PC1 test]# du -h ## 查看所有子目录占用磁盘的大小 100M ./dir1 300M ./dir2 30M ./dir3 430M . 阅读全文
posted @ 2023-05-07 20:30 小鲨鱼2018 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 001、 root@ubuntu01:~# cat /etc/issue Ubuntu 22.04.2 LTS \n \l 002、 root@ubuntu01:~# lsb_release -a No LSB modules are available. Distributor ID: Ubunt 阅读全文
posted @ 2023-05-07 17:16 小鲨鱼2018 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 001、系统 [root@PC1 ~]# hostnamectl Static hostname: PC1 Icon name: computer-vm Chassis: vm 🖴 Machine ID: 0701dfe1316f4cd6be6f958130674e6f Boot ID: 541d 阅读全文
posted @ 2023-05-07 15:50 小鲨鱼2018 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: 001、创建前 [root@PC1 hiblup]# ls hiblup hiblup_1.3.1_linux_x86_64_20230220.tar.gz hiblup.log [root@PC1 hiblup]# hiblup ## 测试hiblup命令 bash: hiblup: comman 阅读全文
posted @ 2023-05-07 11:27 小鲨鱼2018 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 001、虚拟机开启报错 002、解决方法 a、 b、 c、 d、执行如下命令:bcdedit /set hypervisorlaunchtype off e、重启计算机 阅读全文
posted @ 2023-05-07 09:09 小鲨鱼2018 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: source 命令会在当前 shell 中执行,而 bash 会创建一个新的 shell 会话。 001、 (base) root@DESKTOP-A31BQ38:/home/test2# ls test.sh (base) root@DESKTOP-A31BQ38:/home/test2# cat 阅读全文
posted @ 2023-05-07 00:17 小鲨鱼2018 阅读(141) 评论(0) 推荐(0) 编辑