Welcome to the Linux Foundation Forum!

split CLI terminal

is it possible to split/divide CLI terminal into two parts so that i can do two different works without switching to other tty, and i can see those two windows simultaneously.

Comments

  • woboyle
    woboyle Posts: 501
    You can, with emacs.
  • gr8linux
    gr8linux Posts: 26
    woboyle wrote:
    You can, with emacs.

    what is it? can u plz tell me in little detail....................
  • Set_Killer
    Set_Killer Posts: 31
    emacs is advanced text editor.

    but dont know howto make that...
  • Rovanion
    Rovanion Posts: 73
    There must be some way to fit in two Bash sessions on the same screen/tty. With a resolution of 1600*1200 it's slightly silly to have only one at the time.
  • abrenar
    abrenar Posts: 117
    why dont you create new tab in your terminal window or open another terminal?
  • timhoppen
    timhoppen Posts: 3
    You can do this with "screen". It may already be installed, depending on your distro.

    There are a few guides out there to explain how to use screen, but here is a quick run through to (hopefully) get want you to accomplish.

    First, start a screen session with the command "screen"

    To split the console window, press "Ctrl"+"a" (This is the sequence to start a command) followed by "S" (note the capital S)

    Now, you want to create a new session in your new region.
    "Ctrl"+"a" followed by "tab" to change focus to the new area.

    "Ctrl"+"a" followed by "c" to bring up a prompt here.

    Now you have two "terminals" in one TTY.

    A few more helpful tips.

    Help screen: "Ctrl"+"a" then ?
    Close other 'tab': "Ctrl"+"a" then "Q"
    Detach screen (to leave processes running): "Ctrl"+"a" then "d"

Categories

Upcoming Training