While the Lakers were celebrating their championship, and Roger Federer was getting ready to defend his Wimbledon title, this is what happened at The Geek Stuff this week.
Monday:
The Magic ~: Bash Tilde Expansion with 5 Examples
Other than “cd ~”, to jump to your home directory, ~ can do lot more tricks. For example:
- ~username
- ~+
- ~-
- cd ~+2
- cd ~-5
Promise me that you’ll never disrespect the ~ again.
Tuesday:
Understand at, atq, atrm, batch Commands using 9 Examples
Lazy sysadmin is the best sysadmin. Use the at* commands explained here to schedule your routine jobs.
- at -f watch-soccer.txt now + 1 min
- atrm 10
- at noon
Now that you’ve scheduled your jobs, get back to work! – Watch the world cup soccer.
Wednesday:
4 Easy Steps to Install and Configure VMware Server 2 on Linux
This is a new series of VMware article we started. In the future articles we’ll be discussing about the following:
- ESXi installation
- vSphere installation
- VM creation
- datastore management etc.,
Thursday:
Perl Array Reference and Dereference Tutorial With Practical Examples
- $array_ref = \@array; – Reference
- @{ $array_ref }; – Dereference
We also spoke how to to convert the following ugly looking Perl code-snippet to something readable.
$ { $ { $ { $array_ref } [2] } [2] } [1]
Friday:
How to do Perl Hash Reference and Dereference
As a follow-up to our array reference and dereference, this is a quick FAQ on how to do the same on Perl Hash.
- $hash_ref = \%author; – Reference
- $name = $ { $hash_ref} { name }; – Dereference
We also combined few quick FAQs on how to install / remove packages on following OS.
Comments on this entry are closed.
[root ~]# ~root
bash: /root: is a directory
[root ~]# ~+
bash: /root: is a directory
[root ~]# cd ~+2
bash: cd: ~+2: No such file or directory
[root ~]# cd ~-5
bash: cd: ~-5: No such file or directory
did i miss something?
Ohh, sorry, i’m not very familiar with bash)