module 2 - the file system. linux file types directories files (text files & scripts) binaries...

13
Module 2 - The File System

Upload: charla-harrington

Post on 01-Jan-2016

227 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

Module 2 - The File System

Page 2: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

Linux File Types

• Directories

• Files (text files & scripts)

• Binaries

• Links (soft/symbolic links)

Page 3: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

The Linux Directory Tree

Page 4: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

Directories and Functions

Page 5: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

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. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

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. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

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. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

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. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

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. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

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. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

The Linux LVM Diagram

Page 12: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)

<Insert Picture Here>

Page 13: Module 2 - The File System. Linux File Types Directories Files (text files & scripts) Binaries Links (soft/symbolic links)