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
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> ...
4
votes
4answers
11k views

how to cd into a thumb drive from terminal ( Mac OSX )

How do i change into the directory of my thumbdrive? I've been poking around and see that this command, "diskutil list", lists all my local disks. That produces this.. David-Adamss-MacBook-Pro:~ ...
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 ...
1
vote
1answer
35 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 ...
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) ...
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 ...
2
votes
4answers
305 views

How can I partially clear my terminal scrollback?

I want to partially clear my terminal scrollback history, but only from where I have selected with my mouse in the scrollback and up. Is this possible? I'm on a Mac, and I use iTerm2 and Terminal.
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
0answers
25 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
11 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
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 ...
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
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 ...
1
vote
8answers
5k views

How do I rename a bunch of files in the Command Prompt?

I have a problem with filenames. The stupid camera I am using resets the autonumber sequence every so often, and therefore I am getting tons of conflicts if I try and put lots of photos in a single ...
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
4answers
65 views

How to move only files with other equal filename but different extension in the folder

I have a lot of folders, some with mp3 files only, others with m4a files only, other with files of both extensions. I need to identify which folders have files in both extensions, then move the mp3 ...
1
vote
2answers
52 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
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 ...
3
votes
1answer
288 views

How to check if cygwin mintty/bash is run as administrator?

Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"? Why, specifically? I have typically several mintty terminals open when using ...
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 ...
1
vote
2answers
89 views

Mac Terminal showing bash instead of my username

This makes it hard to know what directory I am in. I installed a version of python for school and now it says -bash-3.2$ instead of MyMacbook: ~$. I'm sure this is really simple, but I know nothing ...
0
votes
1answer
46 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
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 ...
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
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 ...
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
105 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 ...
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
42 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 ...
0
votes
1answer
38 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 ...
9
votes
3answers
1k views

How can I enable colored output for OSX diff?

I need to diff two files (not two versions of the same file, they are however tracked by git, but that is unrelated) and I would like some colored output, how can I achieve that? $ diff file_1 file_2 ...
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
2answers
96 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
37 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 ...
5
votes
1answer
129 views

Open new Finder tab when using 'open .' in the Terminal

In the Terminal I use open . to open the current directory using Finder. Open folders in new tabs settings is set in the Finder, yet it opens a new window every time. By the end of a project/day I ...
0
votes
1answer
18 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). ...
-1
votes
1answer
17 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 ...
2
votes
3answers
1k views

Terminal IRC client with xterm-256color support

irssi doesn't support 256 colors. WeeChat doesn't support 256 colors. BitchX doesn't support 256 colors. And yet vim, my text editor, supports 256 colors. Am I missing a secret fork of one of the ...
32
votes
2answers
33k views

How to find out Mac OS X version from Terminal?

I know how to find Mac OS X version from GUI: Apple Menu (top left) > About This Mac Is there a Terminal command that will tell me Mac OS X version?
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 ...
1
vote
1answer
42 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
31 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
33 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; ...