smart grouping shorten long command line 2

June 19th, 2007 mysurface

This post is to illustrate additional usage of curly brackets { } for range of numbers, continues from smart grouping shorten long command line. Let say you have a list of logs where you want to pick a range of logs for analysis, the sample log files shows as bellow tcp_06062007_1.txt … tcp_06062007_180.txt tcp_06062007_181.txt tcp_06062007_182.txt [...]

Posted in curly brackets, Symbol, tar | Hits: 51764 | 1 Comment »

Overview: Archive tools for linux

April 7th, 2007 mysurface

There are various archive file format exist, such as .tar.gz, .tgz, .tar.bz2, .gz, .bz2, .zip, .rar, .7z. The common questions regarding archives are “how to extract files from tar.gz?”, “how to create rar in Linux?” etc. Therefore this overview aims to covers simple examples of archive tool usage for the common format such as: tar, [...]

Posted in 7z, Archive, bunzip2, bzip2, gunzip, gzip, rar, tar, unzip, zip | Hits: 101360 | 4 Comments »

Compress to multiple volume RAR

February 25th, 2007 toydi

To compress a big video file, movie.avi and split it into multiple files, each size up to 12MB, rar a -m5 -v12m myarchive movie.avi A list of files (myarchive.part1.rar, myarchive.part2.rar, ..) will be created in current directory. You may change the compression quality, -m5 is the best and the slowest, while -m0 do no compression [...]

Posted in Archive, rar | Hits: 62691 | 8 Comments »

Installing From Tarballs

November 17th, 2006 mysurface

We usually download linux programs through package handling tools such as yum and apt-get. Download programs through package handling tools is easy, but not all programs is available in your Linux distribution repository. Sometimes, we need to download the source code, compile and install manually. Usually, source code are compress in the archive format, its [...]

Posted in Common, make, tar | Hits: 63116 | 5 Comments »

More on rar

October 14th, 2006 liewsheng

rar is one of the common file format use for data compression and archiving. What happen if you have a rar file in Linux? Don’t panic, just using the ‘rar’ program ;p There is some intro in Unrar the File. The previous example have shown a simple way to extract a rar, actually still have [...]

Posted in Archive, rar | Hits: 25501 | 6 Comments »

tar normal operation

September 19th, 2006 mysurface

I am here to show you examples of how to use tar to zip and unzip two types of files ( tar.bz2, tar.gz) Remember certain option defined, c for create, z for extract and t for test. v verbose, and f is file. There are 2 common archive people are interested in, bz2 and tar.gz [...]

Posted in Archive, tar | Hits: 39624 | 8 Comments »

Unrar the file

September 9th, 2006 mysurface

Unrar encrypted rar file in gnome seems to fail. One day, I have downloaded a rar file with password and it seems can’t be open by gnome archive manager. If this happen to you, don’t panic, I have a solution for you. First of all, check to see you have rar installed or not, if [...]

Posted in Archive, rar | Hits: 40771 | 3 Comments »