PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.

Slides:



Advertisements
Similar presentations
Va-scanCopyright 2002, Marchany Unit 8 – Solaris File Systems Randy Marchany VA Tech Computing Center.
Advertisements

ITI-481: Unix Administration Rutgers University Center for Applied Computer Technologies Christopher Uriarte, Instructor Meeting 4.
Linux Booting Procedure
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.
INSTALLING LINUX.  Identify the proper Hardware  Methods for installing Linux  Determine a purpose for the Linux Machine  Linux File Systems  Linux.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Linux+ Guide to Linux Certification, Second Edition
A Guide to Unix Using Linux Fourth Edition
1 Unix Systems Administration Y. K. Chang Generic Unix Directory Structure /bin /dev /etc /sbin /home /lost+found / Root Dir /dsk /rdsk /term /pts /rmt.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Linux Installation Chapter II. Linux Distributions Pre-packaged, installable Linux Anyone can compile a distribution, have to inculde GPL Available for.
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
1 Web Server Administration Chapter 3 Installing the Server.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Installation Ubuntu for Libraries. Step 1: Download Head on to Pick Ubuntu LTS; just click the big orange.
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.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Guide To UNIX Using Linux Fourth Edition
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 4 Working.
Manage Directories and Files in Linux
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
UniMAP 1 The Target Hw 1.The TS5500 SBC 2.TS5500 hardware details and 3.Memory map 4.TS5500 operating system 5.Booting up the SBC 6.Loading application.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop II Transferable Skills & Common Tasks Professional.
1 Web Server Administration Chapter 3 Installing the Server.
LING 408/508: Programming for Linguists Lecture 3 August 31 st.
C HAPTER 7 Managing Disk and File System. I NTRODUCING DISK MANAGEMENT 2 types of hard disk storage supported by Windows XP are: basic hard disk & dynamic.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Chapter Two Exploring the UNIX File System and File Security.
Managing Disks and Drives Chapter 13 powered by dj.
1 Objectives Manage and install new file systems.
USING YOUR INSTALLED LINUX SYSTEM.  Common Linux Tasks  Installing Custom Packages  Common GUI Applications  Command Line Shell  Directory Structure/Navigation.
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.
CIS Lesson 5 Lesson 5 New Skills Boot time GRUB edits (review) Changing BIOS boot order on a VM (review) Mounting CD ISO and floppy Image files on.
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:
System Administration – Part 2. Devices in UNIX are files: A device can be accessed with different file names All device files are stored in /dev or its.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 File-System Interface.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
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.
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
Red Hat ® I NTERNET S YS A DMIN Introduction to Linux.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
Installing Linux: Partitioning and File System Considerations Kevin O'Brien Washtenaw Linux Users Group
1 COP 4343 Unix System Administration Unit 1: –Linux OS structure –Distributions –Hardware inventory –Disks and partitions –Installation steps –Boot loader.
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.
Filesystem Hierarchy Operating systems I800
Guide to Linux Installation and Administration, 2e
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
Basic Commands ls cp ls –l (in detail format) echo ls –a
Structure of Unix OS.
Exploring the UNIX File System and File Security
Operating System Module 1: Linux Installation
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Presentation transcript:

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System Professional Training Academy Linux Series

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © File Systems Linux – reiserfs, ext2, ext3, … Windows – ntfs, fat32, vfat, … Linux can read all Windows cannot (need to install open source programs to read Linux files) Linux is very flexible this way!

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Layout of Linux File System Change directory to root cd / List the contents You will see directories which are similar on all Linux systems – bin – binary executables – boot – contains the bootable Linux image – etc – configuration files – dev – contains a location for devices – home – users’ home directories – media – location where media is mounted – usr – system users’ files – var – contains log files, mail queues, print queues, etc.

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Layout of Linux File System Source: The Linux Documentation Project.

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Layout of Linux File System Source: The Linux Documentation Project. Directory Content /binCommon programs, shared by the system, the system administrator and the users. /boot The startup files and the kernel, vmlinuz. In some recent distributions also grub data. Grub is the GRand Unified Boot loader and is an attempt to get rid of the many different boot-loaders we know today. /devContains references to all the CPU peripheral hardware, which are represented as files with special properties. /etc Most important system configuration files are in /etc, this directory contains data similar to those in the Control Panel in Windows /home Home directories of the common users. /initrd (on some distributions) Information for booting. Do not remove! /lib Library files, includes files for all kinds of programs needed by the system and the users. /lost+found Every partition has a lost+found in its upper directory. Files that were saved during failures are here. /miscFor miscellaneous purposes. /mnt Standard mount point for external file systems, e.g. a CD-ROM or a digital camera. /net Standard mount point for entire remote file systems. /opt Typically contains extra and third party software. /proc A virtual file system containing information about system resources. More information about the meaning of the files in proc is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in detail. /root The administrative user's home directory. Mind the difference between /, the root directory and /root, the home directory of the root user. /sbin Programs for use by the system and the system administrator. /tmp Temporary space for use by the system, cleaned upon reboot, so don't use this for saving any work! /usr Programs, libraries, documentation etc. for all user-related programs. /var Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler area, space for temporary storage of files downloaded from the Internet, or to keep an image of a CD before burning it.

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Everything is a File Everything that is not a process is treated as a file on Linux For example, a directory is just a file which lists the contents of the directory Just like system processes, files have id numbers You can also view programs, for example, try using less to see the ls command less /bin/ls

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Recovering Disks If you have a hard disk which has failed and Windows will not boot from it or allow you to copy your needed files Try using a live Linux CD to inspect the hard drive If your disk is recoverable, you can mount the drive from your live CD and copy them to a backup location It is always worth a try!

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Partitions The previous example of a disk failure is the main reason why we use disk partitions. The damage is minimised to the partition instead of the entire disk To view the partitions on your computer use the disk space usage command called df. Note: The -h option may be used to print the sizes in a more human readable format, as follows: df -h

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Repairing Disks If your Linux disk is faulty or causing problems, you can use a repair program For example, the fsck (file system check) program will check and repair a file system fsck /dev/hda1 This will try to repair any broken links on hard disk number 1 Or just type fsck on its own to choose from available partitions

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Creating Bootable CDs A good local mirror of Linux distribtions and open source software is available at: ftp.esat.netftp.esat.net The ISOs can be burnt on to CD or DVD and will allow you to boot and install Linux K3b is a popular CD burner program for Linux

PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Exercises 1)Examine your root directory on your system and draw a tree diagram of the most important directories 2)Find a new program in the system-wide users' binary directory 3)Examine the disk partitions on your system, how big is your home directory in GB?