≡ Menu

Geeky Wrap-up: Week of Jun 14, 2010

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.

Read the full post here.

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.

Read the full post here.

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.,

Read the full post here.

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]

Read the full post here.

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.

Add your comment

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

Comments on this entry are closed.

  • NetSpider June 20, 2010, 9:38 am

    [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?

  • NetSpider June 20, 2010, 9:47 am

    Ohh, sorry, i’m not very familiar with bash)