A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

learn more… | top users | synonyms

1
vote
1answer
17 views

tmux blocks certain things on my Mac

I really like tmux and use it often so I set the following in my .zprofile: [[ $TERM != "screen" ]] && exec tmux so when I open a new window, tmux will be there for me. However, there are ...
2
votes
0answers
49 views

How can you get the current terminal line (the one that is still editable by the user)?

I need a way to use the current line which the users typed into as variable for a shell function. my current code, which can be called by ctrl+r zle -N search bindkey "^R" search search () { read ...
1
vote
2answers
59 views

Confusions mitigation while working similar environments in multiple servers

I often have to open multiple ssh sell terminals of remote servers together., eg. Dev and test. These paths and applications are exactly similar. And I am often confused if I run a particular command ...
0
votes
2answers
25 views

Configure distant terminal behaviour

I just installed debian 7 on a VPS, created users, configured ssh ..etc The problem is that the terminal application changed its behavior just after connecting with my new username: Autocompletion ...
1
vote
0answers
26 views

Terminal won't go back to prompt after launching app [closed]

I'm running elementary OS Luna (based on Ubuntu 12.04) on which I've installed Okular as I consider it to be the best PDF reader even if it's meant primarily for KDE. The issue is this, I need to use ...
0
votes
0answers
11 views

Determin if the currnet terminal has a dark or light theme [duplicate]

I have several (Bash) scripts that uses ASCII color codes. They look good on my dark themed terminal, however on my colleagues light themed terminal the colors I selected don't look that good. Is ...
0
votes
0answers
15 views

Broadcast messages don't appear on gnome-terminal, but appear on xterm

I'm curious about the behavior of broadcast messages by $ sudo wall myfile the message from myfile appears on all /dev/ttyN devices (the ones to which I can switch by pressing Ctrl+Alt+fN), it also ...
3
votes
1answer
30 views

Error with gedit can't save any file

meraj@meraj-SATELLITE-C850-A785:~$ sudo gedit /etc/php5/apache2/php.ini (gedit:16243): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ...
0
votes
1answer
35 views

Download yad with bash script

i'm building a simple deb package (single binary) for a little project i've been working on. Now I want to build a nice interface around it and used zenity for a couple of times, but this time I ...
0
votes
0answers
34 views

Seeing SSH debug messages in Terminal/console

I am seeing "debug3: Received SSH2_MSG_IGNORE" appear in the terminal on a RHEL 6 Linux server. I thought maybe rsyslog had a console entry, but it doesn't. sshd_config has logging at AUTHPRIV, and ...
0
votes
1answer
46 views

How to set the prompt and tab-title on Gnome-Shell (Gnome 3, centos 7)

This is embarrassing, but I don't seem to be able to set the command-prompt or the shell title. I'm using Gnome3 on centos 7. PROMPT I've added the following to ~/.bashrc: export PS1="\w \$ " The ...
1
vote
1answer
16 views

How to configure up arrow to get to the previous command in maxima?

If I press Up in a shell, then normally it brings up the previous command I entered. In maxima it's all different. Pressing Up just prints out ^[[A. The same thing happens when I try to move the ...
0
votes
1answer
46 views

Dynamic text wrapping of terminal output

I am specifically looking for is dynamic formatting of output. In every terminal emulator I can remember having used in Linux, when some program prints to the screen, the output gets formatted to fit ...
0
votes
0answers
20 views

Why some packages don't get upgraded?

I upgrade packages in terminal using this command apt-get update && apt-get dist-upgrade -y --show-progress && apt-get autoremove -y && apt-get check && apt-get ...
4
votes
4answers
424 views

Multiple terminals at once without an X server

There is a way to visualize multiple terminals at the same time without running a Xorg session ? I have a really low profile machine that could be great for some basic stuff but has an horrible ...
1
vote
1answer
24 views

Standard Terminal Font Aspect Ratio

What is the aspect ratio of a mono font that's made for terminal use, or more specifically, the size of the cell that any single character would fill? I've read that a standard terminal is 80x24 ...
1
vote
1answer
24 views

Save views in multiple screen terminals

As I do in default single view screen terminal of ubuntu; gnome-terminal \ --tab-with-profile=Default --working-directory="some dir" --title="some title" \ --tab-with-profile=Default ...
4
votes
0answers
36 views

Show error messages and information that a program was killed on another terminal [duplicate]

If I open a program, say evince, from the GNOME GUI, it is not attached to a terminal. If I send it a signal, it acts accordingly but nothing shows up in my terminal. If I were to open it in a ...
-1
votes
2answers
41 views

How to use grep to find all instances of one .txt file in another?

How would I use grep to compare if any line from one .txt document occurred in another? Further how would I use grep to find out the opposite? Would it be grep -v?
1
vote
1answer
41 views

Who does the linewrap and how to deactivate?

If I connect to a linux device via serial adapter (no matter if pyserial, screen or minicom), and no matter how I change settings like stty when I enter a long command it gets line wrapped ...
2
votes
1answer
183 views

Installing Steam on Debian Wheezy

I downloaded the .deb file from the Steam website, but couldn't install it as it complained about having and "outdated" version of libc6. I look around and apparently I have to add jessie sources to ...
0
votes
0answers
24 views

X11 Path Issues and Confusion for Installed Packages

I am using GMT (generic mapping tools) and SAC (Seismic Analysis Code), and each use X11 (or XQuartz on 10.9.4 Mavericks) to display graphics. When I want to display postscript using ghostview, I get ...
4
votes
1answer
37 views

Is it possible to change what tty a terminal emulator is connected to?

If I have a terminal emulator (say, xterm) by default it connects to a pseudoterminal like /dev/pts/3 What I would like to know is if it is possible to connect it directly to, say, tty1? Could I ...
1
vote
0answers
23 views

Using X11 Displays through Terminal.app commands : generic mapping tools

I am trying to figure out why I can't use ghostscript or ghostview (or any other X11 applications) when I try to call them in the Terminal. I am using bash, and I also used Fink to get the packages I ...
3
votes
1answer
22 views

logging session with 'script' - how later read it?

I log my terminal session with script. As we know, it contains all characters that were send to terminal, including control ones, like backspaces etc. This makes output file a kind of unreadable, ...
7
votes
5answers
429 views

Vintage terminal for Ubuntu

So I have just been introduced to Cathode for OSX and I am completely fascinated by how classic it looks with it's 1970s retro style. Does anyone know of any programs/packages I can download to get my ...
3
votes
1answer
119 views

How to draw a single pixel in a terminal?

Until now I used characters to draw images, shapes etc in a terminal. Is it possible to draw a single pixel? Let's say: foo 1 1 red This will draw a red pixel at the coordinate (1, 1). Is there ...
2
votes
1answer
41 views

Play .wav when text scrolls in terminal

After watching a TV show, I came up with a fun idea. Is there a way to take that cheesy high-pitched sound effect they play every time text scrolls down a command-line screen on TV and play it when ...
1
vote
1answer
31 views

use mosh without giving up local scrollback / history?

Is there a way to use mosh without giving up the local scrollback? Basically, in some circumstances, IP-roaming is indeed useful and needed, but the extra terminal emulation and key prediction seems ...
4
votes
1answer
61 views

What exactly is 'scrollback' and 'scrollback buffer'?

What are "scrollback" and "scrollback buffer" in programs like bash and screen, and how do they relate to the tty, the programs being run, and stdin/ stdout/ stderr? Here is the only definition of ...
-1
votes
1answer
48 views

How to control network bandwidth using Linux [closed]

Currently my Internet is really slow. But I want to allocate all resources to a browser that is loading a movie. How do I do that?
2
votes
2answers
97 views

What is the problem with the output of plink?

On my Windows7 machine, I'm traversing to the installed path of PuTTy Application and running: plink <hostname> to connect to my remote Linux host. I see some unrecognized characters in the ...
3
votes
1answer
63 views

Stop printer jobs from terminal

I am working with an old CentOs version (5.0) that is not really my machine. Recently, for some dark reasons, I have problems in printing. The jobs rest in queue, and I cannot cancel them from the ...
1
vote
1answer
44 views

How can I recreate a VT100 environment and connect an Esprit 250C Terminal?

I have an Esprit 250c Modular Color RS/232 Terminal "Intelligence Unit" ( overview here, and pdf of features here ) I would like to make it work as a text-based tty terminal, maybe VT100 as it ...
1
vote
1answer
91 views

What does typing a single apostrophe do in terminal? [duplicate]

I typed in a single ' by accident and I got this as a result and exited out of it after typing ' in again. ' > > ' : command not found What does this do?
1
vote
1answer
45 views

Control + L not clearing screen

When I try to clear my terminal screen on OSX: computer@ ~ () $ ^L And when I hit Enter after that it just shows: -bash: : command not found Any ideas on how this happens? My .bash_profile, ...
2
votes
0answers
19 views

Running Custom commands in a Terminal Application [duplicate]

I'm running a terminal application in /dev/pts/X terminal that has its own console as:         What I need is to run commands specific to this application but from ...
5
votes
1answer
74 views

Copy/paste across vim without X

In vim, "+p pastes from the system clipboard. However, when working remotely over SSH on a non-GUI box, this is not available. Is it possible to implement copy/paste in this environment? Merely ...
13
votes
3answers
341 views

Using variables to store terminal color codes for PS1?

In my .bashrc, I use ANSI terminal color codes to colorize various bits. It looks like this: PS1='\u@\h:\w\[\033[33m\]$(virtual_env)\[\033[32m\]$(git_branch)\[\033[0m\]$ ' where virtual_env and ...
15
votes
2answers
416 views

How do I start all shell sessions in a directory other than $HOME?

When I open my non-login shell in Ubuntu, my present working directory is /home/user_name (my $HOME environment variable), but I want to change this such that when I start my terminal I am in some ...
1
vote
1answer
42 views

Is it possible to switch the user logged in to desktop environment via the terminal?

Is there any possibility to login as a different user while changing also the environment (or how do you say the wallpaper, shortcuts,...) via terminal command like su, ssh or login? Like when you ...
7
votes
3answers
411 views

How to permanently change both STDOUT and STDERR color to grey?

This question is similar to Can I configure my shell to print STDERR and STDOUT in different colors? But I am looking for a solution that will allow me to change both STDOUT and STDERR to ONE color. ...
0
votes
2answers
58 views

Why do I have to execute bash programs with ./? [duplicate]

Why is it that some bash programs will only run on my system when I type ./ before their name? An example: In my [...]/android/sdk folders I have to execute adb like this: ./adb devices Why not ...
3
votes
0answers
47 views

Is it possible to save the state of open terminals?

When working on certain projects, I routinely open a number of terminals, navigate each of them to various directories and resize and position them on my desktop. Is there any way to save this ...
2
votes
3answers
336 views

How are “xterm” and “screen” related?

I am not quite sure if there is any subtle or wide differences between screen and xterm. I have used screen before and had it being described as kind of like a multiplexer and have tried xterm a few ...
1
vote
0answers
84 views

How to enable Control key combinations for GNU screen on putty?

I am accessing a linux box via ssh using putty. Key combinations work fine when I'm not running screen. However, Ctrl key combinations do not work under a screen session. In fact, a Ctrl-any key is ...
0
votes
1answer
38 views

Switching to tty changes mouse speed - why / how to change?

I like using a fast mouse, so I use xset to speed it up, more than possible with the normal gnome settings. When I switch to a tty and back to Gnome, my mouse is really slow again (changed to default ...
2
votes
1answer
54 views

What modern terminal programs are still configurable per-invocation? [closed]

What terminal programs have the following characteristics? Unicode support geometry, fg/bg colours, other options settable from command line on a per-invocation basis actively supported ...
9
votes
2answers
395 views

disable CTRL-D window close in terminator (terminal emulator)

I am often logged in through multiple SSH sessions. To logout from my sessions, I press CTRL+d, until I am back on my local machine. However, sometimes I press once too many, and my terminal exits. ...
0
votes
1answer
39 views

tmux: ncurses apps are displayed wrong (with garbage and so on) [duplicate]

I have ncurses apps (say, aptitude) working nice in plain xterm (or gnome-terminal, or any other terminal I've tried), but if I run it inside tmux session, screen isn't properly refreshed while I do ...