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

1
vote
2answers
199 views

Find available ids lower than 500 vis dscl

How can we write a script around dscl to loop over the currently listed IDs in use and then spit out the first id under 500 that is not in use yet? Update # 1 (Feb 17th 2013) I found some very ...
3
votes
2answers
1k views

Terminal blank, .bash_profile broken

I was following a tutorial for configuring OS X Mountain Lion and somehow after editing the bash_profile I can't run the terminal properly. The terminal starts just fine but is blank, if a wait long ...
0
votes
1answer
24 views

ubuntu terminal — how to get back prompt after message that takes away prompt?

I'm doing something in terminal on ubuntu. I have a message like "please ask your system administrator to enable user sharing." Ok, great. Thanks ubuntu. But when I press enter, it goes to a new ...
0
votes
0answers
13 views

Email backup from terminal without rc file

I am looking for an application that I can use to backup all my different IMAP accounts. It needs to be done from the Linux terminal so that I can script and schedule it using cron. So far I have ...
3
votes
2answers
453 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 a user's home directory and put this line in it: set completion-ignore-case On
0
votes
0answers
9 views

Program to perform custom mapping of ANSI colors to TRUECOLOR?

Does anyone know if there's a console application that can intercept output from other apps and translate ANSI colors into desired TRUECOLOR values? This would provide similar functionality to ...
2
votes
1answer
3k views

Run Safari from terminal with given URL address without open command

I'm having trouble with opening Safari from terminal. Command I tried is /Applications/Safari/Contents/MacOS/Safari http://www.example.com Safari opens and tries to navigate to the url: ...
0
votes
1answer
96 views

How to use curl behind a McAfee Web Gateway?

curl seems to get some URLs just fine, while others get blocked with a response that indicates authentication is required and a valid cookie is missing. I can download the same URL in Chrome. No ...
1
vote
1answer
40 views

“ffmpeg: command not found” - But it's in the current directory? [duplicate]

I'm trying to convert some .png files I have into a movie using ffmpeg. I'm using the tutorial: http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/ The ...
0
votes
0answers
8 views

Python external windows not displayed with Yakuake/Guake

I use Yakuake a lot and would like to display graphs with python from there. import matplotlib.pyplot as mp mp.plot([1,2,1]) mp.show() With Konsole or any other real terminal, it works: a window ...
0
votes
0answers
24 views

permission differences from mac finder vs terminal ssh

I am hoping that some of you Super Users can help me. I am working in an unix environment. /g/typas/Manuel>uname -a Linux submaster 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 ...
0
votes
1answer
33 views

Set different locale in terminals and KDE

