Linux default directory structure demonstration
cd /
ls -F
Note: ls -F adds / to directories, * to executables, and @ to linked files
cd /bin
ls -F
Note: familiar commands ls, nc, mkdir
cd /dev
ls
Note: hda - hard disk. eth0 is not here--Ethernet devices are treated differently (link Ch 9a)
cd /etc
ls -F
Note: hosts file with name-to-IP mapping ("cat hosts" to see it)
passwd with user names and groups ("cat passwd" to see it)
shadow file with hashed passwords ("sudo cat shadow" to see it)
cd /home
ls -l
Note: Home directory for each user, owned by the user
cd /lib
ls -F
Note: Libraries here, nothing particularly interesting
cd /mnt
ls -al
Note: Nothing here un;ess a removable device is connected
cd /proc
ls -F
Note: These files show information about running processes.
"cat interrupts" "cat iomem" "cat ioports" shows the device resources, like Device Manager
"cat meminfo" shows memory statistics
"cat partitions" shows the hard disk partitions
"cat version" shows the Linux version
cd /var/log
ls
cat boot
Note: This file is the boot log