Index
A
- a command
- using / Appending – the a command
- actions, awk
- defining / Actions
- address, stream editor (sed)
- about / Addressing in sed
- arithmetic expansion
- using / Using an arithmetic expansion
- arithmetic operations
- declare command, using / Using a command declare for arithmetic
- declared integer variables, listing / Listing integers
- let command, using / Using the let command for arithmetic
- expr command, using / Using the expr command for arithmetic
- arrays
- working with / Working with arrays
- initializing / Creating an array and initializing it
- creating / Creating an array and initializing it
- values, accessing / Accessing array values
- at command
- using / Understanding "at"
- awk
- using / Using awk, Using awk
- about / The meaning of awk
- input, using from files / Input from files
- input, using from commands / Input from commands
- working with / How awk works
- records / Records and fields
- field / Records and fields
- actions, defining / Patterns and actions, Actions
- patterns, defining / Patterns and actions
- regular expressions / Regular expressions
- script file, writing / Writing the awk script file
- variables, using / Using variables in awk
- if statement, used for decision making / Decision making using an if statement
- for loop, using / Using the for loop
- while loop, using / Using the while loop
- do while loop, using / Using the do while loop
- awk commands
- using, within file / awk commands from within a file
B
- Bash
- reference manual, URL / String comparison options for the test command
- Bash shell
- debugging options / Summarizing the debugging options for the Bash shell
- bc utility
- binary arithmetic operations / Binary, octal, and hex arithmetic operations
- binary file operators
- options / File testing binary operators
- options, URL / File testing binary operators
- Bourne Shell
- about / Comparison of shells
- break command
- used, for exiting from loop / Exiting from a loop with a break
C
- $ cd work command / Learning basic Linux commands
- $ cp hello.sh bye.sh command / Learning basic Linux commands
- case command
- used, for processing multiple decision-making operations / Switching case
- c command
- using / Changing – the c command
- check list box (checklist)
- creating / The checklist box (checklist)
- chmod command / Command chmod
- command
- substituting / Command substitution
- separators / Command separators
- grouping / Command grouping
- command interpretation, Shell
- about / Learning shell interpretation of commands
- execution sequence / Learning shell interpretation of commands
- internal commands, checking / Checking and disabling shell internal commands
- internal commands, disabling / Checking and disabling shell internal commands
- exit status / The exit status
- command line arguments
- commands
- exit status, checking / Checking the exit status of commands
- command separators
- about / Command separators
- ; / Command1; command2
- command1; command2 / Command1; command2
- command source
- used, for executing functions / Command source and period (.)
- comm command / The comm command
- compilation / Compiler and interpreter – difference in process
- conditional constructs
- about / Conditional constructs – if else
- configuration file
- used, for customizing dialog boxes / The progress meter box (gauge)
- continue command
- used, for exiting from current loop iteration / Exiting from the current loop iteration with the continue command
- used, for exiting from current loop iteration / Exiting from the current loop iteration with the continue command
- CPU usages
- crontab
- using / Understanding "crontab"
- cut command / The cut command
D
- daemon process / Introducing process basics
- data
- sharing, by multiple functions / Sharing the data by many functions
- d command
- using / Deleting – the d command
- debugging
- process / Debugging
- prerequisites / Debugging
- set command, using / Using the set command
- vi editor setting / The vi editor setting for debugging
- declare command
- using, for arithmetic operations / Using a command declare for arithmetic
- default parameters
- about / Understanding default parameters
- dialog boxes
- creating, with dialog utility / Creating dialog boxes with the dialog utility
- message box (msgbox), creating / Creating a message box (msgbox)
- message box (msgbox), creating with title / Creating a message box (msgbox) with a title
- yes/no box (yesno), creating / The yes/no box (yesno)
- input box (inputbox), creating / The input box (inputbox)
- textbox (textbox), creating / The textbox (textbox)
- password box, creating / A password box
- menu box (menu), creating / The menu box (menu)
- check list box (checklist), creating / The checklist box (checklist)
- radio list box (radiolist), creating / The radiolist box (radiolist)
- progress meter box (gauge), creating / The progress meter box (gauge)
- customizing, with configuration file / The progress meter box (gauge)
- diff command / The diff command
- directory structure, Linux
- /bin/ / Various directories
- /boot/ / Various directories
- /cdrom/ / Various directories
- /dev/ / Various directories
- /etc/ / Various directories
- /home/ / Various directories
- /lib/ / Various directories
- /media/ / Various directories
- /opt/ / Various directories
- /proc/ / Various directories
- /root/ / Various directories
- /sbin/ / Various directories
- /usr/ / Various directories
- /var/ / Various directories
- /sys/ / Various directories
- do while loop
- working with / Working with the do while loop
- using, in awk / Using the do while loop
E
- e command
- using / Multiple edits – the e command
- elif command / The if/elif/else command
- else command / The if/elif/else command
- environment variables
- working with / Working with environment variables
- local variable / The local variable and its scope
- exporting / Exporting variables
- exec command
- used, for file handling / Summarizing usage of the exec command
- used, for handling-related operations / Summarizing usage of the exec command
- exit command
- exit status / The exit status
- exit status, of commands
- checking / Checking the exit status of commands
- expr command
- using, for arithmetic operations / Using the expr command for arithmetic
F
- fields, awk
- about / Fields
- field separators / Field separators
- input field separator / The input field separator
- file
- writing / Understanding the opening, writing, and closing of a file, Understanding reading and writing to a file
- opening / Understanding the opening, writing, and closing of a file
- closing / Understanding the opening, writing, and closing of a file
- reading from / Understanding reading from a file, Understanding reading and writing to a file
- writing, to another file / Reading from one file and writing to another file
- reading, line by line / File handling – reading line by line
- command, executing / Executing the command and storing the results in a file
- results, executing / Executing the command and storing the results in a file
- modifying, with stream editor (sed) / How to modify a file with sed
- file descriptor / File descriptors
- file descriptor (fd)
- assigning, to file with exec command / Using exec to assign file descriptor (fd) to file
- read command, using / Using command read on file descriptor (fd)
- information, displaying from /proc folder / Displaying the file descriptor information from the /proc folder
- file handling
- about / File handling
- exec command / Introducing file handling
- exec command, used for assigning file descriptor(fd) to file / Using exec to assign file descriptor (fd) to file
- if command, using / File handling with the if command
- file permissions
- modifying / Changing file permissions
- changing, by symbolic method / Technique one – the symbolic method
- changing, by numeric method / Technique two – the numeric method
- file test options
- for test command / File test options for the test command
- file transfer protocol (FTP) / Using the << here operator for FTP usage and data transfer
- floating-point arithmetic / A floating-point arithmetic
- for command
- used, for looping / Looping with the for command
- for loop
- using, in awk / Using the for loop
- functions
- about / Understanding functions
- advantages / Understanding functions
- defining / Understanding functions
- displaying / Displaying functions
- removing / Removing functions
- arguments/arguments, passing / Passing arguments or parameters to functions
- data, sharing / Sharing the data by many functions
- local variables, declaring / Declaring local variables in functions
- information, returning / Returning information from functions
- word or string, returning / Returning a word or string from a function
- executing, in background / Running functions in the background
- executing, with commands source / Command source and period (.)
- executing, with period (.) / Command source and period (.)
- library of functions, creating / Creating a library of functions
- traps, using / Using traps in function
G
- gawk
- about / Using awk
- g command
- getopts
- about / Understanding getopts
- globally search for the regular expression (RE) and print out the line(g/RE/p) / Pattern searching using grep
- grep command
- used, for pattern searching / Pattern searching using grep
H
- << here operator
- used, for ftp usage / Using the << here operator for FTP usage and data transfer
- used, for data transfer / Using the << here operator for FTP usage and data transfer
- hardware interrupt
- about / Understanding signals and traps
- h command
- head command / Head and tail
- Hello World script
- writing / Our first script – Hello World
- here document
- about / The here document and the << operator
- and << operator / The here document and the << operator
- here operator
- using, with sort command / The here operator with the sort command
- using, with wc command / The here operator with the wc command
- and Utility ed / The utility ed and here operator
- here string
- using / The here string and the <<< operator
- and <<< operator / The here string and the <<< operator
- hex arithmetic operations / Binary, octal, and hex arithmetic operations
- holding buffer
I
- I/O redirection
- about / IO redirection, Redirection
- file descriptors / File descriptors
- commands / Redirection
- brace expansion / Brace expansion
- i command
- using / Inserting – the i command
- if command
- using / Conditional constructs – if else
- used, for file handling / File handling with the if command
- about / The if/elif/else command
- if construct
- used, for numerical decision making / Numerical handling if constructs
- used, for string handling / String handling with the if construct
- and multiple test commands / Multiple test commands and if constructs
- if statement
- using, in awk / Decision making using an if statement
- init process / The kernel startup and init process
- inittab
- input box (inputbox)
- creating / The input box (inputbox)
- interactive Shell scripts
- about / Interactive Shell scripts – reading user input
- read command, with options / Summarizing the read command with options
- internal commands, Shell
- checking / Checking and disabling shell internal commands
- disabling / Checking and disabling shell internal commands
- internal field separator (IFS)
- about / The IFS and loops, How awk works
- and loops / The IFS and loops
- interpreter / Compiler and interpreter – difference in process
- iostat command / Process monitoring tools – top, iostat, and vmstat
J
- join command / The join command
K
- Kernel start-up / The kernel startup and init process
L
- $ ll command / Learning basic Linux commands
- $ ls -a command / Learning basic Linux commands
- $ ls command / Learning basic Linux commands
- let command
- using, for arithmetic operations / Using the let command for arithmetic
- library of functions
- creating / Creating a library of functions
- Linux
- boot-up sequence / Introducing process basics
- Linux command
- loop output, redirecting to / Piping the output of a loop to a Linux command
- Linux commands
- $ ls / Learning basic Linux commands
- $ pwd / Learning basic Linux commands
- $ mkdir work / Learning basic Linux commands
- $ cd work / Learning basic Linux commands
- $ touch hello.sh / Learning basic Linux commands
- $ cp hello.sh bye.sh / Learning basic Linux commands
- $ mv bye.sh welcome.sh / Learning basic Linux commands
- $ ll / Learning basic Linux commands
- $ mv welcome.sh .welcome.sh / Learning basic Linux commands
- $ ls -a / Learning basic Linux commands
- $ rm .welcolme.sh / Learning basic Linux commands
- Linux system startup / System startup, inittab, and run levels
- local variable
- about / The local variable and its scope
- scope / The local variable and its scope
- local variables
- declaring, in functions / Declaring local variables in functions
- logical operators / Brace expansion
- about / Logical operators
- & / Command1
- && / Command1
- || / Command1 || command2
- options, URL / Logical test operators
- options / Logical test operators
- loop
- iteration, exiting with continue command / Exiting from the current loop iteration with the continue command
- exiting, with break command / Exiting from a loop with a break
- output redirecting, to Linux command / Piping the output of a loop to a Linux command
- running, in background / Running loops in the background
- and internal field separator (IFS) / The IFS and loops
- looping
- with for command / Looping with the for command
M
- $ mkdir work command / Learning basic Linux commands
- $ mv bye.sh welcome.sh command / Learning basic Linux commands
- $ mv welcome.sh .welcome.sh command / Learning basic Linux commands
- macros / Understanding "crontab"
- menu box (menu)
- creating / The menu box (menu)
- message box (msgbox)
- creating / Creating a message box (msgbox)
- creating, with title / Creating a message box (msgbox) with a title
- metacharacters
- * / Redirection, Pattern searching using grep
- ? / Redirection
- ; / Redirection
- | / Redirection
- () / Redirection
- ^ / Pattern searching using grep
- $ / Pattern searching using grep
- . / Pattern searching using grep
- [ ] / Pattern searching using grep
- [^] / Pattern searching using grep
- \< / Pattern searching using grep
- \> / Pattern searching using grep
- using / Understanding regular expression usage in sed
- monitoring tools, process
- top command / Process monitoring tools – top, iostat, and vmstat
- iostat command / Process monitoring tools – top, iostat, and vmstat
- vmstat command / Process monitoring tools – top, iostat, and vmstat
- multiple test commands
- and if construct / Multiple test commands and if constructs
N
- -n option
- used, for debugging shell / Debugging mode – disabling the shell (option -n)
- noexec / Debugging mode – disabling the shell (option -n)
- nohup command
- used, for running script when logged out / Running scripts or processes even if the user logs out
- used, for running process when logged out / Running scripts or processes even if the user logs out
- NR variable
- about / The NR variable
- null command / The null command
- null values
- checking / Checking for null values
- numerical comparison operators
- for test command / Numerical comparison operators for the test command
- numerical decision making
- with if constructs / Numerical handling if constructs
O
- <<< operator
- and here string / The here string and the <<< operator
- octal arithmetic operations / Binary, octal, and hex arithmetic operations
- orphan process / Introducing process basics
- output field separator (OFS)
- about / How awk works
P
- $ pwd command / Learning basic Linux commands
- password box
- creating / A password box
- paste command / The paste command
- pattern
- matching, with vi editor / Pattern matching with the vi editor
- searching, with grep command / Pattern searching using grep
- patterns, awk
- defining / Patterns
- pattern searching facilities
- testing, commands / Pattern matching with the vi editor
- pattern space
- about / Understanding sed
- p command
- using / Printing – the p command
- period (.)
- used, for executing functions / Command source and period (.)
- permissions
- working with / Working with permissions
- read permission / Working with permissions
- write permission / Working with permissions
- execute permission / Working with permissions
- chmod command / Command chmod
- umask, setting / Setting umask
- setuid feature / Setuid
- setgid functionality / Setgid
- sticky bit / Sticky bit
- pipes
- about / Pipes
- positional parameters
- resetting / Resetting positional parameters
- about / Understanding getopts
- process
- about / Introducing process basics
- basics / Introducing process basics
- orphan process / Introducing process basics
- zombie process / Introducing process basics
- daemon process / Introducing process basics
- monitoring, with ps command / Monitoring processes using ps
- managing / Process management
- monitoring tools / Process monitoring tools – top, iostat, and vmstat
- running, when logged out with nohup command / Running scripts or processes even if the user logs out
- process ID / Introducing process basics
- progress meter box (gauge)
- creating / The progress meter box (gauge)
- ps command
- used, for monitoring process / Monitoring processes using ps
Q
- q command
- using / Quit – the q command
R
- $ rm .welcolme.sh command / Learning basic Linux commands
- radio list box (radiolist)
- creating / The radiolist box (radiolist)
- range
- defining, of selected lines / Range of selected lines: the comma
- range operator
- about / Deleting – the d command
- r command
- read-only variables
- working with / Working with read-only variables
- read command
- used, for reading user input / Interactive Shell scripts – reading user input
- read option / Summarizing the read command with options
- read value option / Summarizing the read command with options
- read first last option / Summarizing the read command with options
- read -e option / Summarizing the read command with options
- read -a array_name option / Summarizing the read command with options
- read -r line option / Summarizing the read command with options
- read -p prompt option / Summarizing the read command with options
- records, awk
- about / Records
- record separator / The record separator
- $0 variable / The $0 variable
- NR variable / The NR variable
- regular expressions
- about / The basics of regular expressions
- using, in stream editor (sed) / Understanding regular expression usage in sed
- in awk / Regular expressions
- metacharacters / Regular expressions
- run levels
S
- s command
- using / Substitution – the s command
- script
- running, when logged out with nohup command / Running scripts or processes even if the user logs out
- select command
- used, for implementing simple menus / Implementing simple menus with select
- set command / Understanding set
- used, for debugging process / Using the set command
- set-n / Summary of debugging options for set command
- setgid functionality / Setgid
- setuid feature / Setuid
- Shell
- comparisons / Comparison of shells
- tasks / Tasks done by shell
- working / Working in shell
- command interpretation / Learning shell interpretation of commands
- Shell commands
- about / Working more effectively with shell – basic commands
- man command / Working more effectively with shell – basic commands
- passwd command / Working more effectively with shell – basic commands
- cat command / Working more effectively with shell – basic commands
- echo cpmmad / Working more effectively with shell – basic commands
- Shell scripts
- advantages / When not to use scripts
- limitations / When not to use scripts
- best practices / Good practices for Shell scripts
- shift
- about / Understanding shift
- positional parameters, resetting / Resetting positional parameters
- signals
- about / Understanding signals and traps
- ignoring / Ignoring signals
- resetting / Resetting signals
- listing / Listing traps
- simple menus
- implementing, with select command / Implementing simple menus with select
- software interrupt
- about / Understanding signals and traps
- sort command
- using, with here operator / The here operator with the sort command
- start_kenel() function / Introducing process basics
- step increment
- about / Deleting – the d command
- sticky bit / Sticky bit
- stream editor (sed)
- about / sed – noninteractive stream editor, Understanding sed
- regular expressions, using / Understanding regular expression usage in sed
- addressing / Addressing in sed
- file, modifying / How to modify a file with sed
- printing, with p command / Printing – the p command
- deleting, with d command / Deleting – the d command
- substituting, with s command / Substitution – the s command
- range, defining / Range of selected lines: the comma
- multiple editing, with e command / Multiple edits – the e command
- file, reading with r command / Reading from files – the r command
- file, writing with w command / Writing to files – the w command
- appending, with a command / Appending – the a command
- inserting, with i command / Inserting – the i command
- changing, with c command / Changing – the c command
- transforming, with y command / Transform – the y command
- quitting, with q command / Quit – the q command
- holding, with h command / Holding and getting – the h and g commands, Holding and exchanging – the h and x commands
- getting, with g command / Holding and getting – the h and g commands
- exchanging, with x command / Holding and exchanging – the h and x commands
- scripting / sed scripting
- string
- handling, with if construct / String handling with the if construct
- string comparison options
- using, with test commands / String comparison options for the test command
- system initialization boot scripts / System initialization boot scripts
T
- $ touch hello.sh command / Learning basic Linux commands
- table declare options
- -a / Understanding set
- -f / Understanding set
- -F / Understanding set
- -i / Understanding set
- -r / Understanding set
- -x / Understanding set
- tail command / Head and tail
- test command
- about / Understanding the test command
- using, with single brackets / Using the test command with single brackets
- using, with double brackets / Using the test command with double brackets
- string comparison options / String comparison options for the test command, Numerical comparison operators for the test command
- numerical comparison operators / Numerical comparison operators for the test command
- file test options / File test options for the test command
- used, for file testing of binary operators / File testing binary operators
- for logical test operators / Logical test operators
- textbox (textbox)
- creating / The textbox (textbox)
- text filtering
- tools / Text filtering tools
- text filtering tools
- about / Text filtering tools
- head command / Head and tail
- tail command / Head and tail
- diff command / The diff command
- cut command / The cut command
- paste command / The paste command
- join command / The join command
- uniq command / The uniq command
- comm command / The comm command
- tr command / The tr command
- top command / Process monitoring tools – top, iostat, and vmstat
- trap command
- using / Using the trap command
- traps
- about / Understanding signals and traps
- using, in function / Using traps in function
- tr command / The tr command
U
- uniq command / The uniq command
- until command
- using / Using until
- user initialization scripts
- about / User initialization scripts
- systemwide settings scripts / Systemwide settings scripts
- user level settings / User level settings – default files
- user level settings
- $HOME/.bash_profile / User level settings – default files
- $HOME/.bash_login / User level settings – default files
- $HOME/.profile / User level settings – default files
- $HOME/.bashrc / User level settings – default files
- about / User level settings – default files
V
- -v option
- used, for displaying commands / Debugging mode – displaying commands (option -v)
- ? variable
- variables
- about / Understanding variables
- unset command, using / Understanding variables
- set command, using / Understanding variables
- declare command, using / Understanding variables
- env command, using / Understanding variables
- environment variables / Working with environment variables
- read-only variables / Working with read-only variables
- using, in awk / Using variables in awk
- variable substitution
- turning off / Turning off variable substitution
- verbose mode / Debugging mode – displaying commands (option -v)
- vi editor
- used, for learning pattern matching / Pattern matching with the vi editor
- commands / Pattern matching with the vi editor
- vmstat command / Process monitoring tools – top, iostat, and vmstat
W
- wall command
- used, for sending message for logged-in users / A script for sending messages to all logged-in users
- wc command
- using, with here operator / The here operator with the wc command
- w command
- using / Writing to files – the w command
- while loop
- using, in awk / Using the while loop
X
- -x option (xtrace)
- used, for tracing execution / Debugging mode – the tracing execution (option -x)
- x command
Y
- y command
- using / Transform – the y command
- yes/no box (yesno)
- creating / The yes/no box (yesno)
Z
- zombie process / Introducing process basics