Professional Documents
Culture Documents
Lab 5.2: Touring The /proc Filesystem
Lab 5.2: Touring The /proc Filesystem
2180/
22/
2203/
2231/
2233/
2234/
2241/
23/
2319/
2323/
2337/
2338/
2363/
238/
239/
23957/
24/
240/
241/
242/
243/
244/
245/
246/
24697/
247/
248/
249/
24962/
2503/
2506/
2513/
2514/
2516/
2517/
2520/
2521/
2523/
2541/
259/
26/
2626/
263/
2635/
264/
266/
27/
271/
278/
279/
28/
2897/
29/
2928/
2945/
2946/
2947/
2950/
2951/
2952/
2953/
2954/
2955/
2956/
2957/
2965/
2966/
3/
30/
3072/
3079/
3090/
31/
32/
3256/
33/
34/
3469/
35/
36/
37/
374/
3792/
3857/
3858/
3865/
3866/
395/
397/
3990/
409/
42/
43/
4529/
453/
472/
473/
476/
477/
479/
480/
481/
482/
485/
486/
491/
497/
498/
499/
5/
501/
502/
504/
507/
508/
510/
512/
513/
515/
517/
519/
521/
5217/
537/
538/
555/
556/
5564/
5571/
5768/
583/
584/
5858/
5872/
5878/
593/
594/
596/
597/
6130/
6131/
616/
617/
6181/
624/
625/
627/
628/
631/
632/
634/
635/
636/
644/
645/
66/
67/
676/
68/
681/
6824/
6909/
6979/
7/
7053/
7091/
7123/
7188/
7222/
723/
7236/
725/
726/
728/
7312/
7313/
7321/
738/
740/
745/
746/
748/
749/
752/
758/
759/
762/
763/
765/
767/
773/
794/
8/
825/
826/
879/
9/
acpi/
asound/
buddyinfo
bus/
cgroups
cmdline
config.gz
consoles
cpuinfo
crypto
devices
diskstats
dma
driver/
execdomains
fb
filesystems
fs/
interrupts
iomem
ioports
irq/
kallsyms
kcore
keys
key-users
kmsg
kpagecount
kpageflags
latency_stats
loadavg
locks
meminfo
misc
modules
mounts@
mtrr
net@
pagetypeinfo
partitions
sched_debug
schedstat
scsi/
self@
slabinfo
softirqs
stat
swaps
sys/
sysrq-trigger
sysvipc/
thread-self@
timer_list
timer_stats
tty/
uptime
version
vmallocinfo
vmnet/
vmstat
zoneinfo
Notice many of the directory names are numbers; each corresponds to a running process and the name is the
process ID. An important subdirectory we will discuss later is /proc/sys, under which many system parameters
can be examined or modified.
2. View the following files:
/proc/cpuinfo:
LFS201: V 1.0
cwd@
environ
exe@
fd/
fdinfo/
gid_map
io
latency
limits
maps
mem
mountinfo
mounts
mountstats
net/
ns/
oom_adj
oom_score
oom_score_adj
pagemap
personality
projid_map
root@
sched
schedstat
smaps
stack
stat
statm
status
syscall
task/
uid_map
wchan
Take a look at some of the fields in here such as: cmdline, cwd, environ, mem, and status
LFS201: V 1.0