module 2 - the file system
DESCRIPTION
Module 2 - The File System. Linux File Types. Directories Files (text files & scripts) Binaries Links (soft/symbolic links). The Linux Directory Tree. Directories and Functions. The Linux PATH. What is PATH ? - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/1.jpg)
Module 2 - The File System
![Page 2: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/2.jpg)
Linux File Types
• Directories
• Files (text files & scripts)
• Binaries
• Links (soft/symbolic links)
![Page 3: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/3.jpg)
The Linux Directory Tree
![Page 4: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/4.jpg)
Directories and Functions
![Page 5: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/5.jpg)
The Linux PATH
• What is PATH ?
PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files.
/etc/sysconfig/network
/home/hagay/Desktop
![Page 6: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/6.jpg)
Absolute and Relative Path
• An absolute path starts from the top of the tree
# cd /home/hagay/Desktop
• A relative path NEVER starts with /
# cd hagay/Desktop
* assuming /home is where we are
![Page 7: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/7.jpg)
Navigating in space
• The cd command (Change Directory)
# cd - Take me to my home directory
# cd /etc/sysconfig - take me to directory
# cd - - take me to the former directory
# cd .. - take me one directory UP
# cd ~avi - take me to Avi’s home directory
![Page 8: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/8.jpg)
The Linux File System
• The current default file system is ext4
• Previous versions where ext2 and ext3
• ext4 can support partition size of up to 1 exbibyte
(1 exbibyte = 1,152921.5046068 terabytes)
• ext4 can support a single file size of approximately
1 terabyte
![Page 9: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/9.jpg)
The Linux File System and Directory Tree Integration
• In Linux we often integrate the file system (partitions) with the Linux directory tree.
• Remember our installation ?
We created partitions for some of the Top-Level directories:
/boot - 500MB partition
/ - 10GB partition
/var - 2GB partition
![Page 10: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/10.jpg)
The Linux Logical Volume Manager
• LVM is a logical volume manager for the Linux kernel. it manages disk drives and similar mass-storage devices.
• The term "volume" refers to a disk drive or partition thereof.
• It was originally written in 1998 by Heinz Mauelshagen, who based its design on that of the LVM in HP-UX.
![Page 11: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/11.jpg)
The Linux LVM Diagram
![Page 12: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/12.jpg)
<Insert Picture Here>
![Page 13: Module 2 - The File System](https://reader036.vdocuments.site/reader036/viewer/2022062519/5681505a550346895dbe5cec/html5/thumbnails/13.jpg)