General Structure
In Linux, / represents the root of the entire directory structure. The structure is actually a tree like structure. Check this out:
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.
- Investigate (Google) the, "linux directory structure"
- What do your results tell you about
/bin,/mnt,/tmp, and/home?
- What do your results tell you about
- Install the
treeutility:sudo apt install -y tree - Try this:
cd /thentree -L 1 - Now try this whilst still at
/:tree -L 2- Do you see the tree like structure now? Try
tree(BIG list of results)
- Do you see the tree like structure now? Try