当前位置:网站首页>Regular expression job
Regular expression job
2022-07-26 08:13:00 【Two in three】
1、 Show /etc/rc.d/rc.sysinit File with size insensitive h Beginning line ;
egrep "^[hH]" /etc/rc.d/rc.sysinit
2、 Show /etc/passwd China and Israel sh The line at the end ;
egrep "sh$" /etc/passwd
3、 Show /etc/fstab China and Israel # start , One or more whitespace characters followed by , And then it's followed by any non whitespace line ;
egrep "^#[[:space:]]*[^[:space:]]\{1,\}" /etc/fstab
4、 lookup /etc/rc.d/rc.local Contained in the “ With to Start with to ending ” Word serial of ;
egrep -w "^to[a-Z]*to$" /etc/rc.d/rc.local
5、 lookup /etc/inittab contains “ With s start , And d Ending words ” Pattern line ;
egrep -w "^s[a-Z]*d$" /etc/inittab
6、 lookup ifconfig In the command result 1-255 Integer between ;
ifconfig | egrep -w "[1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]"
7、 Show /var/log/secure The file contains “Failed” or “FAILED” The line of ;
egrep -w "Failed|FAILED" /var/log/secure
8、 stay /etc/passwd Take out the default shell by bash The line of ;
egrep -w "bash" /etc/shells
9、 List... In long format /etc/ Directory to ns start 、.conf File information at the end ;
10、 Highlight passwd Colon in file , And the characters on both sides
egrep "[a-Z][1-9]*:[1-9][a-Z]*" /etc/passwd
边栏推荐
- The difference between equals() and = =
- Copy pcap file with producer consumer model
- BGP的基本配置
- mysql函数汇总之日期和时间函数
- 2022/7/9 exam summary
- 2022/7/12 exam summary
- Burp suite Chapter 3 how to use burp suite agent
- The idea of stack simulating queue
- Recurrence of strtus2 historical vulnerability
- Exam summary on June 30, 2022
猜你喜欢

利用js实现统计字符串数组中各字符串出现的次数,并将其格式化为对象数组。

AQS implementation principle

If the thread crashes, why doesn't it cause the JVM to crash? What about the main thread?

Pycharm code specification tool flake8

Master slave database deployment

全网最全:Mysql六种约束详解
![[fastjson1.2.24 deserialization vulnerability principle code analysis]](/img/14/8f6a75fe5f06c19eeff9c7204979c3.png)
[fastjson1.2.24 deserialization vulnerability principle code analysis]

Burp suite Chapter 3 how to use burp suite agent

JSP action -- usebean action

Spotty music data client_ ID account
随机推荐
这是一张图片
Idea settings set shortcut keys to convert English letters to case in strings
R language foundation
咱就是来聊聊并发编程的三大核心问题。
Burp suite Chapter 3 how to use burp suite agent
Summary of distributed related interview questions
C # get the information of the selected file
Exam summary on June 27, 2022
小蜜蜂吉他谱 高八度和低八度
一点一点理解微服务
es6中函数默认参数、箭头函数、剩余参数-讲解
How WPS sets page headers page by page
Reading and writing properties file
Pycharm code specification tool flake8
An empirical study on urban unemployment in Guangxi (Macroeconomics)
How to determine the authenticity of the website you visit -- certificate system
Excel file reading and writing (creation and parsing)
Rewriting and overloading
Exam summary on June 30, 2022
Matlab drawing black spots on two / three-dimensional drawings