[Valid RSS]

Linux Shell Survival Toolkit

Hi, having a strong Windows background, I hardly remember all options of the huge set of commands available in the Linux shell… so, I’m slowly but steadily building up this Survival Toolkit. Hope it helps.

File and directory management

Symbolic link

Sometimes it is useful to hide the real location of a directory. For instance you could have various folders containing different versions of the same software. So, for instance you got /opt/package-1.2, /opt/package-1.3, /opt/package/1.4beta. But maybe you like to have an /opt/package folder that should contain the version that should be currently used, so, you can use a symbolic link:

  1. ln -s <existing_directory> <path_of_the_link_to_be_created>

In our case

  1. ln -s /opt/package-1.3 /opt/package

Compressed files

Often one downloads an open source project as a bundle which extension is .tar.gz. Here’s how to inflate it.

  1. tar xvf [filename.tar]

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>