0
votes
2answers
51 views

Mac OSX Terminal: Copy Window Contents

I am running a java script, which has some text output. I'd like to copy/paste that output. If I do ⌘-A, it copies everything that's been typed that session, even if I typed clear beforehand. How can ...
0
votes
0answers
50 views

When opening Terminal: “NO LOGINS: System going down at 01:10”

I'm trying to get a terminal open, and I get this message: NO LOGINS: System going down at 01:10 Login incorrect login: *myname* Login incorrect login: It doesn't prompt for my password. This ...
0
votes
1answer
30 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
1
vote
0answers
58 views

Need to reset OS X terminal AFTER logging out of Ubuntu (ssh + zsh)

I have a problem I cannot understand, and cannot debug for the life of me. I run Mac OS X 10.9.2 (latest) and use Terminal.app and zsh as my shell. A server I work remotely on runs Ubuntu 13.04 and ...
2
votes
0answers
35 views

OSX text-to-speech: key words are badly synthetise in French. How to overcome?

OSX has a great Text to Speech (TTS) feature, but I noticed some limitations. I set OSX 10.9.2 in French with French TTS voices. The words "pages", "user", and pseudo-word "fire" for example are not ...
0
votes
0answers
25 views

Terminal program for macintosh osx that can display 80x24 characters in full screen?

Is it possible to get the Terminal app in Macintosh OS X to display 80x24 characters while in full screen mode? I have been fiddling with different font sizes and character spacings but never been ...
0
votes
3answers
62 views

Cannot save the output from a unix executable

