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 6915367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:27:59+00:00 2026-05-27T09:27:59+00:00

I frequently execute from a shell (in my case Bash) commands that I want

  • 0

I frequently execute from a shell (in my case Bash) commands that I want to fork immediately and whose output I want to ignore. So frequently in fact that I created a script (silent) to do it:

#!/bin/bash
$@ &> /dev/null &

I can then run, e.g.

silent inkscape myfile.svg

and my terminal will not be polluted by the debug output of the process I just forked.

I have two questions:

  1. Is there an “official” way of doing this?, i.e. something shorter but equivalent to &> /dev/null & ?

  2. If not, is there a way I can make tab-completion work after my silent command as if it weren’t there ? To give an example, after I’ve typed silent inksc, I’d like bash to auto-complete my command to silent inkscape when I press [tab].

  • 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-27T09:28:00+00:00Added an answer on May 27, 2026 at 9:28 am

    aside: probably want to exec "$@" &> /dev/null & in your silent script, to cause it to discard the sub-shell, and the quotes around "$@" will keep spaces from getting in the way.

    As for #2: complete -F _command silent should do something like what you want. (I call my version of that script launch and have complete -F launch in my .bash_profile)

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

Sidebar

Related Questions

I have two commands I execute frequently. Let's say the first is 'abcd' and
I have a shell script which I execute frequently in a day with different
I frequently use fork in programs that also have END { ... } blocks:
I have a process that will be called rather frequently from cron to read
I frequently have problems dealing with DataRows returned from SqlDataAdapters . When I try
I frequently encounter some definitions for Win32API structures (but not limited to it) that
Frequently I have run into a problem when installing gems that provides a problem
I'm developing JS that is used in a web framework, and is frequently mixed
I am doing an application that will compute all 2 size frequent itemset from
I want to handle a MySQL database using JDBC from inside an operation of

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.