Technology – Wordpress – Free Wordpress Themes


Unix

How to insert text in multiple lines in vi editor

Jan 25th, 2010 | By Steve Soe | Category: How-To, Unix

In the vi editor, if you want to add the text before some keywords in the multiple lines,  you can use this awk script.

For example: I have this file name called “/root/temp” and I want to add the word “sddl” in front of the words “Device: -r”.  I wrote my awk script like this:
awk ‘ [...]



How to Compress / Archive or Decompress / Unarchive / extract with Gzip, Zip, and Tar

Dec 16th, 2009 | By Steve Soe | Category: How-To, Unix

When the compressed files are downloaded on unix or linux, their extension are somtimes different like gz, zip, tar,  tar.gz. The commands to extract / decompress / unarchive these files are different, so here is the guide:

How to compress /archive  files with “zip”
zip -r filename.zip file1 file2 file2
How to decompress / unarchive / extract .zip [...]