Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.

Slides:



Advertisements
Similar presentations
Basic Unix system administration
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.
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Fall 2006.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
A Guide to Unix Using Linux Fourth Edition
1 Web Server Administration Chapter 3 Installing the Server.
Lesson 22 – Introduction to Linux Systems Administration.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
Guide To UNIX Using Linux Third Edition
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
Chapter 8 Operating Systems and Utility Programs By: James Granahan.
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
Operating Systems Operating System
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Guide To UNIX Using Linux Fourth Edition
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
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
Introduction to Shell Script Programming
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
A Guide to Unix Using Linux Fourth Edition
University of Management & Technology 1 Operating Systems & Utility Programs.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Explain the purpose of an operating system
How Hardware and Software Work Together
Linux+ Guide to Linux Certification, Third Edition
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Chapter Two Exploring the UNIX File System and File Security.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
Process Control. Module 11 Process Control ♦ Introduction ► A process is a running occurrence of a program, including all variables and other conditions.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
Review Chapters 5 thru 8. 2 Two Groups of Commands Select commands Manipulate and Format commands.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
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.
Chapter 8 Operating Systems. Objectives Identify the types of system software Summarize the startup process on a personal computer Describe the functions.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
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.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 2.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
Agenda The Bourne Shell – Part I Redirection ( >, >>,
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
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.
Linux Filesystem Administration
Lecture-7 Introduction to DOS. Introduction to UNIX/LINUX OS.
Chapter Objectives In this chapter, you will learn:
Operating System Review
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
C151 Multi-User Operating Systems
A Guide to Unix Using Linux Fourth Edition
File Management.
Operating System Review
Exploring the UNIX File System and File Security
Chapter Four UNIX File Processing.
Presentation transcript:

Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities

Guide to UNIX Using Linux, Third Edition 2 Objectives Understand many of the UNIX/Linux utilities that are available and how they are classified Use the dd utility to copy and convert files dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=noerror Make a bootable removable disk Monitor hard disk usage

Guide to UNIX Using Linux, Third Edition 3 Objectives (continued) Use system status utilities Monitor and manage processes Check the spelling of text in a document Use the cmp command to compare the contents of two files Format text to create and use a man page

Guide to UNIX Using Linux, Third Edition 4 Understanding UNIX/Linux Utilities UNIX/Linux utilities let you –Create and manage files –Run programs –Produce reports –Monitor and maintain the system –Recover from a range of errors New utilities are continually being added in order to make UNIX/Linux run more efficiently

Guide to UNIX Using Linux, Third Edition 5 Understanding UNIX/Linux Utilities (continued) Classified into eight major areas: –File processing –System status –Networking –Communications –Security –Programming –Source code management –Miscellaneous

Guide to UNIX Using Linux, Third Edition 6 Classifying UNIX/Linux Utilities

Guide to UNIX Using Linux, Third Edition 7 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 8 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 9 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 10 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 11 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 12 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 13 Classifying UNIX/Linux Utilities (continued)

Guide to UNIX Using Linux, Third Edition 14 Using the dd Command Allows you to copy a file and change the format of the destination file Has a rich set of options 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

Guide to UNIX Using Linux, Third Edition 15 Making a Bootable Removable Disk Make a bootable floppy disk because a computer problem may prevent you from starting UNIX/Linux from the system Bootable floppy disks or CD-ROMs can be made using utilities provided by your version of UNIX/Linux –Often the mkbootdisk command

Guide to UNIX Using Linux, Third Edition 16 Making a Bootable Removable Disk (continued) Find the kernel version and create a floppy boot disk

Guide to UNIX Using Linux, Third Edition 17 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 find and rm commands

Guide to UNIX Using Linux, Third Edition 18 Using the df Utility The df utility reports on the status of 1024-byte blocks that are allocated, used, and available

Guide to UNIX Using Linux, Third Edition 19 Using the du Utility The du utility summarizes disk usage, expressed in 512-byte blocks (default) or by the number of bytes (-b option)

Guide to UNIX Using Linux, Third Edition 20 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

Guide to UNIX Using Linux, Third Edition 21 Removing Garbage Files (continued)

Guide to UNIX Using Linux, Third Edition 22 Using System Status Utilities System status commands reflect the system’s performance System engineers primarily use the data related to system status Good to know how to obtain and store relevant information to send to system administrator and tune-up specialists

Guide to UNIX Using Linux, Third Edition 23 Using the top Command 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 in real time Updates every five seconds by default

Guide to UNIX Using Linux, Third Edition 24 Using the top Command (continued) The top utility run without any options specified

Guide to UNIX Using Linux, Third Edition 25 Using the uptime Command Uptime tells you how long a system has been running since the last time it was booted Displays current time, how long the system has been up, number of users on the system, and the load average for 1, 5, and 15 minutes

Guide to UNIX Using Linux, Third Edition 26 Using the free Command The free utility displays the amount of free and used memory in the system

Guide to UNIX Using Linux, Third Edition 27 Forwarding top and free Output When problems arise with performance, may need to forward top and free output to support person Use redirection (>) to store outputs in files

Guide to UNIX Using Linux, Third Edition 28 Managing Processes A process is identified through a unique number called a process id (pid) Unix/Linux offer utilities to run, monitor, and kill processes using pids

Guide to UNIX Using Linux, Third Edition 29 Running Processes in the Background Can run a process in the background while working with another program in the foreground To run a program in the background, append the & character to end of the startup command, e.g., top&

Guide to UNIX Using Linux, Third Edition 30 Monitoring Processes The ps command with the -A option shows a list of all system processes currently running

Guide to UNIX Using Linux, Third Edition 31 Killing Processes Administrator with root privileges can kill any user’s processes User can kill owned processes Use kill command with the pid of the process Use kill –9 to stop a process that doesn’t respond to an initial kill command

Guide to UNIX Using Linux, Third Edition 32 Checking the Spelling of a Document ispell scans a document, displays errors on the screen and suggests alternative spellings

Guide to UNIX Using Linux, Third Edition 33 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 position and line number of this difference If there are no differences, the cmp command displays nothing

Guide to UNIX Using Linux, Third Edition 34 Formatting Text in UNIX/Linux Text formatting in UNIX/Linux involves preparing a text file with embedded typesetting commands and then processing the file UNIX’s nroff and troff commands were the early standard in formatting programs An embedded code is a special sequence of characters that is included with the regular text of the file

Guide to UNIX Using Linux, Third Edition 35 Formatting Text in UNIX/Linux (continued) Linux introduced groff, which implements the features of both nroff and troff

Guide to UNIX Using Linux, Third Edition 36 Formatting Text in UNIX/Linux (continued) Groff can be used to produce a man page that contains the standard man page sections

Guide to UNIX Using Linux, Third Edition 37 Formatting Text in UNIX/Linux (continued) Man pages are made available to others by having a privileged user copy it to one of the man page directories

Guide to UNIX Using Linux, Third Edition 38 Chapter Summary UNIX/Linux utilities are classified into eight major functional areas Utility programs are called commands: executed by entering names on the command line dd command options allow it to handle copies when other copying methods fail To make a bootable removable disk, use provided utilities such as mkbootdisk

Guide to UNIX Using Linux, Third Edition 39 Chapter Summary (continued) df checks and reports on free disk space du checks for disk usage Use find to retrieve temporary files and use rm to remove them top and free provide detailed views of the “internals” of the system that can be redirected to a file for system tune-up

Guide to UNIX Using Linux, Third Edition 40 Chapter Summary (continued) Run a program in the background by appending & to the end of a command ps displays all running processes kill terminates a specific process ispell scans for spelling errors Text formatting involves –Embedding typesetting commands in a file –Processing the file with a program that generates commands for the output device

Guide to UNIX Using Linux, Third Edition 41 Chapter Summary (continued) Linux introduced groff, which implements the features of both nroff and troff Text formatted with groff can be used to create new man pages