Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
15Activity
0 of .
Results for:
No results containing your search query
P. 1
Bash Shell Referance

Bash Shell Referance

Ratings: (0)|Views: 450|Likes:
Published by jwzumwalt
A Linux Administrator's quick guide to the most important Bash shell commands and concepts.
A Linux Administrator's quick guide to the most important Bash shell commands and concepts.

More info:

Categories:Types, Research, Science
Published by: jwzumwalt on Jan 04, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/29/2012

pdf

text

original

 
 
This and many other develope references available athttp:/neatinfo.com/d
 
ev_notes/_cheat-sheets 
 
 
NeatInfo.com - by: Jan Zumwalt May 15, 2012BASH SHELL Reference Copyright © 2002-2012Pg 2 of 45
Notes: __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________ __________________________________________________________
 
 
NeatInfo.com - by: Jan Zumwalt May 15, 2012BASH SHELL Reference Copyright © 2002-2012Pg 3 of 45
Table of Contents
Table of Contents ........................................... 3
 
Commands & Programs - Alphabetical ......... 4
 
Langauages ..................................................... 4
 
Commands & Programs - by Function ............ 5
 
Archives ........................................................... 5
 
Communication & Network ............................... 5
 
Edit & View ....................................................... 5
 
File & Dir Management ..................................... 5
 
Languages ....................................................... 5
 
Office Utilities ................................................... 5
 
Printer .............................................................. 5
 
Process Management ....................................... 6
 
Search and Patterns ......................................... 6
 
System Administration ...................................... 6
 
Basic Directory Structure ................................ 7
 
Common Backup Directories ............................ 7
 
Log files ........................................................... 7
 
Spool files ........................................................ 7
 
Configuration files ............................................. 8
 
Device files ....................................................... 8
 
Other Important files ......................................... 9
 
X Window files .................................................. 9
 
Special Characters ....................................... 10
 
Input/Output .................................................. 10
 
Preset Shell Parameters ............................... 10
 
Login environment .......................................... 11
 
Shell internal settings ..................................... 11
 
Process ID variables....................................... 12
 
ksh/bash additional features ........................... 12
 
Bash Shell Concepts .................................... 13
 
Syntax ............................................................ 13
 
Bash Startup & Kill ........................................ 13
 
Configuration Files ......................................... 13
 
Invoking Shell ................................................. 14
 
‘dot’ Command ............................................... 14
 
XWindow & KDE Startup ................................ 15
 
Background Processing .................................. 15
 
Terminating a Process .................................... 15
 
Environment ................................................... 15
 
Built-in Shell Commands .............................. 17
 
Parameters & Variables ................................ 18
 
Assigning a Variable ....................................... 18
 
Referencing a Variable ................................... 18
 
Special Variables............................................ 18
 
Position Parameters ....................................... 19
 
Shift Command .............................................. 19
 
Set Command ................................................ 19
 
Conditional Use of Variables........................... 20
 
The Environment .......................................... 21
 
Exported variables .......................................... 21
 
Common shell variables .................................. 21
 
Regular Expressions ....................................... 21
 
Wild Cards ................................................... 22
 
Wild Strings .................................................... 22
 
Wild Character ................................................ 22
 
Match Lists ..................................................... 22
 
Quoting ........................................................ 23
 
Single Quotes ................................................. 23
 
Double Quotes ................................................ 23
 
Single Character Escape ................................ 23
 
I/O Redirection ............................................. 24
 
Output Redirection .......................................... 24
 
Input Redirection ............................................. 25
 
Here Documents ............................................. 25
 
Pipes — Connecting Commands .................... 26
 
Unix Commands ........................................... 27
 
Search Order .................................................. 27
 
Chmod Command ........................................... 27
 
Echo ............................................................... 27
 
Expr ................................................................ 28
 
False .............................................................. 30
 
True ................................................................ 30
 
Go Function .................................................... 30
 
redo ................................................................ 31
 
Kill .................................................................. 31
 
Shutdown ....................................................... 32
 
Set Command ................................................. 32
 
Test ................................................................ 33
 
Trap Command ............................................... 34
 
Conditional Statements ................................ 34
 
If Statement .................................................... 34
 
While Statement ............................................. 36
 
Until Command ............................................... 37
 
For Command ................................................. 37
 
Case Command .............................................. 37
 
Shell Functions ............................................. 38
 
Functions vs. Scripts ....................................... 38
 
Defining a Function ......................................... 38
 
Where to Define Functions .............................. 39
 
Status of Definitions ........................................ 39
 
Search Order................................................ 39
 
Command Line Shell Invoking ...................... 40
 
Invoking .......................................................... 40
 
Debugging .................................................... 41
 
Linux Bash Command Reference Sheet....... 42
 

Activity (15)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
donzqw8194 liked this
dayasc liked this
dayasc liked this
biafran5893 liked this
hawkhm97 liked this
juliartojosefus liked this
hlminh liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->