ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 管道命令grep , egrep的使用例子 -v

管道命令grep , egrep的使用例子 -v

原创 Linux操作系统 作者:tolywang 时间:2011-02-18 15:51:10 0 删除 编辑

今天知道了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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    13470477