Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7022499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:35:25+00:00 2026-05-27T23:35:25+00:00

I think I am missing something terribly stupid, please correct me. root@fdas:~# mount /dev/sdd1

  • 0

I think I am missing something terribly stupid, please correct me.

root@fdas:~# mount /dev/sdd1 /b 2>&1 > /tmp/test

mount: you must specify the filesystem type
root@fdas:~# cat /tmp/test 
root@fdas:~# mount /dev/sdd1 /b > test
mount: you must specify the filesystem type
root@fdas:~# cat test 
root@fdas:~# 

I simply need to capture that one line of output…Thank you in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:35:26+00:00Added an answer on May 27, 2026 at 11:35 pm

    It appears that in standard shell (not bash/csh) you need to tell it where to redirect stdout first and redirect stderr then, so you just need to swap your redirects:

    mount /dev/sdd1 /b > /tmp/test 2>&1
    

    In CSH you can use & as Shiplu suggested:

    mount /dev/sdd1 /b >&  /tmp/test
    

    In BASH & syntax is different:

    mount /dev/sdd1 /b &>  /tmp/test
    

    BASH supports CSH & syntax too, but it is NOT recommended (in man)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I'm missing something very obvious and its making my brain hurt. class
I think I am missing something obvious here, but I can't figure it out.
I think I am missing something while using the Authlogic gem w/ Rails. To
I think I'm missing something obvious and would appreciate an answer. I have a
I think I am missing something about property attributes. First, I can't understand the
I think I'm missing something simple here. I'm using Boost's shared_ptr . shared_ptr<Foo> pA(new
I think I'm missing something very simple here. I have an EF4 ObjectContext that
I'm very new to PS so I think I'm missing something basic here. I
I think I'm missing something basic here. Why is the third IF condition true?
I think I'm missing something here. in Script: $('#dialog:ui-dialog').dialog('destroy'); $('#dialog-modal').dialog({ width:150, height:150, resizable:false, draggable:false,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.