随笔分类 -  linux shell

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 77 下一页
摘要:001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 20 10 40 30 60 50 80 70 01 90 21 11 41 31 61 51 81 71 02 91 22 12 42 32 62 52 82 阅读全文
posted @ 2023-07-24 00:04 小鲨鱼2018 阅读(57) 评论(0) 推荐(0)
摘要:linux中 mkpasswd命令用于生成密码。 001、问题bash: mkpasswd: command not found... [root@PC1 test02]# mkpasswd bash: mkpasswd: command not found... 002、解决方法 [root@PC 阅读全文
posted @ 2023-07-23 23:53 小鲨鱼2018 阅读(278) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 0102030405 0607080910 1112131415 [root@PC1 test02]# fold -w 2 a.txt ## 以两个字符为单位进 阅读全文
posted @ 2023-07-23 23:26 小鲨鱼2018 阅读(39) 评论(0) 推荐(0)
摘要:001、-d表示删除 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 a f k jH f k E 3j s 8 8 34 a j F ej [root@PC1 test02]# cat a.txt | tr -d 0 阅读全文
posted @ 2023-07-23 23:13 小鲨鱼2018 阅读(1894) 评论(0) 推荐(0)
摘要:001、列 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 3 6 2 8 2 5 8 4 1 3 8 2 ## 统计每列数据之和 [root@PC1 test02]# awk '{for(i = 1; i <= NF 阅读全文
posted @ 2023-07-23 22:07 小鲨鱼2018 阅读(330) 评论(0) 推荐(0)
摘要:001、问题 linux 终端 ctrl + c无法终止当前程序 002、解决方法 01、ctrl + z: 让程序后台运行 02、找到该进程 03、kill -9 该进程名称或者号码 参考:https://blog.csdn.net/m0_67401382/article/details/1264 阅读全文
posted @ 2023-07-23 12:07 小鲨鱼2018 阅读(2110) 评论(0) 推荐(0)
摘要:001、$RANDOM; $RANDOM用于生成0—32767的随机数 [root@PC1 test05]# echo $RANDOM 21160 [root@PC1 test05]# echo $RANDOM 17006 [root@PC1 test05]# echo $RANDOM 3979 0 阅读全文
posted @ 2023-07-22 15:46 小鲨鱼2018 阅读(764) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test05]# ls result.txt [root@PC1 test05]# cat result.txt ## 测试数据 2 23669 23709 2 23517 23696 3 23515 23708 3 23556 23713 4 23476 23711 阅读全文
posted @ 2023-07-22 10:09 小鲨鱼2018 阅读(24) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test02]# ls a.txt b.txt [root@PC1 test02]# cat a.txt ## 测试数据 1 2 3 4 5 6 [root@PC1 test02]# cat b.txt ## 测试数据 11 12 13 14 15 16 [root@P 阅读全文
posted @ 2023-07-20 10:49 小鲨鱼2018 阅读(64) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test02]# ls [root@PC1 test02]# seq 10 1 2 3 4 5 6 7 8 9 10 [root@PC1 test02]# seq 10 | awk '{getline; print $0}' ## getline把两行当作一行处理,而且 阅读全文
posted @ 2023-07-20 10:46 小鲨鱼2018 阅读(151) 评论(0) 推荐(0)
摘要:001、 continue [root@PC1 test01]# ls data [root@PC1 test01]# cat data ## 测试数据 1000 naughty 500 cc 400 zoer 100 [root@PC1 test01]# awk '{if(NR == 2) {ne 阅读全文
posted @ 2023-07-19 23:31 小鲨鱼2018 阅读(84) 评论(0) 推荐(0)
摘要:001、检测8787端口 [root@PC1 test02]# firewall-cmd --query-port=8787/tcp ## 检测8787端口 no 002、开启8787端口 [root@PC1 test02]# firewall-cmd --permanent --zone=publ 阅读全文
posted @ 2023-07-19 16:10 小鲨鱼2018 阅读(95) 评论(0) 推荐(0)
摘要:001、改变所有者 [root@PC1 liujiaxin01]# ls Anaconda3-2023.03-1-Linux-x86_64.sh [root@PC1 liujiaxin01]# ll total 881264 -rw-r--r--. 1 root root 902411137 Jul 阅读全文
posted @ 2023-07-19 10:14 小鲨鱼2018 阅读(189) 评论(0) 推荐(0)
摘要:001、ifconfig [root@PC1 test03]# ifconfig | head ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.254.130 netmask 255.255.255.0 阅读全文
posted @ 2023-07-18 22:22 小鲨鱼2018 阅读(68) 评论(0) 推荐(0)
摘要:001、系统信息 [root@PC1 software]# cat /etc/system-release CentOS Linux release 7.6.1810 (Core) 002、当前gcc编译器版本 [root@PC1 software]# gcc --version gcc (GCC) 阅读全文
posted @ 2023-07-17 23:08 小鲨鱼2018 阅读(2514) 评论(0) 推荐(0)
摘要:001、问题configure: error: GMP is missing or unusable 002、解决方法: [root@PC1 gdb-13.2]# yum -y install gmp* 003、验证; [root@PC1 gdb-13.2]# make 。 阅读全文
posted @ 2023-07-17 22:35 小鲨鱼2018 阅读(1023) 评论(0) 推荐(0)
摘要:001、问题:configure: WARNING: expat is missing or unusable; some features may be unavailable. 002、解决方法 [root@PC1 gdb-13.2]# yum install expat-devel 003、验 阅读全文
posted @ 2023-07-17 22:07 小鲨鱼2018 阅读(445) 评论(0) 推荐(0)
摘要:001、查看软链接 [root@PC1 software]# ls -l /lib64/libc.so.6 lrwxrwxrwx. 1 root root 12 Jul 17 17:22 /lib64/libc.so.6 -> libc-2.17.so 002、执行 /lib64/libc.so.6 阅读全文
posted @ 2023-07-17 18:11 小鲨鱼2018 阅读(599) 评论(0) 推荐(0)
摘要:001、问题:checking whether to use .ctors/.dtors header and trailer... configure: error: missing __attribute__ ((constructor)) support?? [root@PC1 build]# 阅读全文
posted @ 2023-07-17 17:07 小鲨鱼2018 阅读(248) 评论(0) 推荐(0)
摘要:001、 以glibc-2.31为例 [root@PC1 glibc-2.31]# pwd /home/software/glibc-2.31 [root@PC1 glibc-2.31]# cat INSTALL | grep -E "newer|later" | grep "*" ## 查看安装依 阅读全文
posted @ 2023-07-17 15:41 小鲨鱼2018 阅读(564) 评论(0) 推荐(0)

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 77 下一页