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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:50:51+00:00 2026-06-19T03:50:51+00:00

#!/bin/bash for ((n=0;n<3;n++)) do gnome-terminal done This is the code for opening three terminals.

  • 0
#!/bin/bash

for ((n=0;n<3;n++))
do
gnome-terminal
done

This is the code for opening three terminals. I have asset it graphical in Ubuntu desktop. When I click the icon, only one terminal opens, when I close the terminal another opens, this goes on to three. But when I run the script in the terminal itself, all three terminals open simultaneously. This is what I’m after, having my icon on the desktop open them up simultaneously.

  • 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-19T03:50:52+00:00Added an answer on June 19, 2026 at 3:50 am
    #!/bin/bash
    
    for i in {0..3}; do
        gnome-terminal &
    done
    

    & run the command in the background. (silently fork())

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

Sidebar

Related Questions

#!/bin/bash for arg do echo $arg done In file called compile. I tried this:
#!/bin/bash for((i=1;i <=10;i++)) do php /var/www/get.php done I have the above shell script that
I have this bash file: #/bin/bash PROP=-Dprop=foo bar java $PROP -jar Foo.jar So, what
#!/bin/bash while read -r line; do mkdir UNIX/$line done < usernames.lnk MasterDir=/home/darkeve/Documents/OS/master/ USERHOME=/home/darkeve/Documents/OS/UNIX for
I have a bash-script (let's call it /usr/bin/bosh ) using the following she-bang line:
I'd like to do this in bash #!/bin/bash func(){ return 1; } e=func echo
In BASH, I want to do something like this: #!/bin/bash HOST=blah USER=foo REMOTE_ROOT=${HOST}:~${USER}/ REP_NAME=`basename
If I have a Bash script like: #!/bin/bash f() { # echo function name,
#! /bin/bash dir=$(find . -type f) echo ${dir[0]} echo This is dir[0] echo ${dir[1]}
#!/bin/bash # This file will fix the cygwin vs linux paths and load programmer's

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.