Next:
List of Tables
Up:
Basic Introduction to UNIX/linux
Previous:
Basic Introduction to UNIX/linux
Contents
List of Tables
List of Figures
Introduction
History
BSD: Berkeley System Distribution
XENIX
Linux
System V (formerly known as ``AT&T" System V)
History (continued)
The UNIX Operating System
Multi-tasking, Time Sharing
Multi-user
Network Capabilities
Portability
Flexibility
Software Available
Virtual Memory
Case Sensitivity
UNIX Philosophy
Exercises
File System
File and Directory Names
Length
Conventions
Structure of Directories, Files
Permissions/File Access Modes
chmod: Change Mode (Permissions)
Exercises
Tour of the File system
/: Root
/bin and /usr/bin: Commands
/dev: Devices
/etc and /usr/etc: Management
Home Directories
/lib and /usr/lib: Libraries
/tmp: Temporary Directories
/var: Directories
/var/adm: Administration
/var/mail: System Mailboxes
/var/spool: Spooling Areas
/var/tmp: Temporary Directory
/usr: Directories
/usr/bsd: Berkeley Binaries
/usr/demos: Demonstration
/usr/include: Include Files
/usr/local: Local Programs
/usr/sbin: More Binaries
/usr/share: Shareable Directories
/usr/tmp: Temporary
Exercises
Shells
Input/Output Redirection
: Input Redirection
, : Standard Output
2, &: Standard Diagnostic (Error) Output
: Pipes
Pipes and Redirections
&: Background Processing
Metacharacters (Wildcards)
: Any Character(s)
[,]: List of Characters
: Any Single Character
{,}: Alternatives (except Korn Shell)
: Escape
Shell/Job Control
jobs: list background jobs
CTL-Z: suspend a job
bg: send a job in the backgroup
fg: bring a job in the foreground
CTL-C: kill a job
Sample session
C Shell
path: Search Path
history
alias
Tenex Shell
Bourne Shell
PATH
history
alias
Korn Shell
PATH: Search Path
history
aliases
Other Miscellaneous Commands
Bash Shell
PATH: Search Path
history
aliases
Exercises
Basic Security
File Permissions
Passwords
Root Password
SSH
TCP Wrappers
Exercises
Commands I
A Command is a File
Syntax
Login Related Commands
Logging On
Changing Password
Logging Out
Help
man: Manual Pages
Manuals on CDs
File system Commands: Directories
cd: Change Directory
mkdir: Make Directory
rmdir: Remove Directory
pwd: Print Working Directory
cp: Copy
mv: Move
File system Commands: Files
ls: Listing
cp: Copy
mv: Move
ln: Link
touch: Update
rm: Remove
cat: Concatenate
more: Browser
head: Header
tail: Tail End
wc: Word Count
diff: Difference
file: Type of File
Printer Commands (Berkeley; lpr/lprm)
lpr: Line Printer
lpq: Line Printer Queue, Statistics
lprm: Line Printer Remove
Printer Commands (System V; lp/cancel)
lp: Line Printer
lpstat: Line Printer Queue, Statistics
cancel: Line Printer Remove
Printer Commands (linux; kprinter)
User Related Commands
who: Who is On
who am i, whoami: Who Am I
Other Miscellaneous Commands
date: Display Date
clear: Clear the Screen
Exercises
Editors
``ed" Editor
Accessing ed
Moving Within a File
Finding a Pattern
``s" Substitute
``c" Change Line
``a" Append Text
``i" Input Text
``." Current Line
``p" Print Line(s)
``d" Delete
``w" Write
``q" Quit
``vi" Visual Editor - Introduction
Invoking vi
vi, command and input modes
``vi" visual Editor - vi mode
Moving the Cursor
``^ f" Forward One Screen
``^ b" Backwards One Screen
``G" End of File
``x, d" Delete Character
``dd" Delete Line
``yy" Copy Line in buffer
``p" Put Buffer
``u" Undo
``." (dot) Repeat
``vi" visual Editor - command mode
``:q" Quit
``:w" Write
``:r" Read
``:num" Line Number
``/string/" Finding a Pattern
``n" Next
:set all
``vi" visual Editor - input mode
``i" Insert Mode
``a" Append to Character Mode
``A" Append to Line Mode
``r" Replace Character
``R" Replace Characters
``cw" Change Word
Other Editors
GNU Emacs
textedit
jot
vuepad
nedit
pico
Exercises
Electronic Mail
Mail at NRC
Internet node: Machine Naming Convention
Mail Forwarders
Mail Folders
Signature Files
Mail Aliases
MIME: Multi-purpose Internet Mail Extensions
.forward: Forwarding Mail
.vacation: I'm away from my desk
Securely Accessing POP/IMAP Mailboxes
SSH tunneling of email from UNIX to UNIX
SSH tunneling of email from a Windows application to UNIX
fetchmail: bring remote mail to local system
The Berkely (BSD) Mail Interface
Sending Mail
Reading Mail
Configuring Mail Behaviour
Mail Folders
Mail Aliases
MIME: Multi-purpose Internet Mail Extensions
ELM: ELectronic Mail
Sending Mail
Reading Mail
Configuring Mail Behaviour
Mail Folders
Mail Aliases
MIME: Multi-purpose Internet Mail Extensions
The Pine mail interface
Sending Mail
Reading Mail
Configuring Mail Behaviour
Mail Folders
Mail Aliases
MIME: Multi-purpose Internet Mail Extensions
Exercises
Commands II
Location Commands
whereis: Where Is
which: Which Program
find: Find
locate: find files
Process Commands
ps: Process Status
kill: Kill Process
Verifying System Behaviour
df: Disk Space
du: Directory Usage
top: Show Top Processes
sar: System Activity Report
swap/swapon: Virtual memory
Exercises
Solutions to Exercises
Introduction
File System
Tour of the File system
Shells
Security
Commands I
Editors
Electronic Mail
Commands II
vi Quick Reference
Bibliography
Bibliography
Claude Cantin 2010-10-24