Information Technology Reference
In-Depth Information
Be familiar with the names and purposes of the proc tools.
The following listing shows sample usage of some of the proc tools. They are
used to examine the process (PID = 763) created by the vi /etc/passwd
command executed by the dla user account (UID = 1001 and GID = 10).
The system was accessed remotely from the wint40 system using an X
Window terminal. The user is currently located under the dla home direc-
tory ( /export/home/dla ).
$ pflags 763
763: vi /etc/passwd
data model = _ILP32 flags = PR_ORPHAN
/1: flags = PR_PCINVAL|PR_ASLEEP
$ pcred 763
763: e/r/suid=1001 e/r/sgid=10
$ pfiles 763
763: vi /etc/passwd
Current rlimit: 256 file descriptors
0: S_IFCHR mode:0620 dev:102,0 ino:429381 uid:1001 gid:7
O_RDWR
1: S_IFCHR mode:0620 dev:102,0 ino:429381 uid:1001 gid:7
O_RDWR
2: S_IFCHR mode:0620 dev:102,0 ino:429381 uid:1001 gid:7
O_RDWR
3: S_IFCHR mode:0666 dev:102,0 ino:429338 uid:0 gid:3
O_RDWR
4: S_IFREG mode:0600 dev:102,0 ino:880803 uid:1001 gid:10
O_RDWR
6: S_IFCHR mode:0620 dev:102,0 ino:429381 uid:1001 gid:7
O_RDWR
$ ptree 763
759 /usr/openwin/bin/xterm -display winnt40:0
760 sh
763 vi /etc/passwd
$
$ pwdx 763
763: /export/home/dla
$
Temporary File System (TMPFS)
The temporary file system is a memory-based file system used to improve the
performance of file system reads and writes (memory input/output is much
faster than disk-based UFS input/output). Files in a TMPFS instance are not
permanent and are lost when the file system is unmounted or the system
Search WWH ::




Custom Search