Title: Introduction to Unix
1Introduction to Unix
- Basic commands, email and text editing
2How 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.
3SSH Client/Telnet are programs used to connect
to a remote computer
4Computers I have connected to in the past
5(No Transcript)
6Unix 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
7Unix 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
8Sample Directory Structure
public
private
exams
cs401
html
cs110
9Unix 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.
10Command Syntax
- Change directory cd name.of.directory.or.path
Examples cd public cd /public/cs110
(note / separates directories) cd .. cd - Present working directory pwd
11where am I?
change directory (go down one level at a time)
list files
12Command Syntax ...
- Directory listing ls
- Display entire file cat name.of.file
- Display a file one page at a time more
name.of.file
13display file
use spell checker
go up one level
go to the root
14Command 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
15change directory
make a new directory
16rename inp.dat as hw1.dat
17move knot.jpg to the PICTURES directory
18Command 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
19A file and its duplicate
delete a file
20Command 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
21remove directory
exit unixs
22Command 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
23search for an email address
24ask for help on the cat command
25Creating/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
26starting pico
27cursor
files name
commands
28enter text
press CTRL-X to save this file then exit pico
29newly created file
30pico 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
31pico 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
32Sending electronic mail
- pine is a program used to send and receive
electronic mail. pine
33Press C to compose a message
341. enter the email address 2. enter the
subject 3. enter the message
my signature
35press CTRL-X to send this message
36Press I to see your incoming messages
37press ENTER to read this message
38customize your mail
39create or modify your signature
40Change your password