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

3
votes
1answer
87 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
177 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
23 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
2answers
341 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
47 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
72 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
45 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
37 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
83 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
98 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
8 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
26 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
19 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
45 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
107 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
53 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
61 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
77 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
42 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
71 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
47 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
55 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
49 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
23 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
27 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
329 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 ...
6
votes
3answers
1k 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
66 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
57 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
111 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
46 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
44 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
113 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
37 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
68 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
670 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
125 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
86 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
23 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
48 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
74 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
175 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 ...
1
vote
1answer
95 views

Infinite loop in Terminal (ksh) to launch commands

I'm trying to create a loop in terminal to launch every second during the execution of an script the following command. I don't want to create the loop in .sh script file, i'm trying to do in the ...
0
votes
1answer
36 views

Tell me, when script has finished

Some years ago I had a small script[1] called beep-forever which ringed the terminal bell for ever. Use case: I want to know if a script has finished: do-foo-which-lasts-ten-to-thirty-minutes.sh; ...
0
votes
1answer
69 views

Removing guest account from Ubuntu 12.04 caused Ubuntu to go to terminal on startup

I have used this tutorial to disable guest account on Ubuntu 12.04. The change was basically adding this line allow-guest=false to the file /etc/lightdm/lightdm.conf And the result was that on ...
0
votes
1answer
79 views

Running qtfaststart in a folder containing multiple .mp4's

I have a library of videos, all of which need to be adjusted for web-streaming by putting the moov atom ahead of the rest of the video with qtfaststart. This allows playback to begin before the client ...
0
votes
1answer
21 views

Retrieve history on terminal (macOS)

When I use the command clear I am able to scroll up and find previous events. Nevertheless, sometimes I prefer ⌘+K (Command-K) because it doesn't pollutes my command history (up and down arrows). ...
0
votes
1answer
447 views

Location of SHA512 Haslist on Mavericks>

I'm trying to find the SHA512 hash of the user passwords on OS X Mavericks (10.9.1), I'm aware that you can get the user .plist from: /private/var/db/dslocal/nodes/Default/users/{username}.plist ...
1
vote
1answer
60 views

OpenSSH, FreeBSD screen overwrite when closing application

I installed a fresh FreeBSD 10 on a VM and connected via SSH and I've noticed that whenever i close a program (e.g., htop, top, nano etc) the contents of the session gets overwritten. This doesn't ...
0
votes
3answers
37 views

Connect to remote computer through one between (with credentials)

I need to access to remote computer and I have username and password, but I can access only from third computer ( like proxy, I also have credentials for third computer). WhenI start project, from ...