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

2
votes
1answer
1k views

How to get rid of special characters in the output of make [closed]

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 am wondering if the ...
17
votes
1answer
733 views

How does “man” restore the screen when I quit the program?

If I open a man page of a program like cat or ls, it prints (may not be the appropriate word) the contents of the man page and when I press q, it shows the screen just like before invoking the man ...
13
votes
1answer
10k views

How to set the bash display to not show the vim text after exit?

My question is simple, but I am finding it hard to frame/explain it easily. I log into several Unix boxes with different accounts. I see 2 different things for user1 and user2, while editing text ...
37
votes
5answers
45k 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?
1
vote
2answers
1k views

run a remote process via autossh in background

In Ubuntu I'm trying to run the geany editor on my local X display via the command: autossh -o StrictHostKeyChecking=false -XCg me@otherDYNDNShost geany & Trouble is, after the first ...
3
votes
1answer
504 views

Why do I get this 'Erase is backspace' message after I do a reset in xterm?

So when I do a reset in xterm I get something like this: Erase is backspace. [omarg@computer]: I've already checked my .bashrc and .Xdefaults files but it doesn't seem like that message is being ...
2
votes
0answers
6k views

I can't open the terminal in Cinnamon

I have Linux Mint 13 with Cinnamon installed, but I can't open a terminal using right click nor using CtlrAltt this is just an issue with Cinnamon, why is that happening? Update I tried to solve the ...
2
votes
1answer
451 views

Fonts bug in terminal (Arch)

I' ve installed droid fonts, after that in terminal I see the word not well, someone is on another As you can see the problems are especially with 'm' and 'w' What's the problem?
4
votes
2answers
887 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 ...
8
votes
3answers
3k views

Difference between commands in bash script and commands in terminal

Are there any differences between commands that you type into the terminal and commands you include in a script?
4
votes
1answer
593 views

ncmpcpp character problem

This was really wired! All = became q on my xfce4-terminal app, what's wrong with it? Any ideas? %> set | grep LANG LANG=en_US.utf8 LANGUAGE=en_US.utf8
0
votes
1answer
2k views

What is the .screenrc file for?

What is the .screenrc file for? I have seen it in some dotfiles repos and such but I don't quite understand what it's for. Judging from the name it sets settings for the Terminal itself, not the ...
2
votes
2answers
289 views

How to stop GUI apps spam the terminal?

I start a gui app from a konsole window and it writes out totally useless information. I do not need that. Is there a way to stop this, once and for all? I tried disown, doesnt help. I guess 2>&1 >...
5
votes
2answers
548 views

Getting or cloning the users current terminal?

I have to work with a script that forks and launches an instance of xterm in order to display log output in one window and have an interactive interface in the other. Personally I prefer rxvt-unicode ...
9
votes
3answers
14k views

Disable colours on terminal and SSH

My local Linux machine has coloured terminal output like this; When I SSH to a pfSense/BSD box it changes the colours like this; Even when I SSH from to a machine that doesn't have a coloured ...
1
vote
3answers
263 views

How to view output for ALL processes simultaneously?

I know that you can connect to various background processes to watch their console output, but is there a way to view the output of all processes at once? Likely it would scroll quickly and be hard to ...
1
vote
2answers
9k views

Turn off --skip-grant-tables in MySQL

I'm pretty new to using Linux but am setting up my MySQL databases on an Amazon ec2 instance. I followed some directions I found about resetting the user login pass by using the --skip-grant-tables ...
2
votes
2answers
463 views

PseudoTerminal concept in Linux [duplicate]

Possible Duplicate: What is the exact difference between a ‘terminal’, a ‘shell’, a ‘tty’ and a ‘console’? This question follows directly from another question of mine in this great forum. ...
14
votes
2answers
3k views

Concept of controlling terminal in Unix

Can some one please explain in an easy to understand way the concept of controlling terminal in unix and unix like systems ? Is it related to a session ? If yes, then how ?
3
votes
3answers
5k views

How can I kill a job that was initiated in another shell (terminal window or tab)?

If I begin a process and background it in a terminal window (say ping google.com &), I can kill it using kill %1 (assuming it is job 1). However if I open another terminal window (or tab) the ...
2
votes
1answer
1k views

Redirecting syslogd Error Messages to an Error Log or to a Null File?

I have an old PowerPC laptop (old Mac Powerbook G4) that I am running a variant of Debian Squeeze on (MintPPC 9). I keep getting Kernel error messages when I am connected to a particular wireless ...
3
votes
2answers
769 views

Hash symbol on a teletype

