A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, ...

learn more… | top users | synonyms

0
votes
2answers
34 views

Cowsay doesn't say anything

Okay, I know this is kind of a stupid question to bring to the table here... but why not. I'm using OS X 10.9.2, Mavericks, and have installed cowsay in my terminal with $ sudo gem install cowsay and ...
1
vote
1answer
30 views

How to install gcc 4.4.7 on Mountain Lion

I need to install a specific version of the GNU GCC compiler, gcc 4.4.7, on my macbook, but I'm not sure how to do this. Most places I've found install later versions but I need to install that ...
0
votes
0answers
15 views

I looking for clear and concise steps to copy a regular DVD onto my Desktop then burn the copy to a blank DVD

I'm looking to insert a DVD/movie into the disk drive and copy it to my mac in a file formatted in a way that will allow me to insert a blank DVD and burn previously mentioned file onto just mentioned ...
12
votes
3answers
732 views

What does . .bashrc actually do?

When I enter a eg. a new alias into my .bashrc file I can't use it in that terminal window immediately and until recently I thought I had to restart the terminal to reload the .bashrc file. Then I ...
0
votes
1answer
28 views

Setting window title with iTerm and Fish

I want to set up a custom profile in iTerm2 that connects directly to a remote machine in tmux, with some custom SSH arguments. I have a fish function that does this, called "ss". When I have this ...
3
votes
2answers
32 views

How to create a file and insert a line in it using OS X terminal

How can I do the following using the terminal on OS X? Create a file named .inputrc in your home directory and put this line in it: set completion-ignore-case On
0
votes
1answer
20 views

Check current foreground terminal (“lsvt” like “chvt”)

"chvt N" lets me switch to foreground terminal N, the same as pushing alt-ctrl-FN. What command line program tells me what terminal I'm currently using?
1
vote
0answers
23 views

How to prevent mysql blobs from borking my terminal

When using the linux terminal client for mysql, every column with a blob prints out tons of control characters and the terminal has to be reset. This looks something like the following Map: �PNG ...
2
votes
1answer
64 views

Paste a URL in terminal using bash script on Ubuntu

I'm on Ubuntu 12.04. I need to write a Bash script which would automatically paste a URL to the terminal without having to press CtrlShiftV on the keyboard. The script contains the command: wget -O ...
0
votes
0answers
55 views

URxvt: vim and cursorColor [invisible cursor or invisible cursor text]

Introduction I've always used a light-background terminal and a dark-background editor (vim). On this I'm not willing to compromise. In any case, I've just switched from xterm to urxvt ($TERM == ...
0
votes
0answers
10 views

Why can't tmux bind my KeyRemap4MacBook mapping

I'm attempting to map some fancy keypresses to tmux commands using KeyRemap4MacBook and tmux bind. I have a KeyRemap4MacBook mapping that looks like: <item> <name>Test</name> ...
0
votes
1answer
84 views

How do I control TeamViewer in a Mac terminal?

I have TeamViewer installed (through the official GUI installer) under OS X on a PC. I'd like to find out the ID of said computer through SSH, which should be printed to terminal when I start ...
0
votes
2answers
30 views

'Detach' from program terminal Ubuntu

I mainly use Windows but was interested in messing around with Redis so I installed it on my netbook (running Ubuntu 12.10) and accessing it via SSH. I would like to start the Redis server then leave ...
1
vote
1answer
36 views

KDE Konsole resize window with bash command

I'm trying to write a bash-script that resizes my KDE-Konsole terminal-window when started. But I can't get it to work. VT-Terminal-codes don't seem to work properly. $ echo -e "\e[8;2;20t" shrinks ...
0
votes
1answer
40 views

How do I change an xterm window color on an already open window?

I have two xterm windows, window titled "A" and window titled "B". I'd like to be able to dynamically change the -bg color of "B" from the "A" terminal. something like: from xterm "A"... set ...
0
votes
1answer
27 views

one-way sync from common folders on various computers

I'm not sure if this is a duplicate, but I'm having a really hard time finding a precooked solution. I have a desktop with 1TB hard drive and 3 laptops with 256GB each. I download a lot of music to ...
2
votes
0answers
62 views

