Tagged Questions

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

0
votes
1answer
144 views

Getting more output from NetCat

Currently I'm using the standard netcat -e /bin/sh to provide a remote shell for other computers to access. The problem is however that this shell is rather terrible, since it has limited output. For ...
7
votes
1answer
421 views

Suse 11 vs. Suse 10 difference impacting terminal colors?

I have my dotfiles versioned on github (shameless fork of other people's fine work). At work, I have them on a central linux server (SuSE Enterprise Linux 10). I rsync them from a central management ...
1
vote
1answer
115 views

Window title in X shows wrong application name

I am using LXDE environment in Debian, but I think my question is general. When I have a window opened (i.e. terminal emulator running bash) the window has a window title with the text /bin/bash. When ...
2
votes
4answers
199 views

How Can I Change the Default arguments to gcc When I run Make “filename”

Forgive me if I posted this in the wrong Stack. Every time I run make for a file without any Makefiles in the directory, make still works and compiles the source code but only with the arguments: gcc ...
1
vote
2answers
269 views

Supply input to a program with a password prompt

Is there any Linux command which supplies multiple enter keys to another process which is running in a terminal till the other process dies? For example consider the command yes ' ' | ./ssr-sim ...
-2
votes
2answers
386 views

Run command automatically after login?

Another quick question. I have installed f.lux on Ubuntu 12.04, however the program refuses to work unless I run a command xflux -l [longitude] -g [latitute] -k [temperature] So I've created an ...
0
votes
0answers
22 views

Terminal data flows [duplicate]

When you press enter after entering information into the terminal, what path does the terminal take in order to determine what to do with the string? How can I inject a process at the front of that ...
2
votes
0answers
395 views

How to set a background image for urxvt?

How do I set a tiled background image in urxvt? I have tried the following alternatives in my .Xresources file: URxvt*backgroundPixmap: /home/jgg/Pictures/tiles/escheresque_ste.png;style=tiled ...
0
votes
2answers
66 views

htop displays incorrectly on different vps

When I use "htop" command for linux (+F5), layout on 2 my vps different: Why on my first server I see broken tree?
0
votes
1answer
93 views

Terminator interface inside tilda emulator?

Does anyone knows how to use Terminator inside Tilda? I use Tilda emulator a lot but sometimes I need to have different terminal windows open to check things out and I don't want to open Terminator ...
2
votes
2answers
1k views

Why using cat on binary files messed up the terminal and how?

If I understand correctly the cat manual: concatenate files and print on the standard output cat will take files as argument and print them on standard output. What I don't get is if I use the ...
1
vote
1answer
206 views

Function key mappings in telnet session to Universe Application

Our client uses Termtek terminals to connect to their Universe platform. More terminals needed and we can't get any. The alternative is to get winboxes and run wintegrate or try and get a Linux ...
1
vote
1answer
99 views

Show status lines of vim and tmux on the same line

I would like to figure out a way to get my vim statusline and tmux statusline on the same line if such a thing is possible and not immensely difficult (ideally, the vim prompt, or whatever it's called ...
2
votes
2answers
94 views

In OS X Darwin, why can I interfere with text input across user sessions using cat?

OS X Darwin: Disrupting Terminal Sessions Across User Identities How, in Brief: with cat < /dev/ttys_, in Terminal. My Question This OS X 10.9.2 Darwin behaviour seems odd to me, and I would ...
12
votes
2answers
3k views

tmux, TERM and 256 colours support

Introduction My question arises from the necessity of understanding why I have now (after multiple trials) Terminal and tmux supporting 256 colours and tput colors telling me there are only 8 of ...
1
vote
1answer
59 views

How can I get `cacafire` to show up in the original gnome-terminal, instead of a separate window?

If I am in a Linux virtual terminal (pressing Control-Alt-F1 on Ubuntu), and I use the command cacafire, I get the flames inside the actual terminal. However, if I am in the gnome environment, and I ...
1
vote
2answers
173 views

Why Putty inserting ~ into my Fedora bash shell

Recently while working in Putty logged into my Fedora system I have started getting random ~ characters on my shell. Additionally, while I am editing in VIM I'll have characters randomly change to ...
0
votes
3answers
69 views

Terminal Root Command Warning

Is it possible to write a script (or change some file) in order to warn the user that they are using a command that is normally reserved for root? And if so, how? I'm currently the administrator of ...
23
votes
4answers
1k views

What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas. This is ...
3
votes
1answer
84 views

Center Mutt pager horizontally

Is there a way to horizontally center emails when reading them in a larger terminal using mutt? I'm not interested in centered justification of the text in the email, but I am interested in forcing ...
0
votes
1answer
65 views

Can't terminate PHP daemon process

I've started a PHP daemon process via SSH with php ./my-script.php --daemon Now I want to quit this process, but I can't. It's still active in the foreground of my shell and I've hit CTRL + C ...
1
vote
1answer
183 views

Connect to pseudoterminal (same user) from lost session [duplicate]

I was running several large processes at once, and my PC froze (I suspect due to heat, its a laptop, and the fan was at maximum for several minutes just prior to locking up). The mouse cursor moved, ...
4
votes
2answers
268 views

Can zsh access the stdout of last run program?

I often use find or locate to find out about paths. (~) locate foobar.mmpz /home/progo/lmms/projects/foobar.mmpz The next step is often to open or otherwise manipulate the files. In a happy case ...
5
votes
3answers
554 views

key bindings table?

Do we have a key bindings table that translates all the various ways of referring to a key press? I'm using zsh, but I presume that if there was such a table it would work for any shell. The reason I ...
2
votes
2answers
220 views

Command-line editing vim style [duplicate]

I recently discovered terminal's feature, you can set the keys emacs or vi style I prefer the second. so if you do set -o vi You can use k j l h keys to navigate on the command line. And you can ...
2
votes
0answers
143 views

How to send/receive Messages on RFCOMM Terminal

I have connected to another Bluetooth device via RFCOMM. Now i want to send/receive Messages, but just typing them into the Console won't send them.. where to do that?
11
votes
4answers
2k views

What does a bash sequence '\033[999D' mean and where is it explained?

I have come across bash sequences such as \033[999D and \033[2K\r which are used to do some manipulation on a printout on a terminal. But what do these sequences mean? Where can I find a list/summary ...
4
votes
2answers
228 views

Ctrl-space not getting through ssh

I am on windows 8 using GIT bash to access a remote server via ssh. When I press Ctrl+Space in emacs running locally in console (emacs -nw), everything works as expected. However, when going over ssh, ...
2
votes
1answer
91 views

Start scrolling command prompt when filled until a particular fraction

I'm using the default terminal command prompt on Ubuntu 12.04. When I'm doing something on the prompt (as opposed to editing in VI) the scrolling starts when the text reaches bottom of the screen. I ...
0
votes
0answers
65 views

logname not working under X session

I would like to find out the name of the user at the end of a sudo-chain. The exact tool for this is logname or also who am i works as well. My problem is that while over SSH or tty1 (Ctrl+Alt+F1) ...
0
votes
1answer
124 views

Backlight powersaving: Working in X11, but backlight does not turn off on virtual terminal. Gentoo, Asus EeePC 1015bx

I'm facing a puzzling issue on my laptop, an Asus EeePC 1015bx, which has an AMD C-60 APU and is running Gentoo. Although the screen powersave functions are working in X11, the backlight does not ...
1
vote
0answers
79 views

unable to open openmpi ? Terminal / OSX 10.9.1

Hi I am trying to simulate an example of a software using terminal on OSx 10.9.1. When I execute examples the terminal said Bus error:10 and some errors abput openmpi. I downloaded Openmpi versions ...
1
vote
1answer
57 views

What drawbacks does xterm has?

Why there are so many terminal emulators claim that they were designed to replace 'xterm'? What disadvantages does xterm has? Tell me as simply as you can,a few words is enough,I don't want to read ...
2
votes
0answers
858 views

How to change a font/background color in transparent windows?

When you select something, the color of the selection usually changes to the font color, and the font color is being set to backgroud color. So, if you have a black background in a terminal, and the ...
3
votes
2answers
411 views

How to change the cursor theme in CLI?

I want to change the cursor to be block-shaped. All applications (nano,vi,vim,…) should should have a square-style cursor like the picture above.
1
vote
1answer
237 views

Repeating a text-output terminal command, in a scrollable ncurses-like interface?

man ps says: If you want a repetitive update of the selection and the displayed information, use top(1) instead. ... however, in some cases, I don't like the output of top - I would instead like ...
1
vote
3answers
464 views

Copy & paste in a terminal without SHIFT

In all terminal emulators that I know of, Ctrl is used for sending control codes such as Ctrl+C and Ctrl+Z. On most systems this conflicts with common keyboard shortcuts. Thus on all those systems ...
1
vote
1answer
178 views

Cat and Less give different output

I executed the following command # top > /home/user/top_output.txt Nothing Happened for a while and then i pressed Ctrl+C. When i checked the file that was created, it had the contents in it. So ...
2
votes
1answer
548 views

How do I temporarily make Weechat's message area “full width” like irssi?

Coming from irssi, I'm used to being able to copy and paste messages from the message view of my terminal (PuTTY) running irssi with relative ease without having hard wraps on the text. This works ...
2
votes
1answer
741 views

How can I pipe commands to any terminal?

I often use more than one terminal (or terminal emulator) at a time; and while in X I can copy-paste commands, besides not being very practical, it obviously does not work on the real TTY. The first ...
1
vote
2answers
74 views

Why the duplications in the command line output

Entering the following command prints duplicates as shown below. Not all lines print twice but some do. What gives? XXXX:~ XXXX$ man -k pid pid(ntcl) - Retrieve process identifiers ...
8
votes
3answers
1k views

Why 'echo $0' gives different result for two different terminals?

I opened a terminal on Ubuntu using Ctrl+Alt+T and a different terminal by going to a directory and then right clicking and choosing "Open in Terminal". I did an echo $0 in both cases. In the ...
0
votes
1answer
128 views

Bash script for copying text currently entered to prompt

I'm trying to minimize using of mouse. Copying text in terminal is the mostly inconvenient activity for mouse avoiding. Now, tmux helping me to obtain this purpose. However, I regularly needs to copy ...
4
votes
1answer
88 views

What's the problem with terminals vs colors?

I'm a long time linux/unix user, as almost anyone working with this kind of OSs I use the terminal or a terminal emulator a lot, but I never understood why it's so hard for any GNU/Linux distribution ...
2
votes
4answers
300 views

Incrementing a variable each time the system boots up

The idea is to initialize a variable and set it to 0. Then create a script that executes on boot and increments that variable by 1 each time the system boots up again. Sounds simple enough right?
5
votes
3answers
927 views

How to merge two files with different number of rows in shell?

I have file1 like this: CHR SNP TEST A1 A2 GENO O(HET) E(HET) P 0 AFFX-SNP-000541 ALL 0 0 0/0/0 ...
1
vote
1answer
174 views

set tab color in a tabbed terminal emulator

I would like to set in my terminal emulator (i.e. gnome-terminal) the color of the tabs like in the osx's terminal emulator. Is there this feature in any of the linux terminal emulator plethora? ...
1
vote
1answer
127 views

How to have longer key bindings for stty

If I want to have more than 2 key sequence for binding to the suspend signal, how would I do that? To clarify, Ctrlz is for suspending. But if I want Ctrlz and a k with the previous 2 keys depressed ...
2
votes
0answers
187 views

Create clickable links in terminal

It's possible to create grep-command results file names like a link - for open editor? I want click to filenames in grep result and open my editor with selected line $ grep "mServiceIntent" -R ./src/ ...
1
vote
4answers
946 views

Uninstalling *.run file

I just installed a file called SenchaCmd-4.0.2.67-linux-x64.run by executing the following code: ./SenchaCmd-4.0.2.67-linux-x64.run Due to a problem I describe in detail here, I decided to ...