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
0answers
5 views

Do arrow keys don't work in terminal emulation vai ssh

While ssh'ing in my own machine, I am able to use Ctrl+P for command history in the terminal emulator. I wanted to know is it possible to make arrow keys function as well. I am ssh'ing through a ...
0
votes
0answers
11 views

Apt-get Command not found for OpenDaylight

I am using OpenDaylight Ubuntu Mininet, when I want to do a sudo apt-get install it tells me Sudo: apt-get: command not found Here is the official code. [mininet@opendaylight ~]\>sudo apt-get ...
0
votes
3answers
53 views

Open a terminal with a login prompt

I want to open a terminal (xterm, gnome-terminal, tilda, whatever) and have it prompt for a username and password to login as. I thought this would be simple but all my Google results are polluted ...
0
votes
1answer
873 views

unable to open X server

I am trying to generate a screenshot of a firefox window in my terminal, but I keep getting an error: root@host [~]# DISPLAY=:1 firefox http://www.cnn.com & sleep 5 && DISPLAY=:1 import ...
2
votes
2answers
33 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...
1
vote
2answers
154 views

Emacs: Switching automatically to char-mode when switching to an ansi-term window

Say I have multiple windows open in Emacs 24.1 and that one of those windows is an M-x ansi-term window with a shell. By default, when I switch to an ansi-term window, Emacs activates Term: line run, ...
2
votes
1answer
330 views

Activating colors in links2 (text mode)

I can't seem to see colors in links2 (text mode), even after playing with my TERM settings. The links2 manpage and README.Debian don't specifically address this issue. Also, command-line options like ...
1
vote
1answer
30 views

Terminal, Prompt changed to “-Bash-4.2” and colors lost

Usually my terminal prompt was username place$ now it only shows bash-4.2$ and all the color settings have been lost (on the terminal profile I have the same color scheme, but it just don't show ...
4
votes
1answer
235 views

vi setting for new window

I'm using Terminator for my terminal emulator. Whenever I open it, the initial workspace comes with the setting I defined in the config file. But whenever I split the workspace, the new workspace ...
2
votes
2answers
23 views

How can I change the terminal tmux info (lower right) called status-right to username or host?

I have 7 dashes (-------) on the lower right. Can I replace them with something like my name or my host name? This is not about the PS1 prompt. I already have time name host dir there. I use tmux. I ...
3
votes
10answers
666 views

How do I run the same linux command in more than one tab/shell simultaneously?

Is there any tool/command in Linux that I can use to run a command in more than one tab simultaneously? I want to run the same command: ./myprog argument1 argument2 simultaneously in more than one ...
6
votes
2answers
988 views

what will ¬ do in bash?

While wanting to start gitg as backgrounded through writing gitg & I accidentally typed gitg ¬. This did not cause an error, instead I got with a later command in the same terminal (translated): ...
25
votes
5answers
1k views

How does clear command work?

I was recently trying to learn more about how the shell works and was looking at how the clear command works. The executable is located in /usr/bin/clear and it seems to print out a bunch of blank ...
13
votes
4answers
4k views

How to scroll in a terminal using keyboard?

How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this?
0
votes
1answer
673 views

How to change terminal character encoding

Today I uninstalled the GUI packages on my home CentOS installation. Now, when the machine starts, I get the login prompt. It acts finicky. Sometimes pressing enter just once after answering each ...
8
votes
4answers
1k views

Displaying week's number in certain format using ncal or cal

Don't you just love it when two commands each do one thing you want but neither do both? This is what cal does. Nice formatting. Lacks week numbers though. $ cal January 2012 Su Mo Tu We ...
0
votes
0answers
12 views

Convert rgba color value to a Terminal supported color

Randomly I will take the following example: rgba(122, 143, 186, 0.54) How can I convert this color to the closest Terminal supported color?
6
votes
2answers
5k views

Poor TTY resolution with nVidia driver

The resolution of the TTY1-6 is poor ~ 640×480 Ubuntu 11.10 | Grub2 | nVidia | NVIDIA GT215 Board I went through the process on this site and after the edit the GRUB menu appears in the correct ...
2
votes
1answer
2k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
0
votes
0answers
12 views

How to bring back `irb` back to teminal screen

I run a program by irb that have rescue and retry statement. Accidentally, I closed the irb running terminal. But process itself is still alive like this. ps ax | grep irb 17749 pts/0 S+ 0:00 ...
3
votes
2answers
936 views

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I ...
5
votes
2answers
551 views

Log file visualizer in a Terminal (UNIX) (terminal logging replay)

I need to log in to various servers via ssh, and its a useful thing to log the terminal (even things in smitty menus/AIX and with correct/exact date/time). I already have a solution for this: 0) # ...
1
vote
1answer
26 views

Combining local and remote terminal multiplexing

I use tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). ...
2
votes
1answer
485 views

