www.Tutorialsforu.info

Free Tutorials Cave

  • Increase font size
  • Default font size
  • Decrease font size
Your Ad Here



Shell Scripting



Aliases in Shell Script

E-mail Print

Aliases in Shell Script

 

              A Bash alias is essentially nothing more than a keyboard shortcut, an abbreviation, a means of avoiding typing a long command sequence. If, for example, we include alias lm="ls -l | more" in the ~/.bashrc file, then each lm typed at the command line will automatically be replaced by a ls -l | more. This can save a great deal of typing at the command line and avoid having to remember complex combinations of commands and options. Setting alias rm="rm -i" (interactive mode delete) may save a good deal of grief, since it can prevent inadvertently losing important files.

Read more...
 

Functions in Shell Scripting

E-mail Print

Functions in Shell Scripting

 

Table of Contents
1. Complex Functions and Function Complexities
2. Local Variables
3. Recursion Without Local Variables

Like "real" programming languages, Bash has functions, though in a somewhat limited implementation. A function is a subroutine, a code block that implements a set of operations, a "black box" that performs a specified task. Wherever there is repetitive code, when a task repeats with only slight variations in procedure, then consider using a function.

 

Read more...
 

Process Substitution

E-mail Print

Process Substitution

 

                       Piping the stdout of a command into the stdin of another is a powerful technique. But, what if you need to pipe the stdout of multiple commands? This is where process substitution comes in.

Process substitution feeds the output of a process (or processes) into the stdin of another process.

 

Read more...
 

Restricted Shells

E-mail Print

Restricted Shells

 

Disabled commands in restricted shells

                      . Running a script or portion of a script in restricted mode disables certain commands that would otherwise be available. This is a security measure intended to limit the privileges of the script user and to minimize possible damage from running the script.

 

Read more...
 

Subshells in Shell Scripting

E-mail Print

Subshells in Shell Scripting

 

                      Running a shell script launches a new process, a subshell.

Read more...
 


Page 3 of 8

Subscribe By Email

Enter your email address:

Delivered by FeedBurner

Translate

Donate

Development & maintainance needs time & money.
With your donation you can help us to keep this project alive
Donate:
  Monthly Monthly
Currency
Amount