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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:30:43+00:00 2026-06-05T06:30:43+00:00

I find myself running the same terminal commands when I turn on the laptop.

  • 0

I find myself running the same terminal commands when I turn on the laptop. I press ctrl+alt+t to open a new terminal window. (I am a beginner working with RoR on Ubuntu 12.04)

  1. I open new terminal window and navigate to Rails folder and run vim
  2. I open another terminal window, navigate to Rails folder and run
    ‘bundle exec guard‘
  3. I open another window, and run rails console
  4. I open another window with rails server running on it
  5. I open another window with IRSSI (IRC client on it)

How to perform these actions with single terminal command? I guess a custom script is required, but I don’t know how to write it or where to put it… Also, if possible, I’d like to open them in a full screen terminal windows

  • 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-05T06:30:46+00:00Added an answer on June 5, 2026 at 6:30 am

    You can use tmux for these kind of staff. For example the example below will create 5 windows(which are tabs), each named with the first parametr after -n and then executed.

    #!/bin/sh
    tmux new-session -d -s hawkhost
    
    tmux new-window -t hawkhost:1 -n 'vim' 'vim'
    tmux new-window -t hawkhost:2 -n 'bundle' 'bundle exec guard'
    tmux new-window -t hawkhost:3 -n 'rails1' 'rails console'
    tmux new-window -t hawkhost:4 -n 'rails2' 'rails server'
    tmux new-window -t hawkhost:5 -n 'irc' 'irsii'
    
    tmux select-window -t hawkhost:1
    tmux -2 attach-session -t hawkhost
    

    Look here for more information about this:

    http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/#tmux-shell-scripting

    In tmux panes are arbitary windows, and windows are actually tabs.

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

Sidebar

Related Questions

I have two search/replace commands that I find myself running in vim fairly often
When I build Rails applications I find myself doing the same things over and
I'm completely new to Linux, but today I find myself setting up a server
I'm very new to C# and .NET and I find myself faced with a
I'm running Linux and frequently find myself wondering what the storage sizes and numeric
I find myself running scripts and copy-pasting the output of these runs into emails
I continually find myself running queries on databases and getting multidimensional arrays representing rows
This is a minor issue, but one I find myself running into: When I
I've recently bought myself a new cellphone, running Windows Mobile 6.1 Professional. And of
I am developing an email campaign however find myself running into an issue specific

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.