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

3
votes
2answers
881 views

How to script /etc/issue?

I would like to pipe my tty number through figlet (ASCII generator) for the /etc/issue (message shown before login). Obviously this means I can't just update it from /etc/rc.local. On my system ...
3
votes
2answers
1k views

Disable scroll lock

We have a shell/tty based application that has ~1,000 users. It is running in an environment where X Server is not available. If a user accidently turns on the Scroll Lock, it makes it seem as if the ...
0
votes
1answer
312 views

Escape Code to Change Cursor Shape

I know that Konsole supports an escape code like "\<Esc>]50;CursorShape=0\x7" that will change the cursor shape. I was wondering if any other terminal emulators support changing the cursor shape ...
2
votes
2answers
573 views

Bash: How do you view text that has been “scrolled up too far” in the terminal?

I know there is a simple unix command that allows you to view things from the top and/or allows you to scroll indefinitely toward the top. Not sure what to call it, so it's difficult to google. Thanks ...
3
votes
2answers
197 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
2answers
189 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 ...
1
vote
3answers
111 views

UNIX be-spoke Shell-Script / Commands

Sorry in advanced if this question would be better suited on SO. Basically, I'm getting used to using the command line interface (linux etc..) and I come across commands like: git [command] .. ...
1
vote
1answer
163 views

Why do only some terminals get a pts

When I try to use write to talk to users logged into an X session results vary depending on which terminal they are using. Gnome terminal can pick up writes, but neither lxterminal nor terminator can. ...
2
votes
1answer
128 views

How can I find the valid values for TERM to use in tmux?

When starting tmux I need to pass a valid terminal type. Since I am scripting the initial startup of tmux I would like to cover all bases by figuring out the valid values of TERM on the current ...
1
vote
0answers
210 views

Error while importing Compiz profile from Terminal

File name : import.py #!/usr/bin/python import sys import compizconfig #The last input on the command line will be the path to save the file to. savefile=sys.argv[-1] ...
4
votes
1answer
165 views

Using xdg-open for accessing network with normal explorer

I'm working with small network and I want to start network explorer from a terminal. When I tried to type xdg-open network:///server it opened google chrome and did nothing. I also tried to type ...
4
votes
2answers
3k views

How to solve the issue that a Terminal screen is messed up? (usually after a resizing)

Sometimes, a terminal screen is messed up, and when we use man ls to read the manpages, or press the UP arrow to go to previous commands in history, the screen will show characters not as the right ...
3
votes
2answers
381 views

Urxvt draws lines slowly

I'm using Arch Linux and Urxvt as terminal emulator. When I scroll up/down, text lines gets rendered so slow I can count by top to bottom (heh, 1st line get rendered... ohh, 2nd one! ...). It takes ...
1
vote
2answers
565 views

ALT+F2 doesnt work in Linux Mint Mate

I am trying to install Sublime Text 2 on Linux MINT (Mate) from this tutorial. http://community.linuxmint.com/tutorial/view/907 and I'm stuck on: Next , to create a menu icon press Alt+F2 and type: ...
3
votes
2answers
1k views

How to refresh a window by terminal? Or how to simulate `F5`?

I would like a way to refresh a specific window by the terminal. Probably I will need a comand to find the id or the name of the window and a command to refresh it. It looks like xrefresh cannot do ...
0
votes
0answers
141 views

Input freeze when X starts on other terminal

I have a Packard Bell F2011HC-125GE running a Debian Squeeze-based Linux. After a few days of usage i found the system freezes from time to time. It's obvious the freezes happen, when X starts while ...
1
vote
1answer
1k views

How can I change locale/encoding to avoid getting weird characters in terminal?

I have installed tree on my ubuntu box, when i connect to it from Putty and I launch tree i get this : $ tree âââ html.vim -> xml.vim âââ js.vim -> xml.vim âââ xml.vim instead of this : $ ...
0
votes
2answers
220 views

is writing to slow storage in nohup mode blocking the process?

If I have a process writing to nohup and the storage where it writes to is slow, does it block the process which is running in nohup? For example: process A is running in nohup, it needs to write 10 ...
1
vote
3answers
483 views

What's the difference between these ways of accessing the shell?

From what I know it seems that there are many ways to access the shell on Linux. So far the methods I know are: To use a program such as Terminal or Konsole To use the shortcuts CTRL + ALT + F1-6 To ...
15
votes
1answer
474 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 ...
2
votes
5answers
2k 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 ...
4
votes
1answer
2k 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 ...
1
vote
1answer
612 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
145 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 ...
5
votes
3answers
610 views

Change $TERMINFO in bashrc script

I'm trying to set TERMINFO="$HOME/.terminfo" within my .bashrc script. The reason being is that my terminal isn't in the system terminfo location, and so I have its terminfo file in my home directory. ...
0
votes
0answers
2k 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
178 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?
10
votes
3answers
613 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 ...
6
votes
3answers
708 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
216 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
1
vote
3answers
617 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 ...
3
votes
1answer
487 views

wait for autossh connection to complete

I'm trying to create a script that runs a few commands that take a long time to execute and require a constant connection, but autossh user@server wait $! #or wait ${!} commandA commandB doesn't ...
5
votes
2answers
169 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 ...
7
votes
4answers
2k 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
218 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
1answer
140 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 ...
3
votes
1answer
563 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 ...
9
votes
4answers
12k views

How to disable line wrap in a terminal?

I need to view large logs files using a bash shell. I was using less to open the files, but since the lines are too lengthy there is some kind of line/word wrapping going on. Since the files are ...
1
vote
2answers
232 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. ...
6
votes
2answers
658 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 ?
2
votes
1answer
635 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 ...
2
votes
0answers
2k 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 ...
2
votes
1answer
153 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
96 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
46 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
195 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
95 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 ...
7
votes
1answer
736 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 ...
2
votes
2answers
885 views

Launch terminal in su mode XFCE

I want to set up a launcher for my terminal in XFCE that automatically prompts for the su password, in gnome my shortcut was: gnome-terminal --command="su -" --geometry=180x40+400+80 How do I ...
5
votes
1answer
3k views

how to resize horizontally a screen region

I am using screen to split my terminals but I would like to be able to resize the horizontal dimension of the split screens. If I do C-a :resize 10 I only change the vertical dimension to 10 lines. ...