sample session using “variable expansion” with Bash shell

$com=world $echo com com $echo $com world $x=hello $echo ${x}{com} hello{com} $echo ${x}${com} helloworld $echo $x$com helloworld $echo ${x}world helloworld $echo ${x} world hello world $echo $x world hello world $echo $xcom $echo $x com hello com $echo $x $com hello world $echo $x$com helloworld $echo $xcom $echo ${x}com hellocom $ $your_id=${USER}-on-${HOSTNAME} $echo “$your_id” jeffrin-on-debian …

getting choices listed directly with the first TAB

$p Display all 428 possibilities? (y or n) $p bash: p: command not found $cat .inputrc set show-all-if-ambiguous on $ related text: Specifies the duration Readline will wait for a character when reading an ambiguous key sequence (one that can form a complete key sequence using the input read so far, or can take additional …

sample interaction with bash shell from the GNU project

$echo $BASH /bin/bash $echo $BASH_ $echo $BASH_v $echo $BASH_VERSION 4.3.42(1)-release $date || time Sun Feb 21 23:15:50 IST 2016 $datei || time bash: datei: command not found real 0m0.000s user 0m0.000s sys 0m0.000s $dateno || time bash: dateno: command not found real 0m0.000s user 0m0.000s sys 0m0.000s $time || date bash: syntax error near unexpected …

the need of a command named “builtin”

$builtin echo jeffrin jeffrin $echo jeffrin jeffrin $echo() { echo “hi”; }; $echo jeffrin ^C $builtin echo jeffrin jeffrin $echo jeffrin ^C $ https://en.wikipedia.org/wiki/Shell_builtin http://unix.stackexchange.com/questions/11454/what-is-the- difference-between-a-builtin-command-and-one-that-is-not (jeffrin) what is the use of the command named “builtin” (jeffrin) llua : hello (llua) to avoid a possible wrapper

sample session involving “env” and “unset” commands

ABOUT env env is a shell command for Unix and Unix-like operating systems. It is used to either print a list of environment variables or run another utility in an altered environment without having to modify the currently existing environment. Using env, variables may be added or removed, and existing variables may be changed by …