Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。Shell 是指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务。Ken Thompson 的 sh 是第一种 Unix Shell,Windows Explorer 是一个典型的图形界面 Shell。
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_
1、测试数据 [root@PC3 test]# cat c.txt 1 2 3 4 5 6 7 8 9 10 2、提取包含2的行,其后1行,其后2行 [root@PC3 test]# sed -n &
1、测试数据如下: [root@PC3 test]# cat a.txt 1 Beijing 2003 2 Beijing 2004 3 Beijing 2005 4 Beijing 2006 5 B
firewalld拥有命令行界面(CLI)和图形用户界面(GUI) firewalld中有区域的概念,区域就是防火墙配置策略的模板。 firewalld中常用的区域名称及策略规则: 以下实验主要是命令
1、测试数据 [root@PC3 test]# cat b.txt e t 3 d g 2 k 8 p m 9 p 5 7 8 m i o e t d 2、awk加行号 [root@PC3 test]
1、测试数据 [root@PC3 test]# cat a.txt Beijing 2003 Beijing 2004 Beijing 2005 Beijing 2006 Beijing 2005 B
1、 [root@PC3 yum.repos.d]# java -version java version "1.7.0_51" OpenJDK Runtime Environme
1、 [root@centos7pc1 xiaoxiami]# vim /etc/vimrc if v:lang =~ "utf8$" || v:lang =~ "UTF
1、 [root@PC3 sheep]# ls a.ped result.map result.ped tr.map [root@PC3 sheep]# ls -S | xargs -n 1 du -
1、测试数据 [root@PC3 test]# cat b.txt e t 3 d g 2 k 8 p m 9 p 5 7 8 m i o e t d 2、删除包含m的行 [root@PC3 test
1、测试数据 [root@PC3 test]# cat a.txt 34 rtd 78 98 fgg 345 23 fgg 668 45 dfs 23 10 fsd 35 77 jla 35 87 s
1、awk命令 [root@PC3 test]# cat a.txt dfs dsafd d fgasdf safd ge [root@PC3 test]# awk -F "" &
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 [r
1、测试数据 [root@centos7 test2]# ls a.map a.ped b.map b.ped c.ped result.map [root@centos7 test2]# ll -h
1、最大值 [root@centos7 test]# cat a.txt 4 2 8 6 4 9 2 7 5 3 5 7 [root@centos7 test]# awk 'BEGIN{max
1、查看当前网卡 [root@localhost Desktop]# ifconfig eno16777728: flags=4163<UP,BROADCAST,RUNNING,MULTICAS
1、首先查看yum仓库 [root@localhost home]# yum repolist all Loaded plugins: langpacks, product-id, subscript
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
1、创建测试数据 [root@centos7 test2]# touch {1..9}.txt [root@centos7 test2]# ls 1.txt 2.txt 3.txt 4.txt 5.t
1、问题 [root@rhelpc1 home]# lsb_release -a bash: lsb_release: command not found... 2、解决方法 [root@rhelpc
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 te
1 编辑vim /etc/ssh/sshd_config文件 把PermitRootLogin Prohibit-password 添加#注释掉 新添加:PermitRootLogin yes 更改P
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
1、测试数据 [root@centos7 test2]# ll -h total 1.4G -rw-r--r--. 1 root root 41M Apr 15 09:47 a.map -rw-r--
1、创建测试数据 [root@centos7 test2]# touch a.txt b.txt c.txt; mkdir test01 test02 test03 [root@centos7 tes
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
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.t
1、直接安装报错 当前系统为rhel7.0 [root@localhost home]# yum install epel-release Loaded plugins: langpacks, pro
1、查看系统信息 [root@localhost home]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.9
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.