# lists jobs in current session $ jobs # start job 1 (sleeps for 200 seconds) $ sleep 200 #… READ MORE
There are multiple ways to place a program in background mode. Background mode is when the program runs and returns… READ MORE
— Get process id of current process $ echo $$ 6113 — shows process id $ ps PID TTY TIME… READ MORE
C-shell (csh) Example: set prompt=”[%n@%m %c] \! %” oracle@localhost ~] 39 % In this above example sets prompt to display… READ MORE
Using the following script it will find all version of a command in $PATH (from Unix Power Tools) $ cat… READ MORE
By setting trap one can run a logout script when a k-shell is being terminated. The built-in command trap in… READ MORE
One can use the regular expressions to match in vi, grep, sed and awk. [a-d] – Match one character with… READ MORE
# how to create a array and assign a list of values set -A fruit apples pears oranges banana #… READ MORE
In ksh shell – case statement case variable_name in pattern1) statements1 ;; pattern2) statements2 ;; # default (catch all remaining)… READ MORE
# Sample script that shows how ERR signal works, when a command returns a non-zero status it triggers to calls… READ MORE
I use this script to clean up all the log and trace file from each host.. You can schedule a… READ MORE
Ksh/Borne/Bash shell $ ls /usr/bin …. # when success value is 0 $ echo $? 0 $ ls /usr/bin/blah ls:… READ MORE
“Control what I can control”
~ Alex Lima