管道命令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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 14 個 grep 命令的例子
- 14 個 Linux grep 命令的例子Linux
- grep命令使用
- Linux 中 grep 命令的 12 個實踐例子Linux
- Linux grep命令的使用Linux
- 如何使用grep命令的排除功能
- grep 命令系列:使用 grep 命令來搜尋多個單詞
- Linux:管道命令與文字處理三劍客(grep、sed、awk)Linux
- grep命令
- 如何使用 Linux 的 grep 和 fgrep 命令Linux
- Windows 系統下使用grep 命令Windows
- grep命令的知識.
- Linux Grep命令使用的詳細介紹Linux
- grep 命令系列:grep 中的正規表示式
- 【Linux命令】grep命令Linux
- Linux shell grep 或 egrep 或awk過濾兩個或多個關鍵詞Linux
- 採用管道進行通訊的例子
- Linux grep命令有何作用?如何使用?Linux
- Linux命令篇 - grep 命令Linux
- Linux grep 命令Linux
- grep、find命令整理
- git grep命令用法Git
- 【Linux】grep命令Linux
- grep 命令詳解
- [20190329]grep與管道檔案.txt
- linux每日命令(35):grep命令Linux
- Linux命令:grep命令AND、OR、NOT例項Linux
- Linux管道命令是什麼?如何使用?Linux
- linux命令之grepLinux
- LINUX管道命令Linux
- Golang 使用執行命令帶管道符執行的方法Golang
- grep命令的-o和-P選項
- grep 的使用場景
- Linux基礎命令---grepLinux
- shell 中 grep、sed、awk 命令
- linux grep命令詳解Linux
- shell中grep命令詳解
- linux命令: ps,grep,killLinux