随笔分类 -  linux shell

上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 78 下一页
摘要:1、 [root@centos7 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 阅读全文
posted @ 2021-04-15 17:28 小鲨鱼2018 阅读(1303) 评论(0) 推荐(0)
摘要:1、测试数据 [root@centos7 test]# cat a.txt e d g e s d g w a x d g n d i d 2、 [root@centos7 test]# cat a.txt e d g e s d g w a x d g n d i d [root@centos7 阅读全文
posted @ 2021-04-15 14:36 小鲨鱼2018 阅读(296) 评论(0) 推荐(0)
摘要:1、测试数据 [root@centos7 test2]# cat a.txt e d g e d w i s d g w e i d a x d g i w e n d i d o e w 2、提取1-3列,1-5列 [root@centos7 test2]# cat a.txt e d g e d 阅读全文
posted @ 2021-04-15 11:57 小鲨鱼2018 阅读(2988) 评论(0) 推荐(0)
摘要:1、测试数据 [root@centos7 test2]# cat a.txt e d g e s d g w a x d g n d i d 2、将第三列替换为xxx [root@centos7 test2]# cat a.txt e d g e s d g w a x d g n d i d [r 阅读全文
posted @ 2021-04-15 11:03 小鲨鱼2018 阅读(4893) 评论(0) 推荐(0)
摘要:1、测试数据 [root@centos7 test2]# cat a.txt e d g e s d g w a x d g n d i d [root@centos7 test2]# cat a.txt | sed -n l e d g e$ s d g w$ a x d g$ n d i d$ 阅读全文
posted @ 2021-04-15 10:57 小鲨鱼2018 阅读(2243) 评论(0) 推荐(0)
摘要:1、测试数据 [root@centos7 test2]# ll -h total 1.4G -rw-r--r--. 1 root root 41M Apr 15 09:47 a.map -rw-r--r--. 1 root root 204M Apr 15 09:47 a.ped -rw-r--r- 阅读全文
posted @ 2021-04-15 10:03 小鲨鱼2018 阅读(1205) 评论(0) 推荐(1)
摘要:1、测试数据 [root@centos7 test2]# ls a.map a.ped b.map b.ped c.ped result.map [root@centos7 test2]# ll -h total 1.4G -rw-r--r--. 1 root root 41M Apr 15 09: 阅读全文
posted @ 2021-04-15 09:57 小鲨鱼2018 阅读(1434) 评论(0) 推荐(1)
摘要:1、创建测试数据 [root@centos7 test2]# cat > a.txt i s g z e q d k i p m h y u t e ^C [root@centos7 test2]# ls a.txt [root@centos7 test2]# cat a.txt i s g z e 阅读全文
posted @ 2021-04-15 09:44 小鲨鱼2018 阅读(904) 评论(0) 推荐(0)
摘要:1、创建测试数据 [root@centos7 test2]# touch a.txt b.txt c.txt; mkdir test01 test02 test03 [root@centos7 test2]# ls a.txt b.txt c.txt test01 test02 test03 2、删 阅读全文
posted @ 2021-04-15 09:23 小鲨鱼2018 阅读(1012) 评论(0) 推荐(0)
摘要:1、创建测试数据 [root@centos7 test2]# touch {1..9}.txt [root@centos7 test2]# ls 1.txt 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8.txt 9.txt 2、删除3.txt、7.txt外的其他文件 [ 阅读全文
posted @ 2021-04-15 09:05 小鲨鱼2018 阅读(350) 评论(0) 推荐(0)
摘要:1、问题 [root@rhelpc1 home]# lsb_release -a bash: lsb_release: command not found... 2、解决方法 [root@rhelpc1 home]# yum install redhat-lsb -y Loaded plugins: 阅读全文
posted @ 2021-04-14 15:33 小鲨鱼2018 阅读(527) 评论(0) 推荐(0)
摘要:1、首先查看yum仓库 [root@localhost home]# yum repolist all Loaded plugins: langpacks, product-id, subscription-manager This system is not registered to Red H 阅读全文
posted @ 2021-04-14 13:06 小鲨鱼2018 阅读(509) 评论(0) 推荐(0)
摘要:1、查看当前网卡 [root@localhost Desktop]# ifconfig eno16777728: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 00:0c:29:af:60:a0 txqueuelen 1000 ( 阅读全文
posted @ 2021-04-14 12:57 小鲨鱼2018 阅读(707) 评论(0) 推荐(0)
摘要:1 编辑vim /etc/ssh/sshd_config文件 把PermitRootLogin Prohibit-password 添加#注释掉 新添加:PermitRootLogin yes 更改PermitEmptyPasswords为 no 2 然后重启ssh服务 service ssh re 阅读全文
posted @ 2021-04-12 10:59 小鲨鱼2018 阅读(433) 评论(0) 推荐(0)
摘要:1、查看当前系统: [root@rhel8 home]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa) [root@rhel8 home]# hostnamectl Static hostname: rhel 阅读全文
posted @ 2021-02-01 04:47 小鲨鱼2018 阅读(1073) 评论(0) 推荐(0)
摘要:1、问题 [root@localhost home]# yum install httpd Loaded plugins: langpacks, product-id, subscription-manager This system is not registered to Red Hat Sub 阅读全文
posted @ 2021-01-31 13:24 小鲨鱼2018 阅读(3215) 评论(0) 推荐(0)
摘要:1、直接安装报错 当前系统为rhel7.0 [root@localhost home]# yum install epel-release Loaded plugins: langpacks, product-id, subscription-manager This system is not r 阅读全文
posted @ 2021-01-31 13:13 小鲨鱼2018 阅读(1531) 评论(0) 推荐(0)
摘要:1、查看系统信息 [root@localhost home]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.9 (Maipo) [root@localhost home]# lsb_release -a LSB 阅读全文
posted @ 2021-01-31 00:19 小鲨鱼2018 阅读(3335) 评论(0) 推荐(0)
摘要:1、查看系统版本 [root@centos7PC1 home]# 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. 阅读全文
posted @ 2021-01-30 16:16 小鲨鱼2018 阅读(822) 评论(0) 推荐(0)
摘要:1、 [root@PC3 test]# uname -a Linux PC3 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux 2、 [root@PC3 test]# cat 阅读全文
posted @ 2021-01-30 14:58 小鲨鱼2018 阅读(452) 评论(0) 推荐(0)

上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 78 下一页