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

1
vote
1answer
2k views

When a command is over half the terminal size it breaks

Whenever I type in a bash command longer than about half the width of the shell window I'm in, the command breaks like it would if I filled the whole screen 3rd command in image - typed a few xs ...
4
votes
2answers
853 views

Ansi escape code in VIM

I have a log file with colored log entries, where colors are defined by ansi escape codes. When I display the file (using cat or more), terminal understands the ansi codes and logs are colorful. But I ...
8
votes
5answers
4k views

vim on FreeBSD does not react on arrow keys correctly and other vi-like behaviours

I tried to use vim on FreeBSD (via ssh on Linux xterm-compatible terminal). However vim behaves similar to vi out-of-box. For example it does not react on delete key, insert F character instead of ...
6
votes
2answers
9k views

How to properly run “top” command through SSH?

I have to run top command on one computer being on another. My targeted PC has IP 192.168.0.81 I was trying to do it: ssh 192.168.0.81 top But I got this result: top: tcgetattr() failed: Invalid ...
2
votes
4answers
3k views

Terminal with “repeat last” button

I'm often compiling stuff and therefore repeating the same command over and over, so I'd like to benefit from my "visual memory" and have a sort of "repeat last command" button attached to a terminal. ...
1
vote
3answers
357 views

Print folders names character count

I am trying to use find . -type d -print | wc -m where -m or --chars would print the character counts of the folder names. Take following screen shot as example, the character count for tempFolder + ...
11
votes
2answers
5k views

How to change the contents of a line on the terminal as opposed to writing a new one?

So, when wget gets a web page, it shows you a status bar that indicated how much the file(s) is/are downloaded. It looks like this: 25%[=============>______________________________________] ...
5
votes
2answers
1k views

How can I disable terminal resizing

Vim scripts sometimes resize the whole shell (in my case the Taglist plugin). I don't want this behavior, which is possible with the shell command resize, too. Is there a way to suppress the whole ...
-1
votes
3answers
396 views

Duplicate bash prompts

I'm having an interesting issue with XFCE Terminal/Gnome Terminal (not reproducible in XTerm), where executing bash or logging in using login or su will open a new Bash instance inside a Bash instance ...
3
votes
3answers
253 views

Emulate mouse cut'n'paste behavior in a test script

I've got a shell script which outputs shell commands which are supposed to be copy-pasted with the mouse from one terminal window to another (I can test it in the same window though). The output ...
1
vote
2answers
21k views

changing an environment variable like PATH forever [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) to change the amount of PATH variable , I use : export PATH=... but when I close the terminal, the ...
16
votes
2answers
9k views

How do I leave a message for another (local) user?

I know you can use write to send a message to a currently logged in user, but how do you leave a message for a user who is not logged in? The solution I have seen is modify the motd, but that will be ...
5
votes
1answer
376 views

Is split-screen `cat`ing possible?

I asked the question How to use cat or less depending on the line count? with the intention of browsing many files without having to scroll up too far to view my history after displaying a long file, ...
5
votes
1answer
1k views

Redirect terminal output to image file

I need to programmatically run some unix commands and get the output in a image file, the format could be png or jpeg (jpg). The commands are run in an AIX (IBM *nix) machine. I don't have ...
1
vote
0answers
475 views

grub-mkfont input and output formtas

I have a font that I can set using setfont and rc.conf [CONSOLEFONT]. It is in psf2 format. I would like to use the font in Grub as well. I'm using Grub2. When I run grub-mkfont -o ~/outfont pc.psf ...
3
votes
4answers
294 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 ...
7
votes
1answer
6k views

Ctrl+Alt+F8 meaning

I know that Ctrl+Alt+FX (X=1 to X=7) are 7 different ttys. Suddenly, I tried to find out what other combinations Ctrl+Alt+FX (X=8 to X=12) leads to. After pressing the combinations, I found that a ...
2
votes
2answers
536 views

What is the difference between `terminator -e ranger` and ranger from terminal?