Coloured commands in terminal prompt

I've customized the prompt in my Mac terminal like this: export PS1="\[\e[31,1m\] \w $ \[\e[0m\] " This way I get the /working/directory $ in bold red, but I also want to get the command I execute ...
1
vote
0answers
26 views

Problems with tmux, mutt, and terminal colors

If I start mutt in a tmux session like this: $ tmux new-session -s mutt mutt Mutt complains: Error in /home/lars/.mutt/colors, line 20: 230: color not supported by term Error in ...
0
votes
0answers
3 views

Pbcopy sort of freezes (I can still type though)

If I use pbcopy on a small file, string or just run it, it doesn't do anything. Just gives me a blinking cursor. I am still able to type something but can only exit using ctrl-c. Is anyone familiar ...
0
votes
0answers
12 views

What environment variables are set when I use ssh?

When I use ssh, I notice that my TERM variable is forwarded automatically. This is quite useful, but I'm wondering what other variables are forwarded or set. So far I've found the following ...
0
votes
0answers
16 views

Can I receive “terminal” output through USB?

I've acquired my first SoC hardware, the only direct connectors being 2 USB ports and 1 DB-9 port. I know that the latter type has been used for a long time as a terminal connector, enabling direct ...
0
votes
0answers
41 views

File URL appears when hosting serial terminal

I'm using my Apple IIGS as a serial terminal (using Modem.MGR as a vt220 emulator) to OS X 10.9.2. I open the session by typing screen /dev/tty.usbserial 19200 on the Mac, and then Ctrl+A Shift+Colon ...
1
vote
2answers
65 views

Concise IP information in OS X Terminal

Is there a command for the OS X Terminal that shows you only the most vital IP configuration information about your machine? I know there is "ifconfig" but that brings up a bunch of (in most cases) ...
0
votes
2answers
42 views

How to display time in terminal instead of username@hostname?

In Ubuntu terminal you see: someone@workstation: as the prefix of each line. Is it possible to have the time displayed on each line? [current time]someone@workstation: The time will keep ...
0
votes
1answer
41 views

bash directory name with a space in CDPATH

I'm trying to set a shortcut so that I don't have to type a really long directory name so often. In ~/.bash_profile, I am doing something similar to: export ...
1
vote
2answers
53 views

Open a new terminal using a keyboard shortcut

