Extract a certain file to a certain directory from a tar archive using GNU Tar

“gtar -C hobba -xvf aamr.tar aamr/1”

where:

“hobba” is the directory to extract to
“aamr.tar” is the archive from which we’ll extract the file
“aamr/1” is the file inside the archive to be extracted to the destination directory (hobba).

Tagged , , , | Leave a comment

A more convenient alternative to AIX tar; gtar

Searched everywhere just to know how to use the “tar” command to extract an archive to a certain folder instead of extracting it using the same directory structure inside, and so here are the steps:

  1. Don’t use the “tar” program
  2. Download the GNU tar rpm from the AIX toolbox
  3. Install it “rpm -ivh blablabla.rpm”, you must have installed rpm at first from there of course, note that you must have root access to install that package
  4. logout and then back in, use “gtar” from now on.
Tagged , , | Leave a comment

How to unset an environment variable in Bash

“unset variable_name

Tagged , , , | Leave a comment

How to start tasks for a component in Siebel’s CLI

Although I still feel real grief in my heart, but here is my first blog entry after Kooka’s – my beloved Guinea Pig – death:

“start task for component component_name server server_name

Tagged , | Leave a comment

How to restart the VirtualBox kernel module in Ubuntu

If you’re encountering problems in Virtualbox on Ubuntu and you feel you need to restart your machine, don’t! You’re on Linux, not windows! You can just close Virtualbox and then restart the Virtualbox kernel module by running the following:

“/etc/init.d/vboxdrv restart”

And then start Virtualbox and try again 🙂

Tagged , , | Leave a comment