I'm wondering how many terminal windows my fellow Linux users usually have open?
I find myself with a lot of windows simply because I have one open for every program I have launched. I usually have about 3 for launched programs and 1 for various commands.
Also, is there a way to have multiple programs launched from the same terminal window?
You need a terminal multiplexer such as GNU screen.
The number of terminal windows depends on what I'm doing. But I usually have 2-3 for programming, 1 for music, 1 for IRC chat and 1 for bash commands or standard actions / system maintenence.
I usually have one for updates and APT crap, one for network troubleshooting and occasionally SSH, and then one for each instance of file manager because its just more pleasant to do some things from the shell
I currently have 9 terminal windows open. One of which is remote connected to another server that has 6 SCREEN windows, and one of those is connected to another server with 4 SCREEN windows..... I just checked, two of the Terminal sessions are NOT actively doing something.
Usually I manage with only 3-4 of them. Two of those are ssh, one is tilda for basic maintenance and I dynamically open new one for basic text edits. I think the most i ever used was eight
Depends...2 to 3 at the most but I'm a novice Linux user, but do use one to ssh into our ubuntu web server, normally one for bash and sometime just let one free wheel running TOP to see what is going on.
I need to harden my CLI skills. At home on linux I struggle to keep one going. At work on windows I usually have about 2, one for testing, one for SSH/TELNET.
Very cool! Each person tailoring their experience to fit their needs. Ahhh, the wonders of Linux.
I also appreciate that everyone is describing what they use their many terminals for as it provides a good source of information for some of the other things that can be done in it. Thanks!
Also, thank you to @spidernet for introducing me to GNU Screen, I look forward to learning more about how to use it and implementing it into my workflow.
I'm not a heavy linux user, by that I mean I don't use the terminal for much. However, I generally have 1-3 open on my pc, on the server i have 4-5, one for each minecraft server and one for the teamspeak server(though this now runs as a background task)
I usually have a whole bunch open (6+). Except for browsing the web and reading pdfs, I do all my computing in the terminal. As for launching multiple applications in a single terminal I wrote this function spawn that allows me to launch multiple gui applications from the same terminal without polluting the terminal with tonnes of debugging output. Add it to your ~/.bashrc file, and enjoy spawning all your favourite applications without penalties ^^
function spawn() {
(exec 0</dev/null 1>/dev/null 2>/dev/null "$@")&
}
function _spawn() {
local cur prev
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $(type -t _command)z = "function"z ]; then
_command # requires bash-completion
else
# If bash-completion is not installed:
case "$prev" in
spawn) COMPREPLY=($(compgen -c -- $cur)) ;;
*) COMPREPLY=($(compgen -f -- $cur)) ;;
esac
fi
}
complete -F _spawn spawn
More often than not these days I just fly in and out of Drop Down Terminal for quick commands and maybe open up a couple if I need to run things from the CLI.
You can run programs as a background task and write the debug info to an outfile ... An example of running a .jar as such would be:
nohup java -jar filename.jar &
nohup will tell it to write the debug info to a file named nohup.out, and the & will tell it to run in the background. You can then close the terminal window and the program will continue to run as normal.
For me it largely depended on what I was doing. If I was just browsing the internet, maybe one. If I was doing some system admin / programming, it could be as many as 5.
I sometimes have one open when updating or because I need CLI to do some tweak. I had 2 open once, but that was only because the first one was hidden behind a window and I forgot about it.
I don't mind working with the CLI, but usually I just have no real need for it so I don't use it. The GUIs usually are good enough to use Linux as a regular desktop OS nowadays.
I often have too many terminal windows open as I forget about them and tend to open another because it is usually quicker to press Ctrl+Alt+T than it is to find the exact terminal window I want to use.