Next:
Customizing your shell and
Up:
A Guide for Linux
Previous:
Viewing postscript and PDF
Contents
Advanced User's Guide
Subsections
Customizing your shell and improving productivity
Startup or run control files
Changing your shell prompt
Setting the path: how the shell finds programs
Aliases
Customizing ls
Enhancing cd using a stack
Repeating and editing previous commands
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
Finding the date and the time
Recording a terminal session
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
Watching a command
Filters: cool objects
Character transliteration with
tr
Comparing sorted file with
comm
Stream editing with
sed
String processing with
awk
Processes and Pipes
Input-Output redirection
Processes
Creating and managing processes
Killing processes
Playing Lego in Linux
Running commands in series
Combining commands using pipes
Shell programming
Creating new commands
Command arguments and parameters
Program output as an argument
Shell metacharacters
Shell variables
Loops and conditional statements in shell programs
Arithmetic in shell scripts
Interactive programs in shell scripts
Useful commands for shell scripts
The
basename
command
The
test
command
Functions
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
Watching if a user logs in or logs out
Amit Jain 2013-04-22