随笔分类 - linux shell
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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把两行当作一行处理,而且
阅读全文
摘要: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
阅读全文
摘要:001、检测8787端口 [root@PC1 test02]# firewall-cmd --query-port=8787/tcp ## 检测8787端口 no 002、开启8787端口 [root@PC1 test02]# firewall-cmd --permanent --zone=publ
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:001、系统信息 [root@PC1 software]# cat /etc/system-release CentOS Linux release 7.6.1810 (Core) 002、当前gcc编译器版本 [root@PC1 software]# gcc --version gcc (GCC)
阅读全文
摘要: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 。
阅读全文
摘要:001、问题:configure: WARNING: expat is missing or unusable; some features may be unavailable. 002、解决方法 [root@PC1 gdb-13.2]# yum install expat-devel 003、验
阅读全文
摘要: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
阅读全文
摘要:001、问题:checking whether to use .ctors/.dtors header and trailer... configure: error: missing __attribute__ ((constructor)) support?? [root@PC1 build]#
阅读全文
摘要: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 "*" ## 查看安装依
阅读全文
摘要:001、系统 [root@PC1 software]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noa
阅读全文
摘要:001、gcc 编译器在编译安装的时候报错:collect2: error: ld terminated with signal 9 [Killed] [root@PC1 build]# make -j4 ## 编译安装c编译器gcc-13.1.0,报错如下: 002、报错原因及解决方法 swap内
阅读全文
摘要:001、 ll 只能显示日期 [root@PC1 test01]# ls a.txt [root@PC1 test01]# ll ## ll命令显示日期 total 4 -rw-r--r--. 1 root root 21 Jul 17 16:51 a.txt 002、stat显示完整的日期 [ro
阅读全文
摘要:001、官网下载: https://ftp.gnu.org/gnu/make/ 002、查看当前的make版本及系统版本 a、make版本 [root@PC1 ~]# make --version GNU Make 3.82 Built for x86_64-redhat-linux-gnu Cop
阅读全文
摘要:001、 [root@PC1 test01]# ls [root@PC1 test01]# seq 5 > a.txt; seq 3 > b.txt ## 生成测试数据 [root@PC1 test01]# ls a.txt b.txt [root@PC1 test01]# md5sum b.txt
阅读全文
摘要:001、 [root@PC1 test01]# ls ## 测试文件 a.txt.gz [root@PC1 test01]# gzip -dc a.txt.gz > a.txt ## 解压,同时保留源文件 [root@PC1 test01]# ls a.txt a.txt.gz [root@PC1
阅读全文
摘要:001、幂函数(即e的多少次方) [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 9 1 2 10 [root@PC1 test02]# awk '{print exp($1)}' a.txt ## 幂函数 8103.
阅读全文

浙公网安备 33010602011771号