LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 04-27-2008, 09:27 PM   #1
prasunhowlader
LQ Newbie
 
Registered: Apr 2008
Posts: 12

Rep: Reputation: 0
Command understand Problem


I am new user in linux. So some time i face problem to understand simple command. Here is a simple command that i am not understand clearly please describe this command-

wget -q -o - https://rhn.redhat.com/help/new-cert.sh | /bin/bash

Why here use | /bin/bash

Thanks
 
Old 04-27-2008, 09:46 PM   #2
-{Jester}-
Member
 
Registered: Apr 2008
Location: The Internet
Distribution: Slackware
Posts: 49

Rep: Reputation: 15
I'm not sure, but if I had to guess, you are retrieving the script from a website (wget) and then piping it through bash. So... my guess is that "| /bin/bash" runs the script?
 
Old 04-27-2008, 10:56 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"|" is the pipe command.
wget downloads the file named "new-cert.sh" and sends it to bash to be run.

For more help, you should tell us the context--i.e. what exactly you are trying to do.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to understand last -x command xcr Linux - General 3 03-13-2006 12:48 AM
Help me to understand this command: find...| grep -e ... | xargs rm -f ROBERT483599 Red Hat 2 02-14-2006 08:21 AM
i have a problem that i really don't understand much.. nofear Linux - Newbie 2 03-20-2004 12:11 PM
don't understand r* command security weronpc Linux - Security 2 12-09-2003 12:53 AM
Dont understand the df command juanb Linux - General 2 01-02-2003 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration