管道命令grep , egrep的使用例子 -v
今天知道了grep 需要顯示
[root@DT2MISPDB ~]# tune2fs -l /dev/sda1
tune2fs 1.39 (29-May-2006)
Filesystem volume name: /boot1
Last mounted on:
Filesystem UUID: 98363e6b-243c-4b39-962f-c524cbf0e9df
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior.: Continue
Filesystem OS type: Linux
Inode count: 263232
Block count: 263056
Reserved block count: 13152
Free blocks: 244442
Free inodes: 263196
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 64
Blocks per group: 32760
Fragments per group: 32760
Inodes per group: 29248
Inode blocks per group: 914
Filesystem created: Wed Dec 1 02:17:00 2010
Last mount time: Tue Jan 25 13:54:57 2011
Last write time: Tue Jan 25 13:54:57 2011
Mount count: 10
Maximum mount count: -1
Last checked: Wed Dec 1 02:17:00 2010
Check interval: 0 (
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 56dfd490-e750-4b27-8092-8a62766cc417
Journal backup: inode blocks
[root@DT2MISPDB ~]# tune2fs -l /dev/sda1 | grep Mount
Mount count: 10
[root@DT2MISPDB ~]# tune2fs -l /dev/sda1 |egrep "Mount|Check"
Mount count: 10
Check interval: 0 (
[root@DT2MISPDB ~]# tune2fs -l /dev/sda1 |egrep "Mount|Check" -v
tune2fs 1.39 (29-May-2006)
Filesystem volume name: /boot1
Last mounted on:
Filesystem UUID: 98363e6b-243c-4b39-962f-c524cbf0e9df
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior.: Continue
Filesystem OS type: Linux
Inode count: 263232
Block count: 263056
Reserved block count: 13152
Free blocks: 244442
Free inodes: 263196
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 64
Blocks per group: 32760
Fragments per group: 32760
Inodes per group: 29248
Inode blocks per group: 914
Filesystem created: Wed Dec 1 02:17:00 2010
Last mount time: Tue Jan 25 13:54:57 2011
Last write time: Tue Jan 25 13:54:57 2011
Maximum mount count: -1
Last checked: Wed Dec 1 02:17:00 2010
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 56dfd490-e750-4b27-8092-8a62766cc417
Journal backup: inode blocks
[root@DT2MISPDB ~]#
[root@DT2MISPDB ~]# ps -ef | grep grep -v | grep ora_
oracle 4063 1 0 15:36 ? 00:00:00 ora_w000_mis
oracle 4295 1 0 15:52 ? 00:00:00 ora_j000_mis
oracle 4297 1 0 15:52 ? 00:00:00 ora_j001_mis
oracle 28954 1 0 Feb14 ? 00:00:00 ora_pmon_mis
oracle 28956 1 0 Feb14 ? 00:00:00 ora_vktm_mis
oracle 28960 1 0 Feb14 ? 00:00:00 ora_gen0_mis
oracle 28962 1 0 Feb14 ? 00:00:00 ora_diag_mis
oracle 28964 1 0 Feb14 ? 00:00:00 ora_dbrm_mis
oracle 28966 1 0 Feb14 ? 00:00:00 ora_psp0_mis
oracle 28968 1 0 Feb14 ? 00:00:55 ora_dia0_mis
oracle 28970 1 0 Feb14 ? 00:00:00 ora_mman_mis
oracle 28972 1 0 Feb14 ? 00:00:00 ora_dbw0_mis
oracle 28974 1 0 Feb14 ? 00:00:01 ora_lgwr_mis
oracle 28976 1 0 Feb14 ? 00:00:00 ora_ckpt_mis
oracle 28978 1 0 Feb14 ? 00:00:05 ora_smon_mis
oracle 28980 1 0 Feb14 ? 00:00:00 ora_reco_mis
oracle 28982 1 0 Feb14 ? 00:00:00 ora_mmon_mis
oracle 28984 1 0 Feb14 ? 00:00:02 ora_mmnl_mis
oracle 28986 1 0 Feb14 ? 00:00:00 ora_d000_mis
oracle 28988 1 0 Feb14 ? 00:00:00 ora_s000_mis
oracle 29034 1 0 Feb14 ? 00:00:00 ora_arc0_mis
oracle 29036 1 0 Feb14 ? 00:00:00 ora_arc1_mis
oracle 29038 1 0 Feb14 ? 00:00:00 ora_arc2_mis
oracle 29040 1 0 Feb14 ? 00:00:00 ora_arc3_mis
oracle 29042 1 0 Feb14 ? 00:00:00 ora_qmnc_mis
oracle 29061 1 0 Feb14 ? 00:00:03 ora_cjq0_mis
oracle 29065 1 0 Feb14 ? 00:00:00 ora_q000_mis
oracle 29067 1 0 Feb14 ? 00:00:00 ora_q001_mis
oracle 29165 1 0 Feb14 ? 00:00:00 ora_smco_mis
[root@DT2MISPDB ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-687513/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux系統中的管道命令、grep命令、sed命令和awk命令Linux
- Linux grep命令的使用Linux
- 如何使用grep命令的排除功能
- Linux:管道命令與文字處理三劍客(grep、sed、awk)Linux
- grep 命令系列:使用 grep 命令來搜尋多個單詞
- 如何使用 Linux 的 grep 和 fgrep 命令Linux
- [20190329]grep與管道檔案.txt
- linux9-grep&wc&管道符Linux
- Windows 系統下使用grep 命令Windows
- 【Linux命令】grep命令Linux
- Linux grep 命令Linux
- Linux grep命令有何作用?如何使用?Linux
- Linux命令篇 - grep 命令Linux
- 採用管道進行通訊的例子
- linux每日命令(35):grep命令Linux
- Linux命令:grep命令AND、OR、NOT例項Linux
- git grep命令用法Git
- linux命令之grepLinux
- grep、find命令整理
- 【SHELL】grep 命令用法
- Linux管道命令是什麼?如何使用?Linux
- Linux基礎命令---grepLinux
- 5分鐘學會使用Linux的 grep、find、ls、wc 命令Linux
- Golang 使用執行命令帶管道符執行的方法Golang
- Linux grep命令如何使用?語法格式是什麼?Linux
- 掌握Linux中的12個grep命令Linux
- ps命令的10個例子
- grep 的使用場景
- Linux grep命令詳細教程Linux
- 『學了就忘』Linux基礎命令 — 33、管道符的使用Linux
- 使用grep命令,玩轉程式碼審計尋找Sink
- 在Linux中,如何使用grep命令查詢檔案中的內容?Linux
- 使用javap -v 命令遇到的問題Java
- Linux 中grep命令中 -P選項的作用Linux
- Linux 命令 管道 緩衝區Linux
- Go 系統命令管道操作Go
- 一行命令搭建內部的管道
- Linux常用命令記錄-grepLinux
- Linux基礎命令—顯示文字grepLinux