| More on commands | Example |
|---|---|
| Type more than one command |
[shell_test@localhost ~]$ ls;pwd Desktop Documents Download listoffiles Music Pictures Public Templates Videos /home/shell_test [shell_test@localhost ~]$ |
| Sending a Command to the Background |
[shell_test@localhost ~]$ date > dateoftoday & [1] 4653 [shell_test@localhost ~]$ ls dateoftoday Desktop Documents Download listoffiles Music Pictures Public Templates Videos [1]+ Done date > dateoftoday [shell_test@localhost ~]$ cat dateoftoday Thu Nov 19 07:55:22 IST 2009 [shell_test@localhost ~]$ |
| The ps Command | [shell_test@localhost ~]$ ps PID TTY TIME CMD 4592 pts/0 00:00:00 bash 4660 pts/0 00:00:00 ps [shell_test@localhost ~]$ ps -f UID PID PPID C STIME TTY TIME CMD 501 4592 4583 0 07:48 pts/0 00:00:00 -bash 501 4661 4592 0 07:57 pts/0 00:00:00 ps -f [shell_test@localhost ~]$ ps -e PID TTY TIME CMD 1 ? 00:00:01 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 migration/0 4 ? 00:00:00 ksoftirqd/0 5 ? 00:00:00 watchdog/0 6 ? 00:00:00 migration/1 7 ? 00:00:00 ksoftirqd/1 8 ? 00:00:00 watchdog/1 9 ? 00:00:00 events/0 10 ? 00:00:00 events/1 11 ? 00:00:00 cpuset 12 ? 00:00:00 khelper 13 ? 00:00:00 netns 14 ? 00:00:00 async/mgr 15 ? 00:00:00 kintegrityd/0 16 ? 00:00:00 kintegrityd/1 17 ? 00:00:00 kblockd/0 18 ? 00:00:00 kblockd/1 19 ? 00:00:00 kacpid 20 ? 00:00:00 kacpi_notify 21 ? 00:00:00 ata/0 22 ? 00:00:00 ata/1 23 ? 00:00:00 ata_aux 24 ? 00:00:00 ksuspend_usbd 25 ? 00:00:00 khubd 26 ? 00:00:00 kseriod 27 ? 00:00:00 khungtaskd 28 ? 00:00:00 pdflush 29 ? 00:00:00 pdflush 30 ? 00:00:00 kswapd0 31 ? 00:00:00 aio/0 32 ? 00:00:00 aio/1 33 ? 00:00:00 crypto/0 34 ? 00:00:00 crypto/1 40 ? 00:00:00 kpsmoused 41 ? 00:00:00 kstriped 42 ? 00:00:00 ksnapd 43 ? 00:00:00 usbhid_resumer 60 ? 00:00:00 scsi_eh_0 61 ? 00:00:00 scsi_eh_1 73 ? 00:00:00 kdmflush 74 ? 00:00:00 kdmflush 75 ? 00:00:00 kjournald2 84 ? 00:00:00 kauditd 162 ? 00:00:00 udevd 285 ? 00:00:00 scsi_eh_2 286 ? 00:00:00 scsi_eh_3 299 ? 00:00:01 scsi_eh_4 306 ? 00:00:00 scsi_eh_5 336 ? 00:00:00 bluetooth 891 ? 00:00:00 hd-audio0 962 ? 00:00:00 kmpathd/0 963 ? 00:00:00 kmpathd/1 964 ? 00:00:00 kmpath_handlerd 989 ? 00:00:00 kjournald 1479 ? 00:00:00 auditd 1481 ? 00:00:00 audispd 1482 ? 00:00:00 sedispatch 1506 ? 00:00:00 rsyslogd 1525 ? 00:00:00 rpcbind 1539 ? 00:00:00 dbus-daemon 1549 ? 00:00:00 avahi-daemon 1550 ? 00:00:00 avahi-daemon 1559 ? 00:00:00 cupsd 1580 ? 00:00:00 acpid 1588 ? 00:00:00 hald 1591 ? 00:00:00 console-kit-dae 1592 ? 00:00:00 hald-runner 1683 ? 00:00:00 hald-addon-inpu 1712 ? 00:00:00 hald-addon-cpuf 1713 ? 00:00:00 hald-addon-acpi 1714 ? 00:00:01 hald-addon-stor 1730 ? 00:00:00 pcscd 1743 ? 00:00:00 NetworkManager 1747 ? 00:00:00 nm-system-setti 1748 ? 00:00:00 wpa_supplicant 1760 ? 00:00:00 rpc.statd 1787 ? 00:00:00 rpciod/0 1788 ? 00:00:00 rpciod/1 1797 ? 00:00:00 rpc.idmapd 1831 ? 00:00:00 bluetoothd 1850 ? 00:00:00 sshd 1874 ? 00:00:00 ntpd 1902 ? 00:00:00 krfcommd 1915 ? 00:00:00 rpc.rquotad 1918 ? 00:00:00 lockd 1919 ? 00:00:00 nfsd4 1920 ? 00:00:00 nfsd 1921 ? 00:00:00 nfsd 1922 ? 00:00:00 nfsd 1923 ? 00:00:00 nfsd 1924 ? 00:00:00 nfsd 1925 ? 00:00:00 nfsd 1926 ? 00:00:00 nfsd 1927 ? 00:00:00 nfsd 1930 ? 00:00:00 rpc.mountd 1976 ? 00:00:00 crond 1992 ? 00:00:00 atd 2000 ? 00:00:00 gdm-binary 2001 tty4 00:00:00 mingetty 2002 tty5 00:00:00 mingetty 2003 tty2 00:00:00 mingetty 2004 tty3 00:00:00 mingetty 2005 tty6 00:00:00 mingetty 2042 ? 00:00:00 gdm-simple-slav 2043 tty1 00:04:08 Xorg 2064 ? 00:00:00 dbus-launch 2112 ? 00:00:00 devkit-power-da 2114 ? 00:00:00 devkit-daemon 2135 ? 00:00:00 gdm-session-wor 2161 ? 00:00:00 gnome-keyring-d 2180 ? 00:00:00 gnome-session 2193 ? 00:00:00 dbus-launch 2194 ? 00:00:00 dbus-daemon 2269 ? 00:00:03 gconfd-2 2273 ? 00:00:00 gnome-settings- 2281 ? 00:00:03 metacity 2286 ? 00:00:16 pulseaudio 2287 ? 00:00:01 gnome-panel 2290 ? 00:00:00 gconf-helper 2292 ? 00:00:00 gvfsd 2305 ? 00:00:00 gvfs-fuse-daemo 2309 ? 00:00:01 nautilus 2311 ? 00:00:00 bonobo-activati 2313 ? 00:00:00 blueman-applet 2315 ? 00:00:00 seapplet 2318 ? 00:00:00 bluetooth-apple 2324 ? 00:00:00 nm-applet 2327 ? 00:00:00 im-settings-dae 2329 ? 00:00:00 gdu-notificatio 2331 ? 00:00:00 python 2333 ? 00:00:01 devkit-disks-da 2345 ? 00:00:00 gpk-update-icon 2353 ? 00:00:00 devkit-disks-da 2364 ? 00:00:00 notification-da 2403 ? 00:00:00 gnome-volume-co 2439 ? 00:00:00 kerneloops-appl 2453 ? 00:00:00 gnome-power-man 2496 ? 00:00:00 kerneloops 2497 ? 00:00:00 gconf-im-settin 2506 ? 00:00:00 gvfsd-trash 2509 ? 00:00:00 gvfs-gdu-volume 2513 ? 00:00:02 wnck-applet 2516 ? 00:00:00 trashapplet 2521 ? 00:00:00 gvfs-gphoto2-vo 2529 ? 00:00:00 gnome-keyboard- 2532 ? 00:00:08 clock-applet 2535 ? 00:00:00 gdm-user-switch 2539 ? 00:00:01 tomboy 2540 ? 00:00:00 notification-ar 2547 ? 00:00:00 obex-data-serve 2549 ? 00:00:00 gvfsd-burn 2638 ? 00:00:00 gnome-screensav 2681 ? 00:00:00 dhclient 2729 ? 00:00:00 sendmail 2731 ? 00:00:00 sendmail 4413 ? 00:00:02 kchmviewer 4415 ? 00:00:00 run-mozilla.sh 4430 ? 00:00:52 firefox 4533 ? 00:00:05 npviewer.bin 4562 ? 00:00:00 Terminal 4563 ? 00:00:00 gnome-pty-helpe 4565 pts/0 00:00:00 bash 4583 pts/0 00:00:00 su 4592 pts/0 00:00:00 bash 4662 pts/0 00:00:00 ps [shell_test@localhost ~]$ |