0% found this document useful (0 votes)
28 views4 pages

Ps Options & Others

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

Ps Options & Others

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

[student1@localhost ~]$ ps

PID TTY TIME CMD


3746 pts/1 00:00:00 bash
3776 pts/1 00:00:00 ps
[student1@localhost ~]$ echo $$
3746
[student1@localhost ~]$ ps -f
UID PID PPID C STIME TTY TIME CMD
student1 3746 3740 0 19:36 pts/1 00:00:00 bash
student1 3780 3746 0 19:38 pts/1 00:00:00 ps -f
[student1@localhost ~]$ ps -e
PID TTY TIME CMD
1? 00:00:00 init
2? 00:00:00 migration/0
3? 00:00:00 ksoftirqd/0
4? 00:00:00 watchdog/0
5? 00:00:00 migration/1
6? 00:00:00 ksoftirqd/1
7? 00:00:00 watchdog/1
8? 00:00:00 events/0
9? 00:00:00 events/1
10 ? 00:00:00 khelper
11 ? 00:00:00 kthread
15 ? 00:00:00 kblockd/0
16 ? 00:00:00 kblockd/1
17 ? 00:00:00 kacpid
124 ? 00:00:00 cqueue/0
125 ? 00:00:00 cqueue/1
128 ? 00:00:00 khubd
130 ? 00:00:00 kseriod
196 ? 00:00:00 pdflush
197 ? 00:00:00 pdflush
198 ? 00:00:00 kswapd0
199 ? 00:00:00 aio/0
200 ? 00:00:00 aio/1
357 ? 00:00:00 kpsmoused
388 ? 00:00:00 ata/0
389 ? 00:00:00 ata/1
390 ? 00:00:00 ata_aux
394 ? 00:00:00 scsi_eh_0
395 ? 00:00:00 scsi_eh_1
396 ? 00:00:00 scsi_eh_2
397 ? 00:00:00 scsi_eh_3
404 ? 00:00:00 kstriped
417 ? 00:00:00 kjournald
450 ? 00:00:00 kauditd
484 ? 00:00:00 udevd
1817 ? 00:00:00 kmpathd/0
1818 ? 00:00:00 kmpathd/1
1819 ? 00:00:00 kmpath_handlerd
1848 ? 00:00:00 kjournald
2053 ? 00:00:00 kondemand/0
2054 ? 00:00:00 kondemand/1
2086 ? 00:00:00 ib_addr
2096 ? 00:00:00 ib_mcast
2097 ? 00:00:00 ib_inform
2098 ? 00:00:00 local_sa
2102 ? 00:00:00 iw_cm_wq
2106 ? 00:00:00 ib_cm/0
2107 ? 00:00:00 ib_cm/1
2111 ? 00:00:00 rdma_cm
2120 ? 00:00:00 iscsid
2121 ? 00:00:00 iscsid
2172 ? 00:00:00 mcstransd
2392 ? 00:00:00 dhclient
2451 ? 00:00:00 auditd
2453 ? 00:00:00 audispd
2471 ? 00:00:00 restorecond
2482 ? 00:00:00 syslogd
2485 ? 00:00:00 klogd
2522 ? 00:00:00 portmap
2535 ? 00:00:00 setroubleshootd
2560 ? 00:00:00 rpc.statd
2594 ? 00:00:00 rpciod/0
2595 ? 00:00:00 rpciod/1
2602 ? 00:00:00 rpc.idmapd
2621 ? 00:00:00 dbus-daemon
2633 ? 00:00:00 hcid
2637 ? 00:00:00 sdpd
2663 ? 00:00:00 krfcommd
2704 ? 00:00:00 pcscd
2725 ? 00:00:00 hidd
2745 ? 00:00:00 automount
2765 ? 00:00:00 acpid
2979 ? 00:00:00 _plutorun
2980 ? 00:00:00 _plutorun
2981 ? 00:00:00 logger
2982 ? 00:00:00 pluto
2983 ? 00:00:00 _plutoload
3003 ? 00:00:00 hpiod
3010 ? 00:00:00 pluto
3034 ? 00:00:00 python
3049 ? 00:00:00 sshd
3060 ? 00:00:00 cupsd
3065 ? 00:00:00 _pluto_adns
3077 ? 00:00:00 xinetd
3116 ? 00:00:00 uuidd
3136 ? 00:00:00 sendmail
3145 ? 00:00:00 sendmail
3157 ? 00:00:00 gpm
3168 ? 00:00:00 crond
3197 ? 00:00:00 xfs
3208 ? 00:00:00 anacron
3218 ? 00:00:00 atd
3254 ? 00:00:00 avahi-daemon
3255 ? 00:00:00 avahi-daemon
3266 ? 00:00:01 hald
3267 ? 00:00:00 hald-runner
3274 ? 00:00:00 hald-addon-acpi
3276 ? 00:00:00 hald-addon-keyb
3288 ? 00:00:00 hald-addon-stor
3363 ? 00:00:00 smartd
3368 tty1 00:00:00 mingetty
3369 tty2 00:00:00 mingetty
3370 tty3 00:00:00 mingetty
3371 tty4 00:00:00 mingetty
3372 tty5 00:00:00 mingetty
3373 tty6 00:00:00 mingetty
3376 ? 00:00:00 gdm-binary
3475 ? 00:00:00 gdm-binary
3477 ? 00:00:00 gdm-rh-security
3478 tty7 00:00:01 Xorg
3511 ? 00:00:00 yum-updatesd
3520 ? 00:00:00 gam_server
3533 ? 00:00:00 gnome-session
3565 ? 00:00:00 Xsession <defunct>
3572 ? 00:00:00 ssh-agent
3575 ? 00:00:00 scim-launcher
3607 ? 00:00:00 dbus-launch
3608 ? 00:00:00 dbus-daemon
3615 ? 00:00:00 gconfd-2
3620 ? 00:00:00 gnome-keyring-d
3622 ? 00:00:00 gnome-settings-
3625 ? 00:00:00 scim-helper-man
3626 ? 00:00:00 scim-panel-gtk
3628 ? 00:00:00 scim-launcher
3641 ? 00:00:00 metacity
3645 ? 00:00:00 gnome-panel
3647 ? 00:00:00 nautilus
3651 ? 00:00:00 bonobo-activati
3652 ? 00:00:00 gnome-volume-ma
3655 ? 00:00:00 eggcups
3657 ? 00:00:00 gnome-vfs-daemo
3671 ? 00:00:00 bt-applet
3680 ? 00:00:00 nm-applet
3682 ? 00:00:00 puplet
3683 ? 00:00:00 escd
3686 ? 00:00:00 pam-panel-icon
3687 ? 00:00:00 pam_timestamp_c
3698 ? 00:00:00 wnck-applet
3700 ? 00:00:00 trashapplet
3704 ? 00:00:00 gnome-power-man
3712 ? 00:00:00 nm-system-setti
3714 ? 00:00:00 /usr/bin/sealer
3716 ? 00:00:00 gam_server
3718 ? 00:00:00 mapping-daemon
3728 ? 00:00:00 notification-ar
3730 ? 00:00:00 mixer_applet2
3732 ? 00:00:00 clock-applet
3738 ? 00:00:00 gnome-screensav
3740 ? 00:00:00 gnome-terminal
3744 ? 00:00:00 scim-bridge
3745 ? 00:00:00 gnome-pty-helpe
3746 pts/1 00:00:00 bash
3787 pts/1 00:00:00 ps
[student1@localhost ~]$ ps -a
PID TTY TIME CMD
3789 pts/1 00:00:00 ps
[student1@localhost ~]$ ps -u student1
PID TTY TIME CMD
3533 ? 00:00:00 gnome-session
3565 ? 00:00:00 Xsession <defunct>
3572 ? 00:00:00 ssh-agent
3575 ? 00:00:00 scim-launcher
3607 ? 00:00:00 dbus-launch
3608 ? 00:00:00 dbus-daemon
3615 ? 00:00:00 gconfd-2
3620 ? 00:00:00 gnome-keyring-d
3622 ? 00:00:00 gnome-settings-
3625 ? 00:00:00 scim-helper-man
3626 ? 00:00:00 scim-panel-gtk
3628 ? 00:00:00 scim-launcher
3641 ? 00:00:00 metacity
3645 ? 00:00:00 gnome-panel
3647 ? 00:00:00 nautilus
3651 ? 00:00:00 bonobo-activati
3652 ? 00:00:00 gnome-volume-ma
3655 ? 00:00:00 eggcups
3657 ? 00:00:00 gnome-vfs-daemo
3671 ? 00:00:00 bt-applet
3680 ? 00:00:00 nm-applet
3682 ? 00:00:00 puplet
3683 ? 00:00:00 escd
3686 ? 00:00:00 pam-panel-icon
3698 ? 00:00:00 wnck-applet
3700 ? 00:00:00 trashapplet
3704 ? 00:00:00 gnome-power-man
3714 ? 00:00:00 /usr/bin/sealer
3716 ? 00:00:00 gam_server
3718 ? 00:00:00 mapping-daemon
3728 ? 00:00:00 notification-ar
3730 ? 00:00:00 mixer_applet2
3732 ? 00:00:00 clock-applet
3738 ? 00:00:00 gnome-screensav
3740 ? 00:00:00 gnome-terminal
3744 ? 00:00:00 scim-bridge
3745 ? 00:00:00 gnome-pty-helpe
3746 pts/1 00:00:00 bash
3792 pts/1 00:00:00 ps

[student1@localhost ~]$ echo $PATH


/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/student1/bin

[student1@localhost ~]$ vi f1.txt


[student1@localhost ~]$ cat f1.txt
id name place salary
01 sk ppppp 15000
02 pm ????? 20900
03 pm _____ 10800

[student1@localhost ~]$ grep "pm" f1.txt


02 pm ????? 20900
03 pm _____ 10800

You might also like