How to get rid of special characters in the output of make on centos

I installed centos6.3. When I run gcc, it outputs errors but the function names are surrounded by special characters like this ‘setup_connection’: This same is repeated with variable names. I ...
0
votes
1answer
26 views

Highlight patterns in command output (grep-like but without excluding lines) [duplicate]

I need a command that colorizes some symbol sequence in output of a certain command. I'd like it like grep make it. $ some-command | grep symbol-sequence However grep removed lines that isn't ...
2
votes
0answers
23 views

tmux: shared session, one user in a pane, another in another pane, two different cursors

I've decided to try tmux: have been reading the docs and googling around, trying to find a way to have two users sharing a session, each with a different cursor. However, giving 777 permissions to ...
2
votes
2answers
29 views

How do I increase my iterm (tmux) window scrollback (not the line scrollback)

When I want to scroll back, i.e. with my mouse (or with PageUp) I can only go up about 43 pages (about 2000 lines). Can I increase that? I have my terminal preference -> "Scrollback Lines" set to ...
1
vote
1answer
26 views

Can I enable framebuffer support in xterm [closed]

Can I enable framebuffer support in xterm? If yes, how can I do it? If no, what terminal emulator have a framebuffer support?
-3
votes
1answer
35 views

In what directory can I find the list of terminal commands or the set of scripts that give each one its purpose/power?

Is it hidden or accessible? Also, can you create a new script and define a new command to execute system-wide by adding it to this directory and giving it the same privileges?
0
votes
0answers
33 views

Is it possible to edit the '$' or '#' symbols for users? [duplicate]

What file needs to receive edits in order to make such adjustments?
1
vote
0answers
12 views

What would cause the completion percentage of a command or process to change when executing it a second time in the same environment? [migrated]

While attempting to install OpenCV I noticed that my first attempt aborted only 47% complete. Once I executed "make -j8" again the percentage elevated to 60% completion. 1st attempt: make -j8 ...
6
votes
0answers
110 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 ...
3
votes
1answer
304 views

How to undo in spreadsheet calculator sc?

spreadsheet calculator sc is a very old console-based program. It does what the name says. I cannot find how to undo an operation in its man page. I currently use it together with RCS, ie. manually ...
3
votes
1answer
47 views

Broken history search after upgrade of oh-my-zsh

I did the auto-upgrade of oh-my-zsh a few days ago. Now my filtered history (type a few letters and up arrow) no longer works. I did not realize how dependent I became on it. EDIT: For example, I ...
2
votes
1answer
520 views

Garbage characters appear on screen when typing

When typing, garbage characters somehow appear on the screen for all the letters that I type. The garbage character is a small rectangle box, and this prevents me from executing any commands on the ...
0
votes
3answers
69 views

Switch user on terminal

I'm switching user using command: sudo su - userName On my terminal I always have: user@user directory $ (some command) But when I switch user I have only : $ (some commands) It is hard to ...
2
votes
1answer
361 views

Xubuntu 12.04: slow login

I'm running Xubuntu 12.04, and after I ran the update, my login started slowing down big time. I've dabbled a little bit with the programs in Settings -> Settings Manager -> Session and Startup, and ...
0
votes
1answer
22 views

Having an independent console to kill rogue process?

Sometimes a flash plugin starts using all the mem and CPU or an app is also behaving "naughtily" and my system starts to crawl until i finally get a terminal with htop up and kill the rogue process, ...
0
votes
1answer
44 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 ...
5
votes
1answer
268 views

tmux status line with blank line on top?

I have a nice tmux status line, but I don't like how the bash/commands run flush along it...that is, if the screen is full, i'm typing things right above the status line. I'd like a one line break ...
4
votes
2answers
531 views

mounting local network folder in Ubuntu

I add a folder in /etc/fstab: //172.30.12.37/test/ /home/my/test cifs user=afs,pass=123456,auto,exec,umask=002,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0 Now test link can be seen in ...
5
votes
1answer
91 views

bold text when using 256 colors

I am configuring colors in Mutt, but I think my problem is general to linux terminal. For the 16 predefined colors (such as red) I can make it bold, by specifying brightred However, when using 256 ...
2
votes
1answer
66 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
79 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 ...
0
votes
1answer
189 views

PuTTY and PowerTerm scripting Problem, Open a just in time URL via Samba share

I'm sshing into a fedora server using Powerterm (an expensive overly priced, license based, terminal emulator). The server uses an ancient form of (what I'm told is similar to) cobalt. I have no ...
1
vote
2answers
71 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
63 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 ...
1
vote
1answer
2k views

Endless data loop from dev/ttyUSB while sending AT commands

I have problem sending AT commands to my USB modem. At first I tried php-serial class, but when i was reading data, I got endless loop with strange data. Then I tried to debug problem and opened putty ...
13
votes
3answers
266 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 ...
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 ...