LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-14-2012, 07:56 PM   #1
dynomite1988
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
basic Linux commands


Hi there,
I am currently in school taking a Linux course. We are using Shrike version of Red Hat.
I have a test coming up and I am sure I will see a command like this and not know how to answer it:
make modules 2>&1|tee moderrors

Could somebody please explain what this command will do step by step? I get lost right around the 2>1|tee moderrors part of it.
Thank you
dynomite1988
 
Old 08-14-2012, 08:12 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
first, "shrike" (AKA RedHat Linux 9) is hopelessly out of date. Take that into account as you complete your training.

In your example, there are 2 distinct commands:

2>&1 is a "redirection"---read more here:
http://linuxdevcenter.com/pub/a/linux/lpt/13_01.html (and in many other sites found by Google)

"tee" is also used for redirection, but sends the output to 2 different place. "man tee" for details.
 
Old 08-14-2012, 08:21 PM   #3
dynomite1988
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply. I know this version is out of date but they are teaching it to use a as a "foundation" for other linux/unix operating systems out there. By the way the site helped clear things up for me
 
Old 08-14-2012, 08:24 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
OK--fine. Just be aware that you will learn things that may not be useful on a more modern system.
 
Old 08-14-2012, 09:33 PM   #5
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Mint
Posts: 410

Rep: Reputation: 82
Study your man pages for bash...assuming this is the bash shell.
 
Old 12-04-2012, 02:08 PM   #6
techguru666
LQ Newbie
 
Registered: Jul 2012
Posts: 24

Rep: Reputation: Disabled
Quote:
"tee" is also used for redirection, but sends the output to 2 different place. "man tee" for details.
you can use following tutorial for tee command:
http://www.expertslogin.com/linux-ad...command-linux/
 
  


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
were can i get basic linux commands??? ravi Linux - General 9 03-30-2007 03:36 PM
Basic Linux commands senthil_s14 Linux - Newbie 8 01-11-2006 03:51 PM
Linux Basic Commands rahimzai Red Hat 5 09-30-2005 06:22 AM
Basic linux commands OtisLinux Linux - Software 6 03-03-2004 07:30 PM
basic linux commands... search? Mytherall Linux - Newbie 1 02-23-2004 07:52 AM


All times are GMT -5. The time now is 11:56 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