Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.

Slides:



Advertisements
Similar presentations
Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
Advertisements

Basic Unix system administration
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Fall 2006.
Chapter One The Essence of UNIX.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
Professor Michael J. Losacco CIS 1110 – Using Computers Operating Systems & Utility Programs Chapter 7.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 8: Troubleshooting Storage Devices and Display Devices.
Exploring the UNIX File System and File Security
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Linux+ Guide to Linux Certification, Second Edition
A Guide to Unix Using Linux Fourth Edition
Lesson 22 – Introduction to Linux Systems Administration.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Operating Systems Operating System
© Paradigm Publishing Inc. 4-1 Chapter 4 System Software.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
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.
A Guide to Unix Using Linux Fourth Edition
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Chapter 4 System Software.
Introduction to Shell Script Programming
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
University of Management & Technology 1 Operating Systems & Utility Programs.
Chapter 8: Operating Systems and Utility Programs Catherine Gifford Dan Falgares.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
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.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
© Paradigm Publishing Inc. 4-1 OPERATING SYSTEMS.
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Review Chapters 5 thru 8. 2 Two Groups of Commands Select commands Manipulate and Format commands.
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
© Paradigm Publishing, Inc. 4-1 Chapter 4 System Software Chapter 4 System Software.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Linux Commands C151 Multi-User Operating Systems.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
– Introduction to the Shell 1/21/2016 Introduction to the Shell – Session Introduction to the Shell – Session 3 · Job control · Start,
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.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Systems Software. Systems software Applications software such as word processing, spreadsheet or graphics packages Operating systems software to control.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
An operating system (OS) is a collection of system programs that together control the operation of a computer system.
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
Functions of Operating Systems V1.0 (22/10/2005).
Linux Filesystem Administration
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
A Guide to Unix Using Linux Fourth Edition
TexPREP Summer Camp Computer Science
Chapter 3 Software Interfaces.
Exploring the UNIX File System and File Security
Chapter Four UNIX File Processing.
Presentation transcript:

Chapter Eight Exploring the UNIX Utilities

2 Lesson A Using the UNIX Utilities

3 Objectives Understand what UNIX utilities are available and the classifications of utilities Make a bootable floppy disk to boot the system in case of an emergency Duplicate files on a floppy disk

4 Objectives Determine hard disk usage and available free space Locate and remove unnecessary files from the hard disk Display the CPU status and internal memory usage

5 Understanding UNIX Utilities UNIX utilities let you create and manage files, run programs, produce reports, and generally interact with the system They also offer a full range of services that let you monitor and maintain the system and recover from a wide range of errors Utility programs are vital for working through an OS and new utilities are continually being added in order to make UNIX run more efficiently

6 Understanding UNIX Utilities UNIX utilities are classified into seven major function areas dictated by user needs –File processing –System status –Networking –Communications –Programming –Source code management –Miscellaneous

7

8

9

10

11

12

13

14

15 Using the File Processing Utilities The dd command allows you to copy a file and change the format of the destination file The dd command possesses a rich set of options that allow it to handle copies when other methods are inappropriate An advantage to using the dd command over cp is that all users, not just the administrator, can copy files to and from the floppy drive

16 Making a Bootable Floppy Disk It is a good idea to make a bootable floppy disk, because a computer problem may prevent you from starting UNIX from the system To make a bootable floppy disk, use four utility programs: rdev, mkfs, fdformat, dd

17 Making a Bootable Floppy Disk The rdev command queries and sets the root device, which is the hard disk partition that houses UNIX’s root file system The mkfs command builds a UNIX or Linux file system on a device such as a floppy disk or a hard disk partition The fdformat command formats a floppy at low levels to ensure the media is clear of defects and is writeable Use the dd command to make a back-up copy of a floppy disk

18 Making a Bootable Floppy Disk The file system type determines how UNIX reads and writes information from or onto the device

19 Making a Bootable Floppy Disk After creating a bootable disk, it can be used to start the system

20 Checking Hard Disk Usage To maintain adequate hard disk free space, use these strategies: –Be vigilant against running dangerously low on free space by using the df command –Watch for conspicuous consumption using the du command –Follow a routine schedule for “garbage” collection and removal by using the rm command

21 Using the df Utility The df utility reports on the status of 1024-byte blocks

22 Using the df Utility The df –h option causes the block data to display in human-readable form

23 Using the df Utility The du utility summarizes disk usage, expressed in 512-byte blocks (default) or by the number of bytes (-b option)

24 Using the df Utility...the second screen resulting from using | more

25 Removing Garbage Files Garbage files are temporary files that lose their usefulness after several days Two examples of garbage files are core files (named core) and a.out files Use the find command to assist you in locating these files and the rm command to remove them

26 Applying System Status Utilities System engineers primarily use the data related to system status One of the most effective utilities for auditing system performance is the top command The top command displays a listing of the most CPU-intensive tasks, such as the processor state

27 Applying System Status Utilities The top utility run without any options specified

28 Applying System Status Utilities To kill the top utility process, enter k and specify the PID to terminate

29 Applying System Status Utilities You cannot kill the top utility when run in secure mode

30

31 Applying System Status Utilities The free utility displays the amount of free and used memory in the system

32 Applying System Status Utilities The ps command shows a list of processes associated with the current login session that are currently running

33 Applying System Status Utilities The ps command with the –A option shows a list of all system processes currently running

34 Lesson B Working with the Text-Formatting File Utilities

35 Objectives Check the spelling of text in a document Use the cmp command to compare the contents of two files Format text to create a man page Use the groff utility to test a man page you have created Use the man utility to view a man page you have created

36 Checking the Spelling of a Document Ispell scans a document, displays errors on the screen and suggests alternative spellings

37 Comparing Files Use the cmp utility to compare the contents of two files, and report the first difference between them The cmp command displays the character position and line number of this difference If there are no differences, the cmp command displays nothing

38 Formatting Text in UNIX Text formatting in UNIX involves preparing a text file with embedded typesetting commands and then processing the marked-up text file with a computer program UNIX’s nroff and troff commands are often used to process the embedded typesetting commands to format the output An embedded code is a special sequence of characters that is included with the regular text of the file

39 Formatting Text in UNIX Linux introduced groff, which implements the features of both nroff and troff

40 Formatting Text in UNIX Groff can be used to produce a man page that contains the standard man page sections

41 Formatting Text in UNIX Man pages are made available to others by having a supervisor user copy it to one of the man page directories

42 Chapter Summary UNIX utilities are classified into seven major functional areas dictated by user needs: file processing, networking, communications, system status, programming, source code, management, and miscellaneous tasks Utility programs are distinguished from other OS programs, because they are add-ons and not a part of the UNIX shells Because utility programs are executed by entering names on the command line, they are commonly referred to as commands

43 Chapter Summary The dd command possesses a rich set of options that allow it to handle copies when other copying methods fail To make a bootable floppy disk, use four utility programs: rdev, mkfs, fdformat, and dd The rdev command queries and sets the root device The fdformat command performs a low-level format on a floppy disk The mkfs utility sets up a file system

44 Chapter Summary The df utility checks and reports on free disk space The du command checks for disk usage Use the find command to retrieve wasteful files and then use the rm command to remove them The top and free utilities provide detailed views of the “internals” of the system Redirect output of the top and free commands to a disk file to use as input for a report to the system administrator

45 Chapter Summary Run a program in the background by appending the & operator to the end of a command line The ps command displays all processes currently running The kill command terminates a specific process The utility that checks spelling, ispell, scans a document for typing errors

46 Chapter Summary Text formatting involves embedding typesetting commands in a file, and then processing the the marked-up file with a program that generates commands for the output device The text containing the embedded typesetting commands is processed by a program like nroff and troff that formats the output Linux introduced groff, which implements the features of both nroff anf troff Those who have supervisor privileges most often create man pages