This is a mirror of official site: http://jasper-net.blogspot.com/

10 Linux commands you’ve never used

| Tuesday, July 5, 2011
It takes years maybe decades to master the commands available to you at the Linux shell prompt. Here are 10 that
you will have never heard of or used. They are in no particular order. My favorite is mkfifo.

    pgrep, instead of:

    # ps -ef | egrep '^root ' | awk '{print $2}'
    1
    2
    3
    4
    5
    20
    21
    38
    39
    ...
    You can do this:
    # pgrep -u root
    1
    2
    3
    4
    5
    20
    21
    38
    39
    ...
    pstree, list the processes in a tree format. This can be VERY useful when working with WebSphere or other heavy duty applications.

    # pstree
    init-+-acpid
    |-atd
    |-crond
    |-cups-config-dae
    |-cupsd
    |-dbus-daemon-1
    |-dhclient
    |-events/0-+-aio/0
    | |-kacpid
    | |-kauditd
    | |-kblockd/0
    | |-khelper
    | |-kmirrord
    | `-2*[pdflush]

Read more: BASH Cures Cancer
QR: 10-linux-commands-youve-never-used.html

Posted via email from Jasper-net

0 comments: