Once again, remember what sets off "the hitch-hikers guide to the galaxy" from "the encyclopedia Galactica": It has, written on its top, the phrase: Don't Panic!
[choo@simey ~]$ ps
PID TTY TIME CMD
1235 pts/3 00:00:00 tcsh
2014 pts/3 00:00:00 ps
[choo@simey ~]$ ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
choo 1235 0.0 0.5 2856 1444 pts/3 S 14:42 0:00 -csh
choo 2061 0.0 0.3 2624 776 pts/3 R 18:43 0:00 ps u
[choo@simey ~/haifux]$ /sbin/fuser .
.: 1262c
[choo@simey ~/haifux]$ ps -p 1262
PID TTY TIME CMD
1262 pts/2 00:00:00 tcsh
[choo@simey ~/haifux]$ /usr/sbin/lsof -p 1262
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
tcsh 1262 choo cwd DIR 3,6 4096 633934 /prog/choo/haifux
tcsh 1262 choo rtd DIR 3,1 1024 2 /
tcsh 1262 choo txt REG 3,1 288604 16273 /bin/tcsh
tcsh 1262 choo mem REG 3,1 85420 20367 /lib/ld-2.2.5.so
tcsh 1262 choo mem REG 3,3 57 33037
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
tcsh 1262 choo mem REG 3,3 370 51080
/usr/lib/locale/en_US/LC_IDENTIFICATION
tcsh 1262 choo mem REG 3,3 28 52557
/usr/lib/locale/en_US/LC_MEASUREMENT
tcsh 1262 choo mem REG 3,3 64 112345
/usr/lib/locale/en_US/LC_TELEPHONE
tcsh 1262 choo mem REG 3,3 160 112347
/usr/lib/locale/en_US/LC_ADDRESS
tcsh 1262 choo mem REG 3,3 82 112346
/usr/lib/locale/en_US/LC_NAME
tcsh 1262 choo mem REG 3,3 39 52571
/usr/lib/locale/en_US/LC_PAPER
tcsh 1262 choo mem REG 3,3 291 52556
/usr/lib/locale/en_US/LC_MONETARY
tcsh 1262 choo mem REG 3,3 21499 83114
/usr/lib/locale/en_US/LC_COLLATE
tcsh 1262 choo mem REG 3,3 2456 51083
/usr/lib/locale/en_US/LC_TIME
tcsh 1262 choo mem REG 3,3 59 112348
/usr/lib/locale/en_US/LC_NUMERIC
tcsh 1262 choo mem REG 3,1 85262 20377 /lib/libnsl-2.2.5.so
tcsh 1262 choo mem REG 3,1 11832 20340 /lib/libtermcap.so.2.0.8
tcsh 1262 choo mem REG 3,1 22645 20374 /lib/libcrypt-2.2.5.so
tcsh 1262 choo mem REG 3,1 1343176 20372 /lib/libc-2.2.5.so
tcsh 1262 choo mem REG 3,3 173764 98443
/usr/lib/locale/he_IL/LC_CTYPE
tcsh 1262 choo 15u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 16u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 17u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 18u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 19u CHR 136,2 4 /dev/pts/2
umask 022
| Value | 'r' | 'w' | 'x' |
|---|---|---|---|
| 0 | - | - | - |
| 1 | - | - | + |
| 2 | - | + | - |
| 3 | - | + | + |
| 4 | + | - | - |
| 5 | + | - | + |
| 6 | + | + | - |
| 7 | + | + | + |
[choo@simey ~]$ ls -l /usr/X11R6/bin/XFree86
-rws--x--x 1 root root 1602576 Apr 19 2002 /usr/X11R6/bin/XFree86
(note the 's' in the User-owner permission bits).
[choo@simey ~]$ ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Aug 15 2002
/usr/sbin/sendmail -> /etc/alternatives/mta
[choo@simey ~]$ ls -l /etc/alternatives/mta
lrwxrwxrwx 1 root root 27 Aug 15 2002
/etc/alternatives/mta -> /usr/sbin/sendmail.sendmail
[choo@simey ~]$ ls -l /usr/sbin/sendmail.sendmail
-r-sr-xr-x 1 root root 451280 Apr 8 2002
/usr/sbin/sendmail.sendmail
[choo@simey ~]$ ls -lL /usr/sbin/sendmail
-r-sr-xr-x 1 root root 451280 Apr 8 2002 /usr/sbin/sendmail
Google for them all on your spare time...
Originally written by