Skip to content

General Structure#

In Linux, / represents the root of the entire directory structure. The structure is actually a tree like structure. Check this out:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
michael@develop:/$ tree -L 1
.
├── bin -> usr/bin
├── boot
├── cdrom
├── dev
├── etc
├── home
├── lib -> usr/lib
├── lib32 -> usr/lib32
├── lib64 -> usr/lib64
├── libx32 -> usr/libx32
├── lost+found
├── media
├── mnt
├── opt
├── proc
├── root
├── run
├── sbin -> usr/sbin
├── snap
├── srv
├── swap.img
├── sys
├── tmp
├── usr
└── var

The . represents the current directory, which in this case is / in the structure (the root.)

Micro Project#

Warning

Work in progress.

  1. Investigate (Google) the, "linux directory structure"
    1. What do your results tell you about /bin, /mnt, /tmp, and /home?
  2. Install the tree utility: sudo apt install -y tree
  3. Try this: cd / then tree -L 1
  4. Now try this whilst still at /: tree -L 2
    1. Do you see the tree like structure now? Try tree (BIG list of results)