I am attempting to save the output of an application I wrote. When I try to save the output by redirecting stdout the file that it results in is blank. This is what I am typing into Terminal.app (OS ...
0
votes
1answer
32 views

execute Shortcut on terminal mac os x

I have an application on another mac as mine, the software is still open, there are keyboard shortcuts that allow to perform tasks, I would like to execute shortcuts via the terminal from my mac.
0
votes
1answer
29 views

How can I launch a new Terminal in OSX with a specified profile from the command line?

I found the same question and a strong answer on SO: http://stackoverflow.com/q/4404242/147265 I'm looking to launch new terminals from the CLI in a different profile than my default. My current ...
0
votes
0answers
50 views

Mac OS X Terminal Error: undefined method `grep'

Every time I enter a command, or even just hit enter, in Terminal I get this line below the output: -e:1:in `<main>': undefined method `grep' for #<String:0x007feea31354b8> ...
0
votes
0answers
42 views

More than one UserEventAgents

Recently I was checking my processes network usage in Mountain Lion using "nettop d". I noticed something odd. I always have two UserEventAgents in my nettop list with different pids. And there is of ...
2
votes
1answer
219 views

Open terminal app with multiple ssh tabs

I work on a Mac with Lion (10.7.5). I want to create a clickable desktop shortcut that will open the terminal app with multiple tabs where each tab is an ssh session to a remote machine. What is the ...
1
vote
4answers
101 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 ...
0
votes
3answers
32 views

Is it possible to set terminal to open at login on a mac?

After taking a computer architecture class, I noticed I've been using my trackpad less and less and instead relying more on keyboard input to open, edit, create files, folders etc. But I have to ...
0
votes
2answers
53 views

Redirect a cat command when using wildcards as input

I have the following command that takes a certain part of a file in the current directory, writes it to a temporary file, gets a part of another file one directory up, writes it to a temporary file ...
0
votes
0answers
163 views

Highlight 'Cursor' in Vim using Terminal.app

When I'm using Vim in Terminal.app it becomes very hard to se the characters under the cursor. In Terminal.app I can only specify the cursor color but not the color of cursor text like in Iterm2 for ...
3
votes
3answers
102 views

Mac OS X Terminal - Naming SSH Connections?

The short question is that I'd like to know if it is possible to give ssh connections 'friendly' names in terminal? My long reasoning is... I've got several server clusters running behind a single ...
0
votes
0answers
20 views

Why did my terminal suddenly contract?

I logged on to my account and was surprised to see something weird with my terminal: What's going on?
3
votes
1answer
681 views

ip command in Mac OS X terminal

I use the command ip link in Linux. Now I want it on Mac OS X, but the Mac OS X terminal doesn't have ip. What should I use instead?
6
votes
3answers
226 views

How to identify the terminal from a script?

And don't say "$TERM" – it's always xterm. How can a bash script tell what terminal it's running in, specifically whether it's iTerm, Terminal.app, or actually an xterm? I ask because reset does not ...
3
votes
1answer
763 views

Disabling AppNap for Terminal

How do I disable AppNap for Terminal? Get Info on Terminal does not have Prevent App Nap check box An alternative is to turn the NSAppSleepDisabled flag on, but will it actually work? $ defaults ...
1
vote
1answer
120 views

Tab title is wrong with ssh/screen on osx

I am doing ssh -t host screen -D -RR in OS X (10.9) terminal tabs. My ~/.screenrc is identical on all remote hosts and contain the following line: hardstatus string "%H(%n:%t)$USER %h" My ...
2
votes
1answer
62 views

time command - output to a file

comamnd line: time myprocess outputs its results: OUTPUT FROM MY PROCESS real 0m1.954s user 0m0.086s sys 0m0.052s But if I do time myprocess > outputfile.txt my outputFiel.txt ...
0
votes
1answer
42 views

How to set OS X to open several Terminal instances that start at different screen locations?

Whenever I start a workday I need to open 4 terminal sessions (not tabbed), and move these to the four corners of my screen. I would like to use something like Automator to do this automatically ...
0
votes
2answers
67 views

Change the size of OS X terminal using keyboard

When typing in a terminal on OS X, I'd like a way to resize the window I'm typing in without taking my hands off the keyboard. Is there an easy way to do this? If not, any ideas for hacks?
0
votes
2answers
125 views

How to move back a word in OS X Terminal?

If I ssh into a Linux box I can move back a word in the CLI using OptionBackspace. Is there a way I can do this in the Mac's Terminal? Every time I press OptionBackspace, [D returns.
0
votes
0answers
53 views

Cut and Paste from OSX Terminal to Mac's TextEdit (v.1.8) Program results in partially garbled text- why?

Everytime I cut and paste from MAC Terminal (v 2.3) on my computer (mtn lion 10.8.5) to TextEdit and save as a .txt file, I notice that a lot of text gets garbled in the process. Does anyone know if ...
3
votes
1answer
961 views

Undo OS X terminal window split

I constantly split my terminal windows accidentally by pressing Cmd+D (it's so close to Cmd+F). I have no idea how to undo this. Any ideas?
1
vote
2answers
241 views

Recursively zip files into .cbz-files based on folder in command line

I'm trying to figure out how to write a script to automate creating .cbz files from images in folders on OSX. My directory tree will look like this: /toplevel/ cbz/ comics/ Comic1/ ...
3
votes
2answers
2k views

How to stop and start dropbox.app in Apple Terminal?

How to stop / start dropbox in the Apple Terminal? dropbox stop works when using Oracle Linux, but not within Mac OS 10.6.8.
0
votes
3answers
107 views

What causes commands to print on first line in Terminal.app on Mac OS X 10.8?

Every time I execute a command in Terminal.app, the command prints in the beginning of the first output line like this: > ls lsfile1 file2 file3 This only happens in Terminal.app, iTerm.app for ...
0
votes
1answer
139 views

Terminal mac (bash) script to extract, move and clean a WordPress install

I want to be able to copy/paste into terminal; wget http://wordpress.org/latest.tar.gz tar -xzvf latest.tar.gz mv wordpress/* . rmdir wordpress rm latest.tar.gz But I want correct wait commands in ...
0
votes
1answer
177 views

Find and replace from Terminal and write to a new file with the replaced values

I have a file template.jou that has the following format: /codeline1 /codeline2 /var = var /codeline3 Now I want to replace the var part with different values like A, B and C and then write the ...
0
votes
2answers
35 views

Mac Lion and getting rid of commands I have entered via terminal

I entered a command in terminal and had Mac OS lion execute it successfully. I simply would like to stop that execution and negate what I had the computer do. I have done the history -c command and ...
0
votes
2answers
70 views

iTerm2 & Terminal Giving >> [33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$

I opened iTerm2 and it changed the prompt to.. [33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$ I have no idea how this happened, and I can't figure out how to change it. I went to terminal ...
2
votes
1answer
368 views

Why does Option+Left Arrow work in Vim, but not Right Arrow on Mac OS X?

Using Vim in Terminal on Mac OS X, my Option+Left Arrow skips words as expected, but my Option+Right Arrow does nothing. How can I fix this?
1
vote
0answers
59 views

How can I use kickstart or something else at the command line to view ARD settings?

I know I can use kickstart to configure Apple Remote Desktop from the command line, but, I can't find anything on the Internet or in kickstart's help message indicating how I can view the current ...
0
votes
1answer
59 views

Mac OS X Terminal garbles text

Not sure what you would call this. Glitch, jarble, destruxxored. But my text looks like this: That's my cursor where they grey box is. Pressing up adds more text in random places, and my cursor ...
1
vote
4answers
2k views

How to have multiple windows in a SSH terminal session?

From Mac OSX I login to a remote server that handles parallel computing jobs. I am not able to install anything on this server as it is administered by the university. I have multiple jobs running and ...
1
vote
2answers
112 views

terminal.app: how to read the terminal window title

I have seen many questions about how to set the tab (or window) name, but how to get it? I have setup terminal to open 8 tabs, each tab having its own name (dev1, dev2, ... dev8) Is there any way for ...
0
votes
0answers
53 views

Under which domain is the Finder sidebar “Devices” category setting for “User's MacBook Pro”?

Trying to verify that "User's MacBook Pro" is in the Finder's sidebar from the Terminal. I can't find a correlating setting under com.apple.finder, com.apple.sidebarlists, or even ...
0
votes
2answers
227 views

Verifying my password on OS X via dscl

If I know my password is foobar how can I use dscl to verify this on my machine? Of course the password is encrypted (Password: ********) in the output of dscl . -read /Users/myuser. It's fine if I ...
3
votes
1answer
99 views

Add sound to keystrokes in iTerm2 / zsh

I've been searching for quite a while now, but haven't found anything. I want to spice my terminal up a bit more than just colorizing it – I also want to add specific sounds to keystrokes, newlines ...
0
votes
1answer
50 views

Tool for editing text before sending to via a slow ssh connection?

I often ssh to a remote machine and work in an interactive shell (e.g. pry). If the ssh connection is slow, typing complex commands is very tedious because of the delay in echoing back the ...
3
votes
0answers
19 views

How do I skip the requirement to hit tab twice on a soft link autocomplete? [duplicate]

When I am in the bash terminal (Mac) and I am selecting a file, I can easily type the first part of a directory and hit tab to have it auto complete, for example: cat ~/Desk [tab] -> cat ...
1
vote
1answer
47 views

How do I change the name of my mac in the terminal app? [duplicate]

The computer name is displayed as "unknown-" at the command prompt. How do I change this?
2
votes
1answer
276 views

Mac lsof command find all processes for all users

A while ago my teacher asked me to create a script that would kill Minecraft anytime it came up. It worked when the user themselves ran it, but it didn't if it was at root level. Is there a command ...
1
vote
1answer
99 views

Way of finding input devices?

In terminal is there a way for me to find all the input devices, eg keyboard and mouse? And more specifically get their thread id?
1
vote
0answers
85 views

How to use Terminal.app for an xterm session

I am on Mac OS X 10.8. When I open Terminal.app and connect to a remote machine with ssh -X user@remote.machine.net the XQuartz application launches. When I type xterm into Terminal.app, an X11 ...
3
votes
1answer
388 views

Terminal.app opens different theme when launching a new shell window

So I set Terminal.app to open up with certain defaults. I like a specific theme (Homebrew) with a default size of 140×50. However if I click the close icon (red X) to close the window and ...