LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Idiot-proofing bzip2 creation (https://www.linuxquestions.org/questions/linux-newbie-8/idiot-proofing-bzip2-creation-787345/)

SilversleevesX 02-05-2010 11:13 PM

Idiot-proofing bzip2 creation
 
Specifically w/regard to naming your own bzip2 files.

What they don't make clear on most manpages is that you can't simply use
  • bzip2 thisfile.xxx
-- that gives bzip2 free rein to include the original extension in the filename. You must use the -c tag (and better than that, the -c and -k tags, the latter of which leaves the original file untouched post-compression), then -if you wish- the level of compression to apply to a file (in the range of 1-9, with 1 being next-to-no compression and 9 the highest level of compression), followed by the filename/s to compress, then after a single space, a right-hand carat (">"), then another single space and the name you want to give the compressed bzip2 file, remembering to add the extension ".bzip2" (no quotes) to your filename.

Sounds pretty obvious, doesn't it? Well, I thought so too once I read a particular manual page and reasoned it out. Then I remembered the 15 or so minutes it took me to Google myself to that manpage, and I decided it was good Net citizenship to put up a little step-by-step like this one on an appropriate forum on which I was already a registered member.

It isn't just the C++ heads or the Python jockeys who need things broken down to their simplest bits for them from time to time. Newbies and near-newbies do, too. I took it as read that was the reason for this subforum, so here I went.

BZT

onebuck 02-06-2010 09:21 AM

Hi,

Along with the 'man pages' you should be using other reference material to understand things on a GNU/Linux system. I suggest that the following will aid you to understanding things a little better;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide
Linux Home Networking
Virtualiation- Top 10

:hattip:
The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!


All times are GMT -5. The time now is 10:54 AM.