Next:
Contents
Contents
A Guide for Linux and the Department Computing Facilities
1
Amit Jain and John Rickerd
Last Revised: November 20, 2006
©
Amit Jain and John Rickerd
Contents
Preface
Departmental Computing Facilities
Real Basics
Who to ask for help?
Beginner's Guide
Getting started
Logging in
Changing your password
Logging out of the system
Some basics
Correcting your typing
Special keys
Case sensitivity
On-line help
Files and directories
File names
Creating files and directories
Your current directory
Your home directory
Changing directories
Special directories
Special files
Other interesting directories
Viewing the contents of a text file
Listing files and directories
Wild-cards and file name completion
File protection
Copying files or directories
Renaming a file or directory:
Removing(Deleting) files or directories
Symbolic links and hard links
Editing files
The
Vim
file editor
The GNU
emacs
file editor
Printing files
Electronic mail
Text-based mail clients
Graphical mail clients
Forwarding email
Working on the Internet
Host-names and Internet addresses
Surfing the Internet
File transfer
Remote access
ssh
telnet
Linux graphical user interfaces
Cut and paste using a mouse
Working with the KDE desktop
Creating directories in the KDE file browser
Creating shortcuts on the KDE desktop
Using CDs, DVDs, floppies
Copying a directory to a CD
Copying CDs
Playing a movie
Viewing a collection of photos
Editing photos
Rotating a photo
Changing brightness of a photo
Cropping a photo
Screenshot
Running remote graphical programs
Other useful GUI programs
Viewing postscript and PDF files
Advanced User's Guide
Packing up and backing up your files
Archiving files with
tar
Compressing files with
gzip
Compressing files with
bzip2
Backing up your files
Recovering lost files
Other useful commands
Obtaining information about other users
Changing your personal information
Changing your login shell
Disk quota
Checking disk usage
Counting the number of characters, words and lines
Finding patterns in files using your buddy
grep
Locating files in the system
Finding files in your home directory
Using
find
for useful tasks
Sorting files
Displaying the last few lines in a file
Finding the differences between two text files
Finding the differences between two binary files
Time a command or a program
Spell checking
Finding the date and the time
Watching a command
Recording a terminal session
Compiling, linking, running and debugging C, C++ programs
cdecl: a tool for help with C/C++
Improving your productivity
Repeating and editing previous commands
Input-Output redirection
Processes
Creating and managing processes
Killing processes
Playing Lego in UNIX
Running commands in series
Combining commands using pipes
Customizing your shell
Startup or run control files
Changing your shell prompt
Setting the path: how the shell finds programs
Aliases
Customizing ls
Enhancing cd
Filters: cool objects
Character transliteration with
tr
Comparing sorted file with
comm
Stream editing with
sed
String processing with
awk
Shell programming
Creating new commands
Command arguments and parameters
Program output as arguments
Shell metacharacters
Shell variables
Loops and condition statements in shell programs
Arithmetic in shell scripts
Interactive programs in shell scripts
Useful commands for shell scripts
The
basename
command
The
test
command
More shell script examples
Printing with proper tab spaces
Simple test script
Changing file extensions in one fell swoop
Replacing a word in all files in a directory
Counting files greater than a certain size
Counting number of lines of code recursively
Backing up your files periodically
Backing up your files with minimal disk space
Backing up only files that have changed
Watching if a user logs in or logs out
Functions
Further Exploration
Bibliography
About this document ...
Amit Jain 2006-11-20