ITSK 1601 Introduction to UNIX Chapter 3 An Introduction To The Utilities Instructor: Thelma Jones - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

ITSK 1601 Introduction to UNIX Chapter 3 An Introduction To The Utilities Instructor: Thelma Jones

Description:

Linux includes a family of several hundred utility programs, often referred to as commands. ... Compress or decompress files (page 755) ... – PowerPoint PPT presentation

Number of Views:110
Avg rating:3.0/5.0
Slides: 15
Provided by: ccs47
Category:

less

Transcript and Presenter's Notes

Title: ITSK 1601 Introduction to UNIX Chapter 3 An Introduction To The Utilities Instructor: Thelma Jones


1
ITSK 1601 Introduction to UNIXChapter 3An
Introduction To The UtilitiesInstructor
Thelma Jones
2
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Linux Utilities Linux includes a family of
several hundred utility programs, often referred
to as commands. These utilities perform functions
that are universally required by users. Linux
utility programs allow you to work with Linux and
manipulate the files you create.
3
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Help Utilities Help utilities obtain information
about user and system Information. The help
command displays information about a specific
utility. EX who --help The man command
displays information from the system manual.
EX man who The Info command is a hypertext
system that you can call from the emacs editor or
from the prompt. EX info
4
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
File Operations List information about one or
more files in a directory (page 776) ls
options file-list Copy a file (page 692)
cp source-file destination-file Rename a file
(page 801).
mv existing-filename new-filename Display a
Text File (page 672) cat options
file-list Look at the Top of a File (page 758)
head options file-list
5
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
File Operations Contd Look at the End of a File
(page 869) tail options
file-list Find a string of characters (global
regular expression print (page 751)
grep options pattern
file-list To sort and/or merge one or more text
files in sequence (page 856)
Sort options
field-specifier-list file-list Display lines
of a file that are unique (page 893)
Uniq options input-file output-file
6
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
File Operations Contd Displays the differences
between two files on a line by line basis (page
715) diff options file1 file2 Display the
classification of a file (page 729).
File options file-list View a text file one
screenful at a time (page 37). To see an EOF
and press q to quit display use ? Less file

For automatic return to the shell
use ? More file To delete
a file (page 37). rm file
7
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Print Utility The Print Utility is lpr (page
43). Example lpr
Pmailroom chapter03 It allows queuing printer
output so that only one job gets printed at a
time. To see what jobs are printing in the print
queue use the command lpq. Example
lpq To send more than one job to the printer by
using the lpr command and listing all print jobs,
separating each print job with a space.
Example lpr Pmailroom chapter03 copy.memo
rename.memo
8
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Echo Utility Display a message to the terminal
(page 723). The echo command copies its
arguments, followed by a newline, to standard
output. Syntax echo options message
9
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Date Utility Display or set the time and date
(page 709). The date utility displays the time
and date. The superuser can use it to cha ge
the time and date on the UNIX machine. Syntax
date options format date
options newdate
10
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Compress Utility Compress or decompress files
(page 755). The gzip utility compresses files,
reducing disk space requirements and the time
needed to transmit files between computers.
When compressing. It adds the a extension .gz
to the filename. To restore a file use the
command gunzip with the argument filename.gz (the
extention is optional). Compress Example gzip
options file-list
Restore Example gunzip options
file-list
11
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Tar Store or retrieve files to/from an archive
file. (page 872). The tar (tape archive) utility
can create, add to, list, and retrieve files from
an archive file. The archive file is often
stored on tape. Syntax tar option modifiers
file-list
12
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Finding Utilities and Other Files Find files
based on various criteria (page 730) The find
utility selects files that are located in
specified directories and are described by an
expression. Syntax find directory-list
expression
13
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
Communicating With Other Users Send a message to
another user (page 901) using the write utility
or the Talk utility. Enable/disable reception of
messages using the Mesg utility. Use the
electronic mail utility pine to send and receive
letters, memos, reminders, invitations, and even
junk mail.
14
Course ITSK 1601 Introduction to
UNIXChapter 3 An Introduction to The Utilities
The End Instructor Thelma Jones Room
TEC-105 Phone (770) 961-3636 Email
thelmajones_at_mail.clayton.edu Website
http//newcollege.clayton.edu/tjones/
Write a Comment
User Comments (0)
About PowerShow.com