EDIT: I just noticed that when I hit Enter on the ranger (if it is executed with terminator -e ranger) then nano opens while with e it uses my main editor. In contrast, when I use a normal shell to ...
7
votes
3answers
2k 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 ...
2
votes
1answer
489 views

Shell from a Firefox tab

I have a requirement for a user in the office where they would like to open a terminal shell within a Firefox tab. Is this at all possible?
2
votes
2answers
134 views

Is there an easy way to stop and reissue a command?

I am doing Node.js development in Ubuntu and I'm curious if there is a way to quickly stop and restart a node server. I run this command to start my app: $ node app.js When I make changes to ...
0
votes
1answer
408 views

Run a script after some command were executed

I have a list of scripts ./myscript <param> | grep "asd" ./myotherscript <param> <param> > file ... How can I automaticaly run another script when one of these command in the ...
2
votes
2answers
2k views

How to change the colour of embedded terminal in linux mint 12 to be able to use `ls` and `byobu`?

I'm using Linux Mint 12 and am having problems with the embedded terminal in gedit. Using the default themes I'm unable to use 'ls' and 'byobu' as in part of their output foreground and background ...
9
votes
2answers
737 views

Dynamically reformatting man pages on terminal dimension changes

One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now ...
9
votes
1answer
3k views

How to save a session in Yakuake

I use the Yakuake drop-down terminal and would love if it could save my session of tabs somehow. When I have 6-7 tabs open, all named and everything, it is a giant pita having to re-create that on ...
7
votes
4answers
5k views

Parallel execution of a program on multiple files

I have a small script that loops through all files of a folder and executes a (usually long lasting) command. Basically it's for file in ./folder/*; do ./bin/myProgram $file > ./done/$file ...
2
votes
3answers
3k views

open whole folder in gedit

Moving from OS X & Textmate to Ubuntu & gedit, the one feature of Textmate I am missing is it's command line tool. With mate I was able to open a folder as a Textmate project using mate . ...
-4
votes
1answer
167 views

Linux kernel compiling commands [closed]

I'm trying to make a mini operating system (using the linux kernel). I'm planning on it being for x86 and I'm trying to make it so that it not only runs on qemu but also on a real device. What are the ...
1
vote
1answer
330 views

How to active tabs on windows by terminal? wmctrl doesn't have option available

I'd like improve a script of mine that uses firefox to perform tasks. I need activate a window and a tab with a specific name. For example, the window name could be Mozilla Firefox and the tab ...
7
votes
2answers
335 views

Why doesn't `echo abc^H` just print `ab`?

As I recall, ^H means Backspace. I generated it by pressing CTRL+V, CTRL+H. So the ^H should remove the last character, as it is the same as Backspace and it should act just as if I pressed Backspace ...
1
vote
0answers
483 views

Any way to recover list of open terminal tabs/windows before my system went down unexpectedly?

I had been working with maybe 6 tabs open in various directories, when I left for a small vacation. Upon returning, I discover a power outage must have rebooted my machine. Is there any way for me to ...
3
votes
1answer
1k views

How to run mutt via ssh without going through an interactive shell

Mutt depends on curses according to this here, my discussion with Michael: @hhh: ssh hhh@server.com mutt <--- what is wrong here? trying to run mutt there... @MichaelMrozek: mutt uses curses, ...
2
votes
0answers
464 views

Terminal logging via putty on AIX (including smitty)

