BASH_ALIASES tinkering

commandline session

$ 4.2.36 6 506---> echo $BASH_ALIASES

$ 4.2.36 7 507---> echo ${BASH_ALIASES[0]}

$ 4.2.36 8 508---> echo ${BASH_ALIASES[1]}

$ 4.2.36 9 509---> echo ${BASH_ALIASES[2]}

$ 4.2.36 10 510---> alias lst ls
bash: alias: lst: not found
bash: alias: ls: not found
$ 4.2.36 11 511---> alias ls lst
bash: alias: ls: not found
bash: alias: lst: not found
$ 4.2.36 12 512---> alias /bin/ls
ls     lsblk  lsmod
$ 4.2.36 12 512---> alias /bin/ls
ls     lsblk  lsmod
$ 4.2.36 12 512---> alias /bin/ls lst
bash: alias: /bin/ls: not found
bash: alias: lst: not found
$ 4.2.36 13 513---> alias test=/usr/bin/io
ionice  iostat
$ 4.2.36 13 513---> alias test=/usr/bin/iostat
$ 4.2.36 14 514---> test
Linux 3.2.0-3-amd64 (debian) 	Friday 09 November 2012 	_x86_64_	(1 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          19.07    0.12    4.94    3.26    0.00   72.61

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda              13.67       103.73        55.99    1929671    1041664

$ 4.2.36 15 515---> echo ${BASH_ALIASES[0]}

$ 4.2.36 16 516---> echo ${BASH_ALIASES[1]}

$ 4.2.36 17 517---> echo ${BASH_ALIASES[2]}

$ 4.2.36 18 518---> echo ${BASH_ALIASES[3]}

$ 4.2.36 19 519---> echo $BASH_ALIASES

$ 4.2.36 20 520--->

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s