LinuxQuestions.org
Register a domain and help support LQ
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, 10: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, 10: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, 11:56 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
"|" 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 01:48 AM
Help me to understand this command: find...| grep -e ... | xargs rm -f ROBERT483599 Red Hat 2 02-14-2006 09:21 AM
i have a problem that i really don't understand much.. nofear Linux - Newbie 2 03-20-2004 01:11 PM
don't understand r* command security weronpc Linux - Security 2 12-09-2003 01:53 AM
Dont understand the df command juanb Linux - General 2 01-02-2003 04:22 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration