linux管道grep命令,管道命令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 ~]#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值