2000 Copyrights, Danielle S. Lahmani UNIX Tools G22.2245-001, Fall 2000 Danielle S. Lahmani Lecture 12.

Slides:



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

Basic Unix system administration
Pre-Assessment Questions
File System Interface CSCI 444/544 Operating Systems Fall 2008.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Chapter 5 Accessing Files and Directories. How Directories Get Created OS installation: usr, dev, etc, export, kernel and others places to store installation.
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
The UNIX File System.
Chapter 12 File Management Systems
CS 497C – Introduction to UNIX Lecture 16: - File Attributes Chin-Chih Chang
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 9.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Backups in Linux Ning Zhu Class presentation. Introduction The dump and restore commands are the most common way to create and restore from backups in.
Guide To UNIX Using Linux Fourth Edition
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Offline File Storage. Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file,
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Lesson 11-Locating, Printing, and Archiving User Files.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Disks, Filesystems 1.  sudo and PATH (environment)  disks  partitioning  formatting file systems: mkfs command  checking file system integrity: fsck.
Linux Operations and Administration
Day 8 Exporting Displays Cronjobs Mount. Chapter 5 Chapter 5 talks about X windows. –You should read the chapter. –However, you do not need to pay particular.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
TELE 301 Lecture 10: Scheduled … 1 Overview Last Lecture –Post installation This Lecture –Scheduled tasks and log management Next Lecture –DNS –Readings:
Lecture 5 Software Development. Types of Development Tools Archiving: tar, cpio, pax, RPM Configuration: autoconf Compilation and building: make Managing.
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.
1 Objectives Manage and install new file systems.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
10.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles 10.4 File System Mounting A file system must be mounted before it can be accessed.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Hands On UNIX II Dorcas Muthoni. Processes A running instance of a program is called a "process" Identified by a numeric process id (pid)‏  unique while.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
1 Periodic Processes and the cron Daemon The cron daemon is where all timed events are initiated. The cron system is serviced by the cron daemon. What.
Chapter 10 Chapter 10: Managing the Distributed File System, Disk Quotas, and Software Installation.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 9: Basic Linux Administration Chapter 11: System Administration: Core Concepts Chapter 16:
Module 4.0: File Systems File is a contiguous logical address space.
Introduction to System Admin Sirak Kaewjamnong. 2 The system administration’s job  Adding a new user  Doing backup and restoring files from backups.
1 LINUX SECURITY. 2 Outline Introduction Introduction - UNIX file permission - UNIX file permission - SUID / SGID - SUID / SGID - File attributes - File.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
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.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
The Unix File system (UFS) Presented by: Gurpreet Singh Assistant Professor Department of School of Computing and Engineering Galgotias University.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
Agenda The Linux File System (chapter 4 in text)
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
UNIX File System By Vishal Desai. Introduction Basic purpose of file system: Represent and organize the system resources. But UNIX File System also maps.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
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.
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Agenda The Linux File System (chapter 4 in text) Directory Structures / Navigation Terminology File Naming Rules Relative vs Absolute pathnames Unix Commands:
Lecture 6 UNIX Development Tools. Software Development Tools.
tar: The tape archive program _______________________ Amber Jain IC-2K7-05 _______________________.
File-System Management
Filesystem Management and Backups
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Lecture 43 Syed Mansoor Sarwar
Hard Link when a file is copied, both the original and copy occupy separate space on the disk. unix allows a file to have more than one name and yet maintain.
Periodic Processes Chapter 9.
Presentation transcript:

2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 12

2000 Copyrights, Danielle S. Lahmani Unix System Management Maintain integrity of the system (e.g., security) Install new software Perform periodic Backup of user’s files Adapt software to local conditions Perform Recovery of lost data Inform users of new services and features

2000 Copyrights, Danielle S. Lahmani Who are the system administrators? You: on your PC Professional managers on large mini- computer systems

2000 Copyrights, Danielle S. Lahmani Maintaining System Integrity Superuser privileges User account administration Managing file system systems Booting process Backups Security

2000 Copyrights, Danielle S. Lahmani Superuser Superuser: privileged level for system administration login name root, uid of 0 bypasses Unix protection on files and directories (except for remote file systems) su