My environment I'm using ArchLinux with KDE. What I'd like to do What I would like is to have KDE in my language (fr_FR) but all the terminals and tty in en_US (for debugging and having the same ...
0
votes
2answers
21 views

Why arrow actions ignore in mac os terminal using ssh?

I use ssh connect to debian using mac os terminal. So I have this issue if I "press up right down left": $ ^[[A^[[C^[[B^[[D at the same time everything ok in local terminal. Esc+, Option+ and ...
49
votes
3answers
49k 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?
1
vote
0answers
66 views

Rendering of unicode symbols in urxvt (height / width) vs. gnome-terminal

gnome-terminal renders the unicode symbols (arrows) in my prompt different from urxvt: They are displayed across the whole line's height, have less spacing in-between, but more appropriate ...
0
votes
0answers
11 views

Terminator - how to split and decide where the new terminal goes

$ apt-cache show terminator Package: terminator Version: 0.97-4 When splitting the terminal horizontally, the new terminal, by default always comes at the bottom. Would it be possible to have this ...
0
votes
0answers
22 views

How can I setup OS X's terminal.app to perform the correct actions for the ctrl key?

These are the key mappings i'm looking for: Ctrl+← : jump one word back Ctrl+→ : jump one word forward Ctrl+del : delete one word I want to do this by modifying the mappings in the ...
0
votes
0answers
23 views

Does wget download files more than once?

Suppose there is a website where Page A links to Page B and pages A and B both link to page C. Somthing like A -> B -> C | v C If I run recursive wget on A to begin downloading the pages ...
0
votes
1answer
28 views

Terminal emulator with bookmarks/history of commands/directories?

I work a lot with the command line (GNOME Terminal + Bash). I would love to have an easy/graphical way to use [bookmarks|history] of [commands|directories]. For example, I would like to have a list ...
1
vote
2answers
1k views

Minimum system requirements for a thin-client PC?

How much RAM, CPU, Disk does a thin-client need in order for it to work on a terminal server like Ubuntu or Windows XP? (Network Boot).
9
votes
3answers
6k views

SSH works in putty but not terminal

When I try to ssh this in a terminal: ssh username@sub.domain.com I get the following error: Connection closed by 69.163.227.82 When I use putty, I am able to connect to the server. Why is this ...
0
votes
1answer
234 views

Thin client FL300 software?

My cloud computer FL300 thin-client is wiped , how can i install its operating system again , can any one help me with that , i searched for it on the net but i couldn't find anything , it has ...
4
votes
1answer
2k views

Access iCloud Drive via terminal

OS X 10.10 was just released, and one of the features I personally awaited the most was iCloud Drive. Unfortunately, I had to learn that it was not as accessible as Dropbox. file ~/Dropbox ...
1
vote
0answers
34 views

Arrow keys work like option+arrow in terminal in tmux on osx

The following setting in .tmux.conf breaks arrow keys in terminal in tmux: set-window-option -g xterm-keys on When I disable this setting, then arrow keys work as expected in terminal but then they ...
2
votes
1answer
324 views

Is it possible to display 'special' characters in tcsh prompt running on gnome-terminal?

I'd like to know whether its possible to do special characters like so in tcsh prompt running on gnome-terminal. I remember seeing a 'skelton-head' in someone's prompt a while back. Things like ...
0
votes
2answers
36 views

Perform Terminal Commands Without Opening the Terminal - Linux

Is there anyway, within Linux, to open a terminal or perform a terminal command (such as executing a script) without actually opening the terminal window. What i'd like to do is be able to execute a ...
0
votes
1answer
24 views

Confirm a tmux option is set

I am having the problem described in this related question and this one. Summary When I have a tmux pane that outputs a serious amount of text, tmux becomes unresponsive. All tmux commands are ...
0
votes
0answers
33 views

ssh sessions becoming unresponsive, server still shows user logged in

I have been having this problem with several servers that I manage. I log in via SSH and leave my terminal window open for an hour or so while working on something else. When I bring the terminal ...
1
vote
1answer
23 views

Mutt checking incoming mail in tmux

I've been using mutt and liking it. I work with tmux, and one issue that I've had is receiving notifications of incoming emails (via mutt's beep_new setting). I've got the mail_check and timeout ...
1
vote
0answers
510 views

Command prompt hangs until keypress?

Problem: For some reason once in a while my command prompt would hang until I press a random key, and it would continue operation as if nothing happened. Occurrence: This happens when I am running ...
1
vote
1answer
44 views

How to get tree -a to ignore .git directories?

I love using tree to list directories, and I have a git repository with all my dotfiles. For me to be able to see them I need to do tree -a, but that will also list the contents inside the .git ...
0
votes
0answers
11 views

Weird behaviour of click in terminal and text-mode programs

I'm using terminal and SSH to work on a Linux machine - from Mac but the target machine seems to be the problem. Indeed, I found a really weird mouse behaviour; according to the program I'm using, ...
0
votes
0answers
78 views

Change color theme on all terminator windows

I wrote a script a while ago to change the color schemes of all of my terminals (Konsole) in Kubuntu. I can't find the script, but I remember that it involved doing something like. clear | tee ...
1
vote
2answers
40 views

Relationship between unicode and UTF-8 / 16 / 32

I don't understand the relationship between UTF-8 and its other variants and am getting anomalous results at the terminal. For example, right arrow is: 0xE2 0x86 0x92 in UTF-8 but it is 0x2192 in ...
2
votes
2answers
411 views

Command-line interrupts in OS X vs Linux

Occasionally, when I'm developing on my Mac, I'll get a process that hangs. When that happens, I'll try the following: Ctrl + C in the active terminal window If nothing happens, I'll open a new ...
4
votes
3answers
201 views

Determine whether a bash script was launched by icon click or from terminal

I have a script that I want to have a different behaviour depending on whether it was launched from the terminal or by (double) clicking the icon in the file manager. Can I do this?
0
votes
3answers
296 views

Detect when device joins wireless network (airport router)

I'm reposting this question with a more clear description as the other one was closed. Not sure if there's a different way to do this or not. Is there any way to detect when a device joins my network ...
0
votes
1answer
45 views

Screen fails to release pty

On my linux box, when using screen I can open, read and write to a pseudo terminal with screen. After closing it (C-a k y) I can't connect to it again, without restarting socat, which provides the ...
0
votes
0answers
20 views

“TAB” key not working in mc

When I open mc, the tab key is not working. As soon as I press it, I completely lose control of mc. Even Ctrl+z do not work to get out and kill it. I need to open a second shell and kill it from ...
0
votes
0answers
16 views

Run xdg-open on mouseclick in a linux terminal emulator

I'd like the following functionality in a terminal emulator: after typing ls and pulling up a list of files, I'd like to be able to click on the file. This should runxdg-open on the file. This action ...
0
votes
0answers
10 views

Move directory which contains or has sub-directories that contain a certain filetype

This is what I have so far. find /somewhere -name "*.mkv" -exec dirname {} \; | uniq | \ while IFS= read -r dir; do echo cp -- "$dir" /other/; done I will be searching a folder called "Test", ...
2
votes
2answers
30 views

syntax on, syntax enable, vim

I am trying to find out how to make vim to remember the syntax enable command so I don't have to type it every time I open a new .c file. I bet there is a way, I tried looking at the documentation for ...
1
vote
2answers
68 views

Start a new session from within tmux with ZSH_TMUX_AUTOSTART=true

I have enabled tmux plugin in oh-my-zsh with ZSH_TMUX_AUTOSTART=true and now every time I open terminal I am attached to a session. That part is really nice. The problem is – now I can't start a new ...
0
votes
1answer
72 views

Recursive diff on directories says files differ, but no output when I diff on the files

(in the Linux Terminal) I used diff --recursive --brief dir1 dir2 and it tells me that File dir1/file and dir2/file differ But then, I try: diff dir1/file dir2/file and there is no output ...
1
vote
1answer
26 views

how to remove user from user@user$ in terminal

as topic describes, I want to remove the user@user in my terminal and iterm. What's the best way to solve this. root@root-me$ ~ I just want ~ EDIT: I found out that if I change .zshrc ...
1
vote
3answers
3k views

Using vim to force edit a file when you opened without permissions

I use vim to edit a file. Sometimes, I forget to have the appropriate permissions. I run vim and the file as a read only file. I can make changes, but I can't actually write the changes. Every once in ...
0
votes
0answers
28 views

Ncmpcpp not changing the window title correctly

For some reason, NCMPCPP will not change the title of the terminal window properly, no matter the emulator. I've tried using it in gnome-terminal, lxterm, xterm, and terminator, and it normally leaves ...
3
votes
1answer
113 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
0answers
13 views

How to add a 'greek' character in the path using cURL?

I have a Makefile where one of many tasks is to upload a file using cURL, one of these files, has a greek character in the name and when I try to upload using cURL, I receive this error: curl: (43) A ...
4
votes
2answers
820 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 ...