LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 02-24-2005, 06:48 PM   #1
Niceman2005
Member
 
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
ToniT
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
Niceman2005
Member
 
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!
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 08:22 AM.

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