Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-24-2005, 06:48 PM   #1
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
cat /path/to/openMosix-2.4.16-3.gz | gzip -d | patch -p1 -l what does it mean?

Dear people,

I have read the man page of "cat' but still don't quite understand what it does.

say for the command:
cat /path/to/openMosix-2.4.16-3.gz | gzip -d | patch -p1 -l

what does the above actually do?

Thanks a million for helping!
Old 02-24-2005, 07:13 PM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
To understand that command (or script), you also have to read manpages of
gzip and patch too.

That command consists of tree separate processes.
  • First one prints the contents of /path/to/openMosix-2.4.16-3.gz to
    the "stream" (in basic case, to the screen, but in this case to input of the next process).
  • The second process (gzip -d). Reads compressed data from the input stream (in a basic case, this would be the keyboard), decompresses and writes the decompressed version to the stream.
  • The third process reads difference-information (aka diff, or patch-file. Normally generated with a program called diff) from the input stream and tries to do those changes described to the files in the system (eg tries to apply a patch).

To make long story short, those three programs together uncompress and apply a patch to your files.
Old 02-24-2005, 08:34 PM   #3
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi ToniT

Thanks a lot for your kind explanation. very veyr much!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM
openmosix: patch problems opabil Linux - Distributions 0 12-21-2004 03:53 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM
openmosix clustering done, what should i do next after the setting up openmosix? kublador Linux - General 3 01-01-2004 09:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration