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

4
votes
2answers
237 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
464 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
205 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
137 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
216 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
90 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
63 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
117 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
76 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
56 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
785 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
381 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
224 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
303 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
152 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
492 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
672 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
73 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
122 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
84 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
263 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
895 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
160 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
124 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
185 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
827 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 ...
0
votes
2answers
80 views

Command to restore filesystem to state after installation of the OS

How can I wipe all the changes to the filesystem since installing the OS? It's not that I want to destroy the files because they contain sensitive data or anything like that; I just want to start over ...
0
votes
1answer
98 views

Host name on terminal changes when I connect internet : why?

[acme@localhost ~]$ su Password: [root@localhost acme]# Now I connect internet and I get the following: [root@localhost acme]# exit exit [root@localhost acme]# su [root@dhcppc9 acme]# Edit ...
8
votes
1answer
281 views

Why do we need so many terminal emulator packages and what is their use?

This is something that has been so confusing to me for a long time. I am using Linux but I have gaps in my understanding of certain aspects and one is about the terminal. As I came to understand it ...
0
votes
1answer
24 views

How exactly is a Linux desktop/device/display expressed in a terminal?

My plan is to use vpxenc (video encoder) and flac (audio encoder) to record the screen/microphone, but I'm stopped short of entering the input (file) in the command line. How can I exactly address a ...
3
votes
4answers
1k views

Pipe all input and output of terminal to file

I do not know if this is even possible or not, but in an attempt to keep track of many changes I am about to make to my system I want to track all input I type and all output from a terminal I'm ...
1
vote
0answers
231 views

Passing escape sequences to shells within ansi-term in Emacs

In a regular terminal (e.g. iTerm2 on OS X) I can connect to a database, e.g. > psql .... and then, as I type my command in psql, e.g. $ select foo from bar I can move around (as I type psql ...
1
vote
0answers
129 views

Which process is occupying a certain pseudo terminal pts/X?

On Linux: Normally pseudo terminals are allocated one after the other. Today I realized that even after a reboot of my laptop the first opened terminal window (which was always pts/0 earlier) ...
1
vote
1answer
228 views

UTF-8 in Terminator

I use the Terminator terminal emulator, and out of pure boredom, I installed and attempted to run this program: https://github.com/thiderman/doge However, it requires UTF-8 encoding to work. I opened ...
0
votes
1answer
68 views

Zenity refuses to work in background

I'm trying to create a background bash script which creates a popup in certain circumstances, however, my code only works when run manually in a terminal (e.g. not in the background). I've tried ...
10
votes
1answer
202 views

Include colouring in GNU ls time-style

I know, I can specify custom time format for ls like this ls -lAF --time-style="+ %Y-%b-%d %H:%M:%S" --color=always but I would like to "smuggle in" colors inside the time format. For example, I ...
1
vote
1answer
202 views

Mac 10.9.1 // Gerris installation //

I am trying to install Gerris . The website is : http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation I followed the instructions. But I could not install Gerris Dependencies. I installed ...
3
votes
0answers
75 views

Slow terminal print out

Just installed (netinstall) debian wheezy on a second machine newer machine however the terminal print out is noticeable slower than on the old machine although the new have faster CPU, RAM and HDD ...
0
votes
0answers
22 views

remotely connecting to Unix from Mac to use Gerris simulation

I am trying to run a simple file on Gerris software (is like gnu) on a remote Unix machine. I moved the simulation file written in nano into remote machine say dps11. samires-mbp:~ samirebalta$ nano ...
1
vote
1answer
66 views

How to open a directory and save code in it Gerris in Linux?

I am new to this Unix and Gerris (software) world. I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine. ...
2
votes
1answer
192 views

arrow keys are not working with terminal server telnet (termnetd) session

I am using terminal server package termnetd 3.2, which reads serial port and gives output on telnet port. I logged into terminal server port, every thing works fine except the arrow keys, Home and End ...
1
vote
1answer
139 views

What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

In previous jobs and experiences, I used screen or nohup to run my long running jobs from my terminal screen. Most, if not all of my previous jobs' servers dropped you if it didn't detect any ...
1
vote
2answers
432 views

Keeping xterm terminal alive on crunchbang linux debian wheezy

I like to keep a number of terminals open at different locations on my development VM. For this I use terminator because I got a big screen and I can divide the terminals anyway I want. But after ...
4
votes
1answer
233 views

How to find out the escape sequence my keyboards sends to terminal?

Let's say we have a generic keyboard with some unknown keys which may send escape sequences to terminal. The keyboard is connected to an xterm terminal emulator running on a generic BSD/Linux. To ...
0
votes
1answer
214 views

How do I find out the keycodes for Ctrl+up and down arrow for TERM=screen?

I am using tmux a lot, and I have already managed to tune my OS X terminal to send the correct key codes for Ctrl+left and right arrow (\033b and \033f). I found those information on the web. However, ...
8
votes
3answers
181 views

Clear / erase a mistyped password in a terminal

One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh the terminal I was wondering if there's a way to clear/erase the invisible password ...
0
votes
1answer
55 views

Different representation of bash in 'ps -f' command [duplicate]

I have two bash running; one is Terminal application that runs bash, the other one is xterm application that runs bash. With ps -f, I have -bash one, and bash at the other. What makes this ...
5
votes
2answers
447 views

Processes do not respond to my signals

I have a strange behavior on my system. When I invoke a command in the shell (bash version 4.2.45(1)-release), say top or cat, the running program (the process) does not respond to Ctrl+C. I even ...