Introduction to Unix - PowerPoint PPT Presentation

1 / 40
About This Presentation
Title:

Introduction to Unix

Description:

Start the Telnet or SSH Client programs. ... Press C to compose. a message. 34. 1. enter the email address. 2. enter the subject ... – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 41
Provided by: deptsc9
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Unix


1
Introduction to Unix
  • Basic commands, email and text editing

2
How to connect to unix?
  • Start the Telnet or SSH Client programs.
  • Enter unixs or unixs.cis.pitt.edu for the Host,
    then click OK. (You may have to ask your
    instructor for this information)
  • Enter your username and password.

3
SSH Client/Telnet are programs used to connect
to a remote computer
4
Computers I have connected to in the past
5
(No Transcript)
6
Unix Commands
  • ls
  • cat or more
  • cp
  • mv
  • rm
  • mkdir
  • rmdir
  • cd
  • lpr
  • pwd
  • chmod
  • directory listing
  • display a file
  • copy a file
  • move a file
  • delete a file
  • create a directory
  • remove a directory
  • change directory
  • print a file
  • print working directory
  • change file protection

7
Unix Commands ...
  • finger
  • man
  • unzip
  • telnet
  • ftp
  • displays info about a user
  • displays info about a command
  • restores a compressed file to its original form
  • start a login session on a remote computer
  • transfer files betweencomputer systems

8
Sample Directory Structure

public
private
exams
cs401
html
cs110
9
Unix Directories
  • Your root directory is represented by the tilde
    character or your.username.
  • public is a special directory used to make your
    files available to others.
  • private is a special directory used to protect
    your files from being accessed by others.

10
Command Syntax
  • Change directory cd name.of.directory.or.path
    Examples cd public cd /public/cs110
    (note / separates directories) cd .. cd
  • Present working directory pwd

11
where am I?
change directory (go down one level at a time)
list files
12
Command Syntax ...
  • Directory listing ls
  • Display entire file cat name.of.file
  • Display a file one page at a time more
    name.of.file

13
display file
use spell checker
go up one level
go to the root
14
Command Syntax ...
  • Make a directory mkdir name.of.directory Exa
    mples mkdir PICTURES
  • Move a file mv name.of.file
    destination Examples move knot.jpg to the
    PICTURES directory mv knot.jpg
    pictures rename inp.dat as hw1.dat mv
    inp.dat hw1.dat

15
change directory
make a new directory
16
rename inp.dat as hw1.dat
17
move knot.jpg to the PICTURES directory
18
Command Syntax ...
  • Copy a file cp source.file
    destination.file Examples cp hw1.dat inp.dat
  • Remove a file rm name.of.file Examples rm
    hw1.dat

19
A file and its duplicate
delete a file
20
Command Syntax ...
  • Remove directory rmdir name.of.directory
  • Print a text file lpr -Plab.abbreviation
    name.of.file Examples lpr -Pcl
    hawking.doc lpr -Pfq hw1.dat
  • Exit unix logout

21
remove directory
exit unixs
22
Command Syntax ...
  • Find information about a user finger
    name.or.username Examples finger
    jon.cardella finger labst23
  • Get help on a command man command Examples
    man ls man lpr

23
search for an email address
24
ask for help on the cat command
25
Creating/editing a text file in unix
  • pico is a program used to create and edit text
    files. Pico has a spell checker for correcting
    spelling errors and the word wrap feature making
    entering text easy. pico name.of.file.to.crea
    te.or.edit

26
starting pico
27
cursor
files name
commands
28
enter text
press CTRL-X to save this file then exit pico
29
newly created file
30
pico Commands
  • CTRL-GCursor movements
  • CTRL-F
  • CTRL-B
  • CTRL-A
  • CTRL-E
  • CTRL-V
  • CTRL-Y
  • help
  • to the right
  • to the left
  • to beginning of line
  • to end of line
  • page down
  • page up

31
pico Commands ...
  • CTRL-W
  • CTRL-L
  • CTRL-D
  • CTRL-K
  • CTRL-U
  • CTRL-R
  • CTRL-T
  • CTRL-O
  • CTRL-X
  • search for text
  • refresh display
  • delete character
  • delete a line
  • undelete a line
  • insert file at the cursor
  • start spell checker
  • save, dont exit pico
  • save and exit pico

32
Sending electronic mail
  • pine is a program used to send and receive
    electronic mail. pine

33
Press C to compose a message
34
1. enter the email address 2. enter the
subject 3. enter the message
my signature
35
press CTRL-X to send this message
36
Press I to see your incoming messages
37
press ENTER to read this message
38
customize your mail
39
create or modify your signature
40
Change your password
Write a Comment
User Comments (0)
About PowerShow.com