Tag Info

Hot answers tagged

10

Check out tmux and/or screen. A comparison of the two programs which satisfy essentially the same needs can be found on the tmux FAQ. A very good blog post for getting started with tmux is at Hawk Host: TMUX the terminal multiplexer part 1 and part 2. If you want to know more about tmux's versatility, there's a nice book/e-book that covers a lot of ground ...


5

If using bash, the following should do the trick: TOLASTLINE=$(tput cup "$LINES") PS1="\[$TOLASTLINE\]$PS1" Or (less efficient as it runs one tput command before each prompt, but works after the terminal window has been resized): PS1='\[$(tput cup "$LINES")\]'$PS1 Since most terminals cup capability is the same \e[y;xH, you could also hardcode it: ...


4

You can run screen from a console. It will provide multiple terminals. You can even split the screen to see more than one terminal at once. Some of the relevant screen commands are: C-a c C-a C-c (screen) Create a new window with a shell and switch to that window. C-a Q (only) Delete all regions but the current one. See ...


4

I use different background colors for different environments: production: red - think before you hit enter testing: yellow - sure you want to do that? dev: green - feel free to go crazy Another must-have are different prompts, a good idea would be to include the hostname.


4

You can install kmscon which implements kernel mode setting graphics handling in the console. Its developer - David Herrman - is the party in large part responsible for systemd's multiseat session handling, and this functionality is provided in his own kmscon package. He's also largely responsible for wlterm and similar multiseeat session handling in wayland ...


2

Rather obviously, in the end it's always you who have to know what commands you are putting into which terminal. Now, you can do several things to distinguish the sessions: use different colours of the terminals (this includes background colours). One way to achieve this is to make the terminal use a specific background however, it is more flexible to ...


1

Try moving [[ $TERM != "screen" ]] && exec tmux to your .zshrc file. That way the command will only be run in interactive shells. An interactive shell is simply any shell process that you use to type commands, and get back output from those commands. That is, a shell with which you interact.


1

I just found an answer, the new created user was having /bin/sh instead of /bin/bash. So I did : sudo chsh -s /bin/bash my_new_user


1

What to do? You shouldn't use sudo for graphical applications, such as gedit. Use gksudo instead. What's causing the error I'm not sure. Apparently, the reason of error you get is that gedit is trying to invoke SessionManager's Inhibit method via D-bus. If normal applications can connect to dbus, they should have some config files in /usr/share/dbus-1. ...


1

I've experienced this a lot in Oracle pl/sql. Trying installing and using rlwrap and see if it helps: http://linux.die.net/man/1/rlwrap


1

Does Ctrl+Alt+F2 not switch you to another console? As I understand it that shouldn't depend on X. (I'd go with tmux, really, as it works over SSH, supports split-screen, etc, but Ctrl+Alt+F1/Ctrl+Alt+F2/etc has the advantage of no tmux dependency.)


1

Terminals didn't all have the same aspect ratio and didn't all have square pixels. So if you pick the aspect ratio of one model, it won't match other models. The popular VT220 had a 8x10 character cell. The earlier VT05 had a 8¾" × 6⅝" display area, and a 72x20 size, and a 5x7 character cell. The site vt100 has a lot of manuals of DEC text terminals, you ...


1

No, to do this in a sane way is not possible. Both programs expect to just redraw their status line. It would require one program do draw over the other programs status line, without the other program knowing. And it's hard to predict when the other will redraw over it. I could think of two "dirty" ways to approach this: have one program overwrite part ...


1

i use the default terminal in ubuntu 14 (bash) and to scroll by page it is SHIFT + PAGEUP or SHIFT + PAGEDOWN to go up/down a whole page or CONTROL + SHIFT + UP or CONTROL + SHIFT + DOWN to go up/down by line.


1

If you want to show a short file, that fits on one terminal screen, and what is changing is possibly the whole file, you could use watch: watch cat example.txt Every 2.0s: cat example.txt Sun Aug 3 15:25:20 2014 Some text another line It shows the whole file every 2 seconds by default, including an optional header: The ...


1

If you know you're going to want to do this in advance ... Create a script session on your home computer (using -f to flush buffer): script -f output.txt rsync -vr /media/master /media/slave (Ctrl+D to finish the script session when get home) At work you can track output.txt: tail -f output.txt



Only top voted, non community-wiki answers of a minimum length are eligible