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
3answers
1k views

Colorized `cat` for source and script files? [duplicate]

Possible Duplicate: How can I display syntax highlighting on a file? Is there any application like cat, but with color output? I'd like to view my files with colors like in any IDE's ...
4
votes
3answers
2k views

Read and process a string, char by char, yet allow user to simple line edit the input

I want to incrementally read a line of input from the terminal, and allow the user some basic line editing functionality; INS, DEL, RIGHT, LEFT HOME, END, BACKSPACE Each time the string is ...
3
votes
4answers
991 views

Keeping a process running on server even SSH is closed [duplicate]

I am running long program on server, which is basically Jar file of java program. I want to keep this program running even if SSH terminal is closed, how I can keep this program running on server?
3
votes
2answers
411 views

Ruby update not working using two methods

I tried to install ruby version 1.9.3 with this on my mac 10.6.8: $ \curl -L https://get.rvm.io | bash -s stable --ruby Oskar-Niburskis-MacBook-Pro:~ oskarniburski$ rvm install ruby-1.9.3-p362 ...
3
votes
4answers
2k views

Set tab width in GUI terminal

I found that setterm -regtabs 4 doesn't work in xterm or urxvt. But, this xterm_set_tabs () { TERM=linux; export $TERM; setterm -regtabs 4 } will circumvent the problem. But, I suspect ...
3
votes
4answers
264 views

Change working directory of 2 terminals at once

I've typically have gnome-terminal open with ~8 tabs, using 2 consecutive tabs for the same task (one has emacs, the other is used to do git checkins and unittest runs and so). When changing tasks, I ...
3
votes
2answers
867 views

closing unused gnome terminals

while working I start lots of gnome-terminals and do something with them. dd on first terminal, 12 ssh sessions to a bunch of servers to do something. These sessions are finishing it's job and get ...
2
votes
2answers
840 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 ...
2
votes
3answers
492 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 ...
2
votes
2answers
234 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
1answer
825 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 ...
2
votes
4answers
370 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?
2
votes
1answer
135 views

How can a bash script detect support for window titling escape characters?

I have a debug trap that runs every time I enter a command in bash that sets the window title to indicate what command is running. I'm leaving out all the configuration details and boil it down to: ...
2
votes
0answers
71 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 ...
2
votes
5answers
3k views

Perl script, do cd on terminal

In Script to change current directory (cd, pwd) it is shown how to run a bash script that changes terminal directory. But how do i run a perl script that runs a bash script that changes terminal ...
2
votes
5answers
4k views

Fix terminal title after SSH remote logging to another machine

right now I am using an one-line perl code to change titles of my terminal bars, print("\e]0;@ARGV\7"); but every time after I ssh to another remote machine, the title will be modified by the host ...
2
votes
4answers
1k views

Open file found with 'find' command

This is probably an easy one, but I can't figure it out and it's pretty much not searchable. In a folder hierarchy I have exactly one file of type xyz. I want to find that file and open it with a ...
2
votes
3answers
865 views

Overriding the shade of color displayed

I have to work on systems which display some colors that are hard to read. I ssh into these systems, but don't have management permission to change the colors they display. Is there any way I can ...
2
votes
0answers
309 views

How can I check which shell I am currently using? [duplicate]

Possible Duplicate: How to test what shell I am using in a terminal? An echo $SHELL will only display the value of the SHELL variable which would indicate the default shell on the system. ...
1
vote
0answers
86 views

Problem in writing message from one terminal to another terminal

I have a user of name x in tty1 and y in tty2. x wants to write some message to y and vice-versa. When I typed write y tty2 in the tty1 terminal, it said: write:you have write permission turned off ...
1
vote
1answer
240 views

Using ncurses for basic GUI on a process started inside an init script

I have a custom written application that runs on a embedded setup (buildroot). My application has to run every time the target device boots up and so I wrote an init script to do this and it works ...
1
vote
2answers
563 views

Invoke a command/script disconnected from the controlling terminal?

I'm investigating the behaviour of a script that is normally run as an automated process (e.g. cron, Jenkins). The script can (eventually) invoke commands that behave differently (seeking user input) ...
0
votes
1answer
54 views

ANSI escapes in Pash prompt are displayed as garbage in Gnome terminal

I would like to use Pash, a PowerShell implementation for mono on my CentOS box. After compilation I started it and got $ mono Source/PashConsole/bin/Debug/Pash.exe ...
0
votes
1answer
111 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 ...
0
votes
1answer
95 views

Why this sort command gives me an empty file? [duplicate]

prova1 is a file with some text. When I run this code prova1 become empty: sort prova1 > prova1 I know that to achieve the effect I can do: sort prova1 -o prova1 I would just know the reason ...
0
votes
2answers
1k views

Why screen is not splitting my GNOME terminal?

I am working in a remote Linux box using VNC.I have a single terminal with lots of tabs opened in my system. How can I split them using the screen utility? Does the screen utility work with already ...
-2
votes
2answers
471 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 ...
-2
votes
3answers
228 views

Auto continuous scrolling of man output

When I execute man foo the terminal shows only the first page and then pauses. Then I have to manually press the keys to scroll here and there. After executing man foo how do I get an output which is ...
-4
votes
3answers
416 views

How can I change my username? [duplicate]

My current username is mpatil, how can I change that to algo without losing data or causing problems?