上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: find、grep、sed、awk命令(总结) 大纲 *一、常见系统特殊符号* *(一)基础符号系列* *1)美元符号 $* *2)叹号符号 !* *3)竖线符号 |* *4)井号符号 #* *(二)引号符号系列* *(三)定向符号系列* *(四)路径符号系列* *(五)逻辑符号系列* *二、常见通 阅读全文
posted @ 2024-03-13 23:07 三思博客 阅读(96) 评论(0) 推荐(0) 编辑
摘要: grep 第四天 1 使用grep 取 passwd 显示行数 grep -c '' /etc/passwd [root@master ~]# grep -c '' /etc/passwd 135 2 使用grep 取passwd 显示行号 grep -n '' /etc/passwd [root@ 阅读全文
posted @ 2024-03-12 19:52 三思博客 阅读(6) 评论(0) 推荐(0) 编辑
摘要: sed第三天 利用sed 取出ifconfIg ens33命令中本机的IPv4地址 可以百度扩展 了解即可 也可以用别的命令实现 只要有结果也可以 ifconfig ens33 | sed -n 's/.*inet \([0-9\.]\+\) .*/\1/p' ip a | grep -A2 'en 阅读全文
posted @ 2024-03-12 19:52 三思博客 阅读(7) 评论(0) 推荐(0) 编辑
摘要: find第二天 1.找出/tmp目录下,属主不是root,且文件名不以f开头的文件 find /tmp ! -user root -a ! -name 'f*' 或者 find /tmp ! -user root ! -name 'f*' 这条命令 find /tmp ! -user root ! 阅读全文
posted @ 2024-03-12 19:52 三思博客 阅读(13) 评论(0) 推荐(0) 编辑
摘要: PXEz自动化 在PXE服务器操作: *yum -y install dhcp xinetd tftp tftp-server* *yum -y install system-config-kickstart* *yum -y install syslinux* *[root@localhost k 阅读全文
posted @ 2024-03-11 22:56 三思博客 阅读(5) 评论(0) 推荐(0) 编辑
摘要: yum总纲 yum源搭建 首先本文档讲解两种搭建方式,第一有网络环境和第二种无网络环境。 第一种:有网络环境 首先 进入系统执行:以下命令,获取网络源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/C 阅读全文
posted @ 2024-03-11 22:45 三思博客 阅读(4) 评论(0) 推荐(0) 编辑
摘要: awk第一天 1.用awk 打印整个test.txt (以下操作都是用awk工具实现,针对test.txt) awk '{print}' test.txt [root@master ~]# awk '{print}' test.txt hello world\! usr/root usr/root 阅读全文
posted @ 2024-03-11 22:40 三思博客 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 第十九天--第二十天 1.使用awk 打印 passwd 第二行 awk 'NR==2' /etc/passwd 2.统计/etc/services文件中有井号开头的行 grep -c '^#' /etc/services 或者 awk '/^#{c++} END{print c}' /etc/se 阅读全文
posted @ 2024-03-11 22:39 三思博客 阅读(8) 评论(0) 推荐(0) 编辑
摘要: linux系统必备软件 需要配置好epel源 必须安装的工具 tree vim wget bash-completion bash-completion-extras lrzsz net-tools sysstat iotop iftop htop unzip nc nmap telnet bc p 阅读全文
posted @ 2024-03-10 21:42 三思博客 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 第十八天 取出ifconfIg ens33命令中本机的IPv4地址 可以百度扩展 了解即可 记不住也没事 不常用 ifconfig ens33 | egrep -o 'inet [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/' |egrep -o '[0-9]+\.[0-9]+\.[ 阅读全文
posted @ 2024-03-10 21:19 三思博客 阅读(6) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页