Guide To UNIX Using Linux Third Edition

Slides:



Advertisements
Similar presentations
Operating Systems File Management.
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
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
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.
Linux Linux File System.
The UNIX File System.
Copyrights© 2008 BVU Amplify DITM DATA BASE MANAGEMENT system Page:1 Lesson 2: The File System By Simi.
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 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Unix Basics Chapter 4.
Linux+ Guide to Linux Certification, Second Edition
Chapter Two Exploring the UNIX File System and File Security.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Managing Files. Module 5 Managing Files ♦ Introduction “On a Linux system, everything is a file; if something is not a file, it is a process.” ♦ Topics.
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.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
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:
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
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.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 File-System Interface.
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.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
THE FILE SYSTEM Files long-term storage RAM short-term storage Programs, data, and text are all stored in files, which is stored on.
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.
File system In computing, a file system is a method of storing and organizing computer files and the data they contain to make it easy to find and access.
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
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.
UNIX/LINUX OPERATING SYSTEM
Chapter 2: Exploring the UNIX File System (For Tuesday Section) File and File Systems.
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:
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Linux Filesystem Management
Agenda The Linux File System (chapter 4 in text)
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux 101 Training Module Linux Basics.
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
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Presentation transcript:

Guide To UNIX Using Linux Third Edition Chapter 2: Exploring the UNIX/Linux File Systems and File Security Guide To UNIX Using Linux Third Edition

Objectives Discuss UNIX/Linux file systems Explain partitions and inodes Understand the elements of the root hierarchy Use the mount command Explain and use paths, pathnames, and prompts Guide to UNIX Using Linux, Third Edition

Objectives (continued) Navigate the file system Create and remove directories Copy and delete files Configure file permissions Guide to UNIX Using Linux, Third Edition

Understanding UNIX/Linux File Systems File: basic component for data storage UNIX/Linux considers everything to be a file A file system is UNIX/Linux’s way of organizing files on mass storage devices A physical file system is a section of the hard disk that has been formatted to hold files The file system is organized in a hierarchical structure (inverted tree) Guide to UNIX Using Linux, Third Edition

Understanding UNIX/Linux File Systems (continued) Guide to UNIX Using Linux, Third Edition

Understanding the Standard Tree Structure The structure starts at the root level Root is the name of the file at this basic level and it is denoted by the slash character (/) Directory: file that can contain other files and directories Subdirectory: directory within a directory The subdirectory is considered the child of the parent directory Guide to UNIX Using Linux, Third Edition

Using UNIX/Linux Partitions The section of the disk that holds a file system is called a partition When installing UNIX/Linux, one of the first tasks is deciding how to partition a storage device, or hard disk Hard disks may have many partitions UNIX/Linux partitions are given names LINUX uses hda1 and hda2 Guide to UNIX Using Linux, Third Edition

Using UNIX/Linux Partitions (continued) Storage devices are called peripheral devices Peripheral devices connect to the computer through electronic interfaces IDE: Integrated Drive Electronics SCSI: Small Computer System Interface Guide to UNIX Using Linux, Third Edition

Guide to UNIX Using Linux, Third Edition

Setting Up Hard Disk Partitions Partitioning your hard disk provides organized space for file systems At least 3 partitions (root, swap, /boot) often recommended Root partition holds root file system directory (/), size depends on installation but often ranges between 1.2 to 5+ GB Guide to UNIX Using Linux, Third Edition

Setting Up Hard Disk Partitions (continued) Swap partition acts as a memory extension, often has same size as RAM, enables virtual memory /boot partition used to store os files comprising kernel, relatively small Other often used partitions include /usr, /home, /var Guide to UNIX Using Linux, Third Edition

Using Inodes Inodes are associated with directories and files in ufs and ext file systems An inode contains the name, general information, and location information (a pointer) for a file or directory A superblock contains information about about block layout on a specific partition Guide to UNIX Using Linux, Third Edition

Exploring the Root Hierarchy UNIX/Linux must mount a file system before any programs can access files on it To mount a file system is to connect it to the directory tree structure The root file system is mounted by the kernel when the system starts Guide to UNIX Using Linux, Third Edition

Exploring the Root Hierarchy (continued) The root directory contains sub-directories that contain files: /bin contains binaries, or executables needed to start the system and perform system tasks /boot contains files needed by the bootstrap loader as well as kernel images /dev contains system device reference files Guide to UNIX Using Linux, Third Edition

Guide to UNIX Using Linux, Third Edition

Exploring the Root File Hierarchy (continued) 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 Guide to UNIX Using Linux, Third Edition

Exploring the Root File Hierarchy (continued) 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 Guide to UNIX Using Linux, Third Edition

Using the mount Command Users can access mounted file systems which they have permission to access Additional file systems can be mounted at any time using the mount command To ensure system security, only the root user uses the mount command Guide to UNIX Using Linux, Third Edition

Using Paths, Pathnames, and Prompts To specify a file or directory, use its pathname, which follows the branches of the file system to the desired file A forward slash (/) separates each directory name The UNIX/Linux command prompt may indicate your location within the file system Use the UNIX/Linux pwd command to display the current path name Guide to UNIX Using Linux, Third Edition

Guide to UNIX Using Linux, Third Edition

Guide to UNIX Using Linux, Third Edition

Navigating the File System To navigate the UNIX/Linux directory structure, use the cd (change directory) command UNIX/Linux refers to a path as either: Absolute - begins at the root level and lists all subdirectories to the destination file Relative - begins at your current working directory and proceeds from there Guide to UNIX Using Linux, Third Edition

Using Dot and Dot Dot Addressing Techniques UNIX/Linux interpret a single dot (.) to mean the current working directory Two dots (..) mean the parent directory cd .. moves you up a level in the directory structure Guide to UNIX Using Linux, Third Edition

Listing Directory Contents The ls (list) command displays a directory’s contents, including files and subdirectories Guide to UNIX Using Linux, Third Edition

Using Wildcards A wildcard is a special character that is used as a placeholder The * wildcard represents any group of characters in a file name The ? wildcard represents a single character in a file name Guide to UNIX Using Linux, Third Edition

Creating and Removing Directories and Files mkdir (make directory) command Create a new directory rmdir (make directory) command Delete an empty directory cp (copy) command Copy files from one directory to another rm (remove) command Delete files Guide to UNIX Using Linux, Third Edition

Configuring File Permissions for Security Guide to UNIX Using Linux, Third Edition

Configuring File Permissions for Security (continued) Owner has read w Owner has write x Owner has execute Group has read - Group does not have write Group has execute Others have read Others do not have write Others have execute Guide to UNIX Using Linux, Third Edition

Configuring File Permissions for Security (continued) chmod command To set file permissions Settings are read (r), write (w), execute (x) The three types of users are owners, groups, and others Setting permissions to directories Use the execute (x) to grant access Guide to UNIX Using Linux, Third Edition

Chapter Summary In UNIX/Linux, a file is the basic component for data storage and UNIX and Linux consider everything a file A file system is UNIX/Linux’s way of organizing files on mass storage devices and each file is referenced using a correct and unique pathname The section of the mass storage device that holds a file system is a partition Guide to UNIX Using Linux, Third Edition

Chapter Summary (continued) You can customize your command prompt to display the current working directory name, the current date and time, and several other items The ls command displays the names of files and directories contained in a directory Use the chmod command to set permissions such as read (r), write (w), execute (x) for files that you own Guide to UNIX Using Linux, Third Edition