I want to be able to open a new terminal window in OSX Mavericks by using a keyboard shortcut. The terminal window should be: New (I don't want an existing one to be focused) Opened on the desktop ...
1
vote
0answers
25 views

Xfce terminal resize not sent across ssh

I'm running into some strange behaviour related to terminal resize updates not being sent across ssh. On my local machine if I open a terminal and do tput lines I get 24. Then making the window taller ...
0
votes
1answer
48 views

Two process ids for one terminal in bash linux mint

I am running one bash terminal in linux mint. I wanted to see the process ids of running terminal. So I tried two things: ps -C 'bash' ls -l /proc/*/exe | grep bash Both of this giving two ...
0
votes
1answer
33 views

OS X: invalid option -o

When I open terminal I got the following message invalid option: -o. I cannot use /bin/bash --login because I got the same result. I think that terminal try to execute bash login which can't be ...
1
vote
2answers
34 views

bash terminal that remembers its state when restored from a crash

In Ubuntu, I use the default gnome-terminal to run my commands. I typically have a couple of windows open, each with several tabs. When my OS crashes∗, for whatever reason, and I reboot, I ...
1
vote
2answers
44 views

Message appears every time terminal is opened

On OS X Mavericks, whenever I open up iTerm (or the default Terminal), the following message appears: -bash: /etc/profile.d/sm.sh: No such file or directory -bash: /etc/profile.d/rvm.sh: No such file ...
0
votes
0answers
16 views

emacs can't handle Hyper_L modifier inside a terminal

I remapped my capslock key to Hyper_L using xmodmap. when i use the hyper modifier to define new bindings in emacs like (global-set-key (kbd "H-n") 'backward-char) it works when emacs is launched ...
0
votes
0answers
20 views

Add Ubuntu 11.04 repositories

I installed ubuntu 11.04 a few days ago. But I added the repositories which are only accessible from inside the campus. I changed the repositories to the ones suggested on this page : ...
0
votes
0answers
110 views

MobaXTerm colors are washed out - how to configure the scheme

Out of the box, MobaXTerm's rendering of the Midnight Commander screen looks like this (ZOC by comaprison to the right; PuTTY looks similar): How can I fix this? Is there some environment variable ...
4
votes
3answers
577 views

Could not create directory '/var/empty/.ssh'

Every day, after several hours of use, anything using SSH will just randomly stop working. The only solution is for me to restart my machine, which fixes it until it randomly occurs again. > git ...
1
vote
1answer
43 views

Vim crashing when pressing `ctrl-s` in terminal

When I press ctrl-s in vim running in the terminal the program crashes to the point where it doesn't even terminate when I send kill -SIGKILL <vimPID>. The process isn't listed in the output of ...
1
vote
1answer
29 views

Restore session/state in terminals

When I close my browser it remembers "state" in the sense that it remembers what tabs I have open and text that I had entered into various forms. Is there a way to do something similar with my ...
0
votes
2answers
77 views

How to exit a batch script when a command is not found

I want the terminal to close itself if adb is not recognized. ADB is a program this script will utilize to detect device. Here is a bit of my script echo My name is RomBreaker echo. echo And I'm ...
0
votes
1answer
31 views

Map key to clear mac terminal

I have a bad habit of hitting cmd+k in Mac Terminal to clear the screen (and losing my history). I'm wondering if there is a way to map the command-k combo to run /usr/bin/clear when I press it. There ...
1
vote
1answer
30 views

Launch and pass scripted commands to a Terminal script

I've got a.command, a script that waits for user entry (like typing something and then hitting return) It loops forever-ish. For example, it tells the user if their entry is a leap year, or its a ...
0
votes
3answers
65 views

Text expansion tools for linux?

I am looking for a tool that can auto-close brackets and quotes in a terminal. For example, when I type echo " It should automatically expand into echo "" and put the cursor in the middle. This ...
0
votes
1answer
24 views

who / w / logname broken in multiple terminals

I have a strange problem: In a GUI session, depending on the terminal being used the following two (related) problems appear: who and w doesn't list the user's active session logname returns ...
0
votes
1answer
39 views

How do I access wikipedia offline from command line?

I want to open up an offline version of wikipedia from the command line with a specified article (and preferably a window size and position as well). I've downloaded wikipedia dumps in several ...
0
votes
2answers
102 views

Tmux 1.8 gives “failed to connect to server” when trying to source a file

I have tmux 1.8 on my machine, and it works correctly if I just invoke it on the command line with tmux on the command line. However, when I try to run tmux source-file <any-file>, I always get ...
0
votes
1answer
40 views

How to call python script in other folder without prepending `python`?

I have a small (self-written) python script located in, let's say, C:\dummy\myscript.py. In my Windows 7 terminal, I can call this script with either one of the following three commands. They all ...
1
vote
0answers
38 views

Can I reverse the stream direction of my terminal?

I'm not sure on how to word this question any other way but that's it. Is it possible to reverse the way your terminal prints text? For example if I type a command, I type it from the bottom of the ...
-1
votes
1answer
18 views

Is this possible to redirect the tty output to two targets?

I would like to let the tty to have two outputs. Is this possible to let the output display on two terminal? I would like to have one terminal (on Linux), which is I am working on, and ...
0
votes
1answer
15 views

Determine which session manager restored Konsole a script is running under

If you log out of a KDE session with any Konsole terminals still open, they'll be there when you log back in (unless you've configured KDE otherwise). How can any scripts running under these ...
0
votes
2answers
47 views

What are the differences between each virtual console (Ctrl+Alt F1 - F6)?

In Ubuntu, there are 6 virtual consoles, which can be accessed by pressing Ctrl +Alt + F1 - F6, and F7, to exit. What are the differences between these virtual consoles? Do they run different things, ...
0
votes
0answers
67 views

startup applications in linux mint

I'm trying to run the opendns updater in linux mint automatically on startup. And I found this page: https://support.opendns.com/entries/23554765-Linux-IP-Updater-for-Dynamic-Networks which basically ...