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

  • Home
  • SEARCH
  • 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 8821433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:51:14+00:00 2026-06-14T05:51:14+00:00

From the terminal in Mac Mountain Lion, I’m running the following command: mysql -h

  • 0

From the terminal in Mac Mountain Lion, I’m running the following command:

mysql -h localhost -u root -p -B database | gunzip < db.sql.gz

It executes fine and the database is created but the file contents are put into the std out so I see the contents being spat out into the terminal window as it executes.

Can anyone tell me the switch to turn off the terminal output? I’ve Googled this but I can’t figure it out. Besides, it will be documented here for others now 😉

  • 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-06-14T05:51:15+00:00Added an answer on June 14, 2026 at 5:51 am

    follow the command with

     > /dev/null
    

    and normal output is suppressed but errors are still shown

    follow the command with

     > /dev/null 2>&1
    

    and everything, including errors is supressed

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

Sidebar

Related Questions

I’m running Mac OS X v10.8 (Mountain Lion) with Xcode 4.5.1 with command line
I am sending the following curl command from terminal in Mac OSX: curl -d
How can I import a database with MySQL from terminal? the syntax from this
I am trying to access mysql on dreamhost via a mac terminal. From the
I am trying to run /Applications/MAMP/bin/php/php5.4.3/bin/pear From Terminal on Mac OS X Lion. I
Running in Mac OS X Lion, I need to retrieve a file from a
Is it possible to use GDB or LLDB from the Terminal command-line under Mac
I use terminal from Mac OS X Leopard to connect to remote Linux machines
Right now I can run a PHP script from my Mac terminal like echoing
From a terminal window: When I use the rm command it can only remove

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.