The UNIX File System.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
A Guide to Unix Using Linux Fourth Edition
Pre-Assessment Questions
CS 497C – Introduction to UNIX Lecture 11: - The File System Chin-Chih Chang
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
MCT260-Operating Systems I Operating Systems I Navigating the File System.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Linux+ Guide to Linux Certification, Second Edition
Chapter 5 Accessing Files and Directories. How Directories Get Created OS installation: usr, dev, etc, export, kernel and others places to store installation.
Guide To UNIX Using Linux Third Edition
Linux Files and Directories. Linux directories Linux system are arranged in what is called a hierarchical directory structure. This means that they are.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
Guide To UNIX Using Linux Fourth Edition
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
Manage Directories and Files in Linux
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Chapter 8. Disks and Filesystems. Ordinary Files u What is a file? –a container for ordered data –persistent (stays around) and accessible by name u Unix.
Unix Basics Chapter 4.
Chapter Two Exploring the UNIX File System and File Security.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Operating Systems and Using Linux CMSC 104, Lecture 3 John Y. Park 1.
USING YOUR INSTALLED LINUX SYSTEM.  Common Linux Tasks  Installing Custom Packages  Common GUI Applications  Command Line Shell  Directory Structure/Navigation.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Linux Commands C151 Multi-User Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Slide: 1 UNIX FILE SYSTEM By:Qing Yang ID: Operating System Research Topic December, 2000.
The Unix File system (UFS) Presented by: Gurpreet Singh Assistant Professor Department of School of Computing and Engineering Galgotias University.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Agenda The Linux File System (chapter 4 in text)
BIF713 File and Directory Management. File System A File System is a structure used to organize programs and data on a computer ’ s storage device Files.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
Agenda The Linux File System (chapter 4 in text) Directory Structures / Navigation Terminology File Naming Rules Relative vs Absolute pathnames Unix Commands:
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Welcome to Linux Chap#1 Hanin Abdulrahman.
UBUNTU INSTALLATION
Linux file system "On a UNIX system, everything is a file;
Linux/Unix - Download Ubuntu Linux :
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
C151 Multi-User Operating Systems
9 Linux on the Desktop.
The Linux Command Line Chapter 2
Exploring the UNIX File System and File Security
Operating Systems Lecture 4.
Chapter 7 File and file System structure
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Presentation transcript:

The UNIX File System

File System Definition A file system is a hierarchy of directories, subdirectories, and files that organize and manage the information on hard disks.

Directories Directories are created so users and applications can easily find files. Without directories, all files would be in the same location with no organization to them. Similar to using the backseat of your car to hold homework assignments and papers.

Hierarchical Directory Structure Directories are organized in an ‘upside-down’ tree fashion. The root is at the top. Directories may contain other directories and files. Analogous to file drawers and file folders

Directories The root directory is often represented as / (the forward slash symbol). Parent directories contain other directories (called children). Child directories are located within other directories (called parent directories).

Path Names Each file can be represented by its path name. The path name simply represents the file’s location in the file system. Example: /home/user2/dir1/coffees/beans

Path Components Directory paths allow users to navigate within the file system. Slashes within the path name are delimiters between object names. Object names can be directories, subdirectories or files DOS and Windows uses a backward slash (\) to separate directories. UNIX and Linux use a forward slash (/). A slash (/) in the first position of any path name represents the root directory.

Exploring the Root File System The root directory contains sub-directories that contain files: /bin contains binaries, or executables needed to start the system and perform system tasks available to all users /boot contains files needed by the bootstrap loader as well as kernel images /dev contains system device reference files Continued…

Exploring the Root File System Root subdirectories continued: /etc contains configuration files that the system uses when the computer starts /lib contains kernel modules, security information, and the shared library images /mnt contains mount points for temporary mounts by the system administrator /proc is a virtual file system allocated in memory only; it tracks the running processes on the system Continued…

Exploring the Root File System Root subdirectories continued: /root is the home directory of the root user, or the system administrator /sbin contains essential network programs used only by the system administrator /tmp is a temporary place to store data during processing cycles /var contains subdirectories which have sizes that often change, such as error logs, print jobs, and incoming e-mail

Absolute Path Names An absolute path name specifies a file or directory in relation to the entire UNIX file hierarchy. directory s

Relative Path Names A relative path name describes the location of a file or directory as it relates to the current directory. directory

Path Name Types Comparison If the path name starts with /: It is an absolute path name. Ex: /etc/resolv.conf If the path does not start with /: It is a relative path name. Ex: user01/file1 Absolute path names specify the exact location of a file or directory. In Windows: C:\Windows\System32\file.dll Relative path names specify where a file or directory is in relation to the current spot in the file system. In the Windows folder: System32\file.dll

Useful File System Commands pwd (print working directory) Displays current directory location cd (change directory) Change to a specified directory ls (list) Display contents of directory

cd (by itself) places user in home directory Using cd cd /home Absolute Path In /home, cd user01/dir1 Relative Path cd (by itself) places user in home directory

cd Shortcuts cd .. Moves the user up one directory to the parent directory cd ../tmp cd . Keeps the user in the current directory cd ./coffees cd ~ Moves the user to the home directory cd ~/file1

ls displays the directory contents. The ls Command ls displays the directory contents. ls can be used by itself to list the contents of the current directory. ls can be used with a directory path to display the contents of that directory. ls ls /home

The ls –a Command Use ls –a to list all files and directories, including hidden files, . and .. directories.

The ls –l Command Use ls –l to display long directory listings.

The * and ? are also referred to as wildcard characters. Metacharacters Metacharacter are characters that have special meanings to UNIX and Linux commands. Examples: *, <, >, | (pipe), !, [, ], ? and others The * and ? are also referred to as wildcard characters.

The * Wildcard * is used to represent one or more characters

The ? Wildcard ? is used to represent one character

The [ ] Metacharacters Using [ ], anything inside the brackets will be matched

The ; Metacharacter ; is used to separate multiple commands on one line