2000 Copyrights, Danielle S. Lahmani User account administration Add user –user login name –user uid, groupid –initial passwd –add home directory –user’s login shell delete users

2000 Copyrights, Danielle S. Lahmani File System Management Disk partitions Building a file system –newfs, mkfs Mounting a file system Unmounting a file system Checking file system consistency

2000 Copyrights, Danielle S. Lahmani Disk Partition Physical disk is formatted to divide it into partitions different partitions or slices used for: –root file system –swap –whole disk –operating system files –user files

2000 Copyrights, Danielle S. Lahmani UNIX file system File system: collection of files and directories on a disk or tape in standard UNIX file system format. Low capacity disks such as diskette have a a single file system large disks are partitioned into several file systems: –modularity –backup

2000 Copyrights, Danielle S. Lahmani Mount Utility When UNIX is started, the directory hierarchy corresponds to the file system located on a single disk called the root device. The mount utility allows a super-user to splice the root directory of a file system into the existing directory hierarchy. File systems created on other devices can be attached to the original directory hierarchy using the mount mechanism.

2000 Copyrights, Danielle S. Lahmani Mount Utility When mount is established, users are unaware of crossing mount points. File system may be detached from the main hierarchy using the umount utility. Links do not work across mounts (System V) Example: $ mount /dev/dsk1 /usr $ umount /usr

2000 Copyrights, Danielle S. Lahmani file system tools newfs: front end to mkfs : builds a file system mount: mounts a file system umount: unmount a file system fsck: File System Check Consistency

2000 Copyrights, Danielle S. Lahmani File System Types Under UNIX SVR4: multiple file system types are supported VFS: kernel mechanism (Virtual file system) supports all file system mechanisms and underlies all other file system types examples of file system types –nfs –ufs –/proc pseudo file system to read –pcfs: DOS file system mountable on UNIX

2000 Copyrights, Danielle S. Lahmani Backups tar cpio volcopy: copies an exact image of a whole file system from one disk to another disk or to tape. cron, crontab: run programs at specified times, can be used for scheduling regular backups

2000 Copyrights, Danielle S. Lahmani tar: archiving files tar: tape archiving –usage: tar [options] [files] –Designed for maintaining an archive of files on a magnetic tape. –Copy files or restore files from tape. –If any files are subdirectories, tar acts on the entire subtree.

2000 Copyrights, Danielle S. Lahmani tar: archiving files options –c creates a tar-format file –f filename to specify filename for tar- format file, default is /dev/rmt8. –If - is used for filename, standard input or standard output is used as appropriate –v verbose output –x allows to extract named files

2000 Copyrights, Danielle S. Lahmani tar: archiving files (continued) –t generates table of contents –r unconditionally appends the listed files to the archive files –u appends only files that are more recent than those already archived –L follow symbolic links –m do not restore file modification times –l print error messages about links it cannot find

2000 Copyrights, Danielle S. Lahmani cpio:copying files cpio copy file archives in from or out of tape or disk or to another location on the local machine cannot write to multiple volumes –cpio -idtu [patterns] –cpio -ov –cpio -pl directory

2000 Copyrights, Danielle S. Lahmani cpio (continued) cpio -i [dtu] [patterns] –copy in (extract) files whose names match selected patterns. –If no pattern is used, all files are extracted –During extraction, older files are not extracted (unless -u option is used)

2000 Copyrights, Danielle S. Lahmani cpio (continued) cpio -ov copy out a list of files whose names are given on the standard input. cpio -p [options] directory copy files to another directory on the same system. Destination pathnames are relative to the named directory examples:to move a directory tree: $find. -depth -print | cpio -pdumv /mydir

2000 Copyrights, Danielle S. Lahmani cron utility How to set up cron jobs: –set up a file of commands in the crontab format and install it so the job can run again and again at defined intervals create crontab file and install them in $HOME directory –crontab -e

2000 Copyrights, Danielle S. Lahmani Crontab entry 6 fields –minutes –hours 0-23 –days/month 1-31 –months 1-12 –days/week 0-6 (Sunday is 0) –job to be executed * all legal values “,” multiple entries are separated by comma

2000 Copyrights, Danielle S. Lahmani Crontab Entry example * * 1,2,3,4,5 /usr/backup run /usr/backup at 5pm Monday-Friday every week, in every month in every year