I use a terminal logging method on my Ubuntu Desktop for the GNOME-terminal (it's good when I use SSH in GNOME-terminal): Implementation As root: apt-get install bsdutils As the normal user: ...
1
vote
1answer
668 views

How does “Remote tab title format” in Konsole work?

Some terminal programs, in particular Konsole supports "Remote title format" which allows you to specify title for remote tabs which includes placeholders like remote host. How does this work? Where ...
9
votes
3answers
3k views

Is it safe to close shell just by clicking “X” or using “ctrl+d”?

Is it safe to close shell just by clicking "X" or using "ctrl+d" while logged in as root with su or is it safer to close it by typing "exit"? Is there any difference (security-wise) at all or is it ...
3
votes
3answers
102 views

console space eaten up by file contents

see the example below to understand my problem ; consider my console prompt look like this user@server $ ls "I opened a file temp" user@server $ vi temp "temp will open in the same window, when I ...
1
vote
1answer
2k views

What does @ sign mean in 'ls' output on Mac OSX Lion terminal? [duplicate]

Possible Duplicate: what does the @ mean in ls -l? What does the @ sign mean in the following "ls" output? -rw-r--r--@ 1 root wheel 489 Jan 4 13:14 boot.plist
1
vote
1answer
2k views

Running shell commands in .sh file results to error

I have two following linux shell commands: echo 'CPU type and model' cat /proc/cpuinfo | head -5 | tail -1 When i run these commands directly in Terminal, i get this result truly: CPU type and ...
3
votes
1answer
568 views

Can I configure XFCE terminal the way to open all the new terminals as tabs of one window?

I strongly prefer to have one terminal window with all the terminals being tabs in it, but the most usual way I open a terminal is calling it from another application (usually with "Open Terminal ...
0
votes
2answers
914 views

Errors when loading terminal

Every time I run a new terminal window (before I do a single thing), I am greeted with these messages: env: bash: No such file or directory env: bash: No such file or directory env: bash: No such ...
5
votes
3answers
3k views

How can you mirror the stdout of one terminal to another one?

I'm not sure if I'm phrasing the question correctly, but let's say that I have two virtual terminals open, and if I typed ls in one of them, I'd get the contents of the directory in both of them (the ...
1
vote
0answers
373 views

ffmpeg: error while running with libx264

Main code: ffmpeg -i 2269801.avi -threads 0 -vcodec libx264 -b 900k -acodec libfaac -ar 44100 -ab 96k -ac 2 earthgirlsareeasy1.mp4 [libx264 @ 0x16cdde10]broken ffmpeg default settings detected ...
2
votes
2answers
1k views

Cannot enter a forward slash character when logging in via ssh

When I ssh into one of our servers, I cannot enter a forward slash character, which makes it difficult to do pretty much anything (like ls /). How can I get the forward slash to work? Some ...
1
vote
0answers
277 views

i386 libtool conflicting with x86_64 libtool when installing Handbrake

I've been trying to install Handbrake on centos 5.8 with the help of some different guides. I'm running x86_64, and whenever I try to install packages necessary to build the binary, the arch ends up ...
3
votes
1answer
4k views

Real time system info script using ncurses and dialog

I'm trying to create a simple bash script that I can run over ssh that will display some basic system information using ncurses and the dialog command. I've tried two approaches so far: 1) Run dialog ...
1
vote
0answers
103 views

Some of the users login screen do not display colors

In my lab I have Redhat Enterprise Linux 5 server. Users log in through telnet for C programming Some of the users' login screens display colors, while some other users login screen do not ...
0
votes
2answers
2k views

Terminal Character Encoding Issue BitchX

I ran BitchX on three different Linux OS-es because I got this weird � (question mark) on two of them (Linux OpenSUSE 11.4 and BackTrack 5 R1) using yakuake/konsole (OpenSUSE) and terminator/tilda (BT ...
6
votes
3answers
1k views

emacs syntax highlighting fails on my SSH client

I need to connect to a remote server by SSH to edit some documents. When I work at home, I SSH to the remote server using SSH Secure Shell and open emacs, but it doesn't fully highlight documents as I ...
2
votes
1answer
850 views

Why dialog doesn't support emacs shell on Debian?

Dialog is a utility that provides dialog boxes from shell scripts, you may have seen them in aptitude during upgrades. When i use Emacs shell (M-x shell) and type sudo aptitude safe-upgrade, i get the ...
3
votes
1answer
1k views

Terminal resizes itself

I've recently installed Linux Mint 12 ("Lisa", i.e. not the KDE or Debian version) on a Zotac Mini-PC (Which has an AMD Video card. I'm not using the proprietary drivers as they don't work very ...