My issue is a bit unusual, so I want to provide a short background. I was looking at old winners of the International Obfucated C Code Contest, and came across an entry written for the PDP-11 (the ...
2
votes
3answers
1k views

Tmux Terminfo problem with Zsh key bindings

Zsh in Emacs edit mode comes with the default key binding ALT + Backspace to delete a word on the right side of the cursor and ALT + D to delete a word on the left side. I would like to add the latter ...
4
votes
0answers
4k views

Reset background to transparent with tmux?

I recently set up tmux-powerline and noticed that the background color on the status-left, if changed, refuses to go back to default and transparent (if transparency is enabled). I was able to fix ...
3
votes
1answer
1k views

Unix User Level Keylogger

I need to record my own keystroke data for some academic research. I wrote a regular keylogger for Windows, but now I need to write one for a Unix environment, with the constraint that I have only ...
4
votes
1answer
272 views

Battery Bar in URxvt?

I was looking through an ArchLinux thread on URxvt, and I came across a setup at post #184 that I am going crazy looking for. It looks like there's some kind of battery bar in the PS1, with a ...
1
vote
1answer
152 views

mouse in midnight commander works only under root

I posted a question a little time ago about mouse that doesn't work with terminal, and then I remarked that mouse works fine, but only under root. Can I change this behavior? It seems i need to ...
2
votes
0answers
64 views

How do I detect a copy event in Finder?

I am trying to strip formatting from text copied from my Illustrator docs. Someone accurately pointed out to me that running pbpaste | pbcopy via command-line will perform this action on text in the ...
3
votes
3answers
527 views

Mac Terminal - moving files

I am trying to use Mac Terminal command to move files to a new location. I have a list of almost 2000 filenames with full paths in a text file. (All of them are in one parent directory, but ...
0
votes
2answers
118 views

Stop receiving signals when running music from terminal

I can play music in my music collection by typing: 'vlc somefile.mp3 &' Which works great except that I always start receiving some signals from the execution of playing that song. In the ...
14
votes
1answer
2k views

How to copy from/to the tmux 'clipboard' with shell pipes?

When working in a shell environment I run fairly often into the need to copy 'intermediate pipe output' around (eg. from/to already running editors, to other shells, other machines, etc.). When in a ...
6
votes
2answers
6k views

“who am i” after “su” not showing new user id?

Why is it that when I switch user 'su username' and then execute 'who am i' is outputs the previous user which I was logged as and not the one I've switched to?
5
votes
2answers
657 views

Can emacs use gpg-agent in a terminal at all?

I understand that there are problems with getting pinentry-curses to work with emacs (see some of the comments on http://emacswiki.org/emacs/EasyPG), and so using emacs in a terminal isn't compatible ...
2
votes
2answers
1k views

Lost ls directory highlighting after a crash

Normally commands such as ls and grep offer nice syntax highlighting for me. But my system crashed (running an ubuntu VM) and after I restarted, I no longer have this highlighting, it's all a dreary ...
2
votes
2answers
684 views

How to stop a infinite running process (ztail) started by a ssh session after that session is closed

I have a peculiar problem. My server supports multiple ssh session simultaneously, so that multiple admins can manage (via command line interface) it simultaneously. We have a command which calls ...
3
votes
3answers
836 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 ...
8
votes
2answers
21k views

Sending function keys (F1-F12) over SSH

I have a Fedora machine that I can SSH to. One of the programs I'd like to use occasionally uses the function keys. The problem is that I'm SSH'ing from an Android tablet (ASUS Transformer Infinity) ...
2
votes
0answers
80 views

Is it possible to modify the colors in bash? [duplicate]

Possible Duplicate: Is it possible to configure Bash so that STDERR can be a different color than STDOUT? In bash, the only color I know how to modify is the prompt, using \[ and \]. From the ...
6
votes
2answers
1k views

emacs colors based on $TERM environment variable

I want to know if it is possible to make emacs, when running in a gnu screen or tmux session, use the same colors as when TERM=xterm. In a gnu screen or tmux session, TERM=screen and emacs uses a ...
3
votes
1answer
169 views

How to use the Meta/Alt Key with tput?

I want to redefine keybindings for the commandline of a lisp dialect. The commandline is actually modeled after Vi and implemented with tput/terminfo. I want an alternative version with Emacs ...
6
votes
3answers
1k views

Setting tab width in C++ output in bash

I have a c++ program and I use the tab character "\t" to organize my output to a human-readable columns. However, 8-spaces-wide column in bash is too narrow for me. How can I increase it? Note: In C++...
4
votes
4answers
952 views

Export terminal display to PDF

I want to include the display of my terminal in a beamer presentation. Simply taking a screenshot, however, produces a fairly low-resolution png that looks poor in the presentation. I would like it ...
1
vote
1answer
159 views

How to create cross-platform keyboard bind commands?

I'd like to have the same keyboard shortcuts in all the terminals I use. Since they don't have the same *nix on them, and since terminals can be very different, I'm looking for a reasonably portable ...
1
vote
1answer
399 views

How to disable messages in unix if mesg and chgrp not allowed?

This is one of my questions for my exam .. We are not supposed to use mesg y/n for this but we should effectively avoid mesgs along with the problem of not being able to change groups.
2
votes
1answer
2k views

Show current “setterm” values/settings

I know that setterm can be used to adjust parameters such as screen blanking time on a virtual console. How can I show the current setterm settings/values for all parameters?
2
votes
2answers
2k views

What command line to use to set up Double Commander's “Run in terminal” feature to use XFCE terminal?

Double Commander has a handy "Run in terminal" feature but it is configured to uses xterm by default. Needless to say many prefer to use their desktop environment native terminal client and so do I. ...
18
votes
4answers
2k views

How to fix a terminal after a binary file has been dumped inside it?

After having played with curl, a binary file has been dumped inside my terminal. For example, the horizontal lines: ─ I use to format my prompt are replaced by 'q', and it can be much worse. Why ...
8
votes
2answers
638 views

Command line input while a running script displays strange symbols

If I use the bash shell cli and run some program which doesn't return immediately, then I input some letters (basically typing the next command before noticing the previous didn't finish) and the ...
3
votes
1answer
4k views

Backspace, del, arrow keys not working with interactive programs in Tilda

I currently run Openbox on a light netinstall of Debian. In Tilda, when I use a program like nslookup or winexe, some of my keys do not work properly. Backspace generates ^? Up generates ^[[A ...
62
votes
2answers
4k views

Clear / erase a mistyped invisible password on a shell / terminal in Linux

One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh. Sometimes I mistype one or more letters and then I have to press backspace key a few ...