questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

1
vote
0answers
204 views

Sudo works for a whole day and then stops working until a reboot

I currently have admin access to a Macbook Pro running OSX 10.8.4. I have been sudoing at the terminal for the whole day with no restart until sudo stops working. I rebooted the operating system and ...
1
vote
0answers
143 views

Compiling a gimp plugin

I wish to compile the Gimp plugin "Save for Web" on Mac 10.8.4. I use brew for package management but libgimp2-dev is missing. I've downloaded Gimp 2.8.6 from here . I've downloaded the latest ...
1
vote
0answers
1k views

FocusFollowsMouse, cut-paste from browser to Terminal in 10.8 (duplicate)

Added: this was discussed in focus-follows-mouse-plus-auto-raise-on-mac-os-x on SO in 2010. In short, accept it, or buy an addon: how-can-i-make-focus-follow-the-mouse-cursor. The sequence: cut ...
1
vote
0answers
3k views

FTP: active vs. passive, command line vs. browser

Here's a weird one for everyone. I'll use AskDifferent because my test bed is on a Mac, but I don't know that the underlying issue is specifically Mac. My Mac is behind a NAT wall. Let's call my ...
1
vote
0answers
1k views

My MBP (13 inch, MID 2010) will not start up

I have used the internet for the past 2 weeks in search of something that will help me troubleshoot/repair my MBP. It wont boot in Safe Mode using the SHIFT key. Following is everything I have tried ...
1
vote
0answers
464 views

Is there a console interface for the Client Monitor on OSX?

I'm writing a bash-script at work for controlling our Mac-computers (OS X Mountain Lion) remotely. Since we use FileWave in our Company we just have to remove an Application and restart the computer. ...
1
vote
0answers
403 views

Resource efficient way to monitor file change and execute shell scripts on change

I know at least three ways to monitor a folder/file for changes and execute a shell script on change. First, use "Folder Actions" of Automator Second, the launchd.plist approach but it seems the ...
1
vote
0answers
236 views

Midnight Commander installed via Ports to support scp

I have installed Midnight Commander via Ports, but I am unable to connect to a remote computer to copy files as: cd #sh:user@server.net I keep getting: "Cannot CHDIR to #sh:user@server.net". ...
1
vote
0answers
671 views

How to include the failing username on saslauthd failure in a log file in Lion?

How can the verbosity of logging be increased for SASL authentication failures? To be more precise, to include the failing user name in a log file on Mac OS X 10.7 (Lion) Server? Linux hosts have ...
1
vote
0answers
87 views

why does less seem to think my terminal has more lines than it does?

Don't know if this is really an OS X question, but: less seems to insist that my terminal (whether I'm using the builtin Terminal or iTerm2) has more lines than are actually displayed, and so the top ...
1
vote
0answers
335 views

Signals sent to command-line programs when exiting terminal.app

When using tmux, if I CMD-W, or otherwise quite out of terminal, my tmux session persists, as it should. However, it still lists itself as "attached", whereas on other platforms, (e.g. Ubuntu) when ...
1
vote
0answers
591 views

After updating oh-my-zsh prompt is weird on startup

I have been using the default installation of oh-my-zsh (robbyrussell theme) without issues. I just did a 'git pull' and now on startup I see a weird prompt. As soon as I press any key the prompt ...
1
vote
0answers
274 views

Proxy won't work without telnet

This isn't a problem as such, more an irritant that's begging for a clean solution. At work we have a couple of Macs which I'm trying to get integrated nicely into Active Directory. We enforce all ...
0
votes
0answers
21 views

Get result of Terminal tab do script via commandline

I've seen similar questions like this but none seem to deal with getting the result from a specific Terminal tab? I'm writing a Chrome extension to do some awesome stuff. Right now I'm just trying to ...
0
votes
0answers
10 views

How to use GUI pinentry program for GPG

I would always like to use the GUI version of entering my GPG passphrase. Currently my pinentry program is set the same on my laptop as my desktop. But the desktop always asks for my passphrase on the ...
0
votes
0answers
14 views

Use Terminal to echo a Messages chat

What script/command could I use to echo a readable format of my messages with someone? Is there any way to echo the chat.db as a table for that one person who I am chatting with?
0
votes
0answers
23 views

saving / restoring the NVRAM

I need to find a reliable way to save and restore the contents of NVRAM Would it be correct: Preservation nvram -x -p > ~/nvram.xml Recovery: sudo nvram -x -f ~/nvram.xml Thanks in advance ...
0
votes
0answers
21 views
+150

How to Have Stereo Macro in OS X Vim?

OS X Terminal Emulator with Custom Escape Sequences I am not sure if OS X terminal emulator is sufficient for the escape sequences. Current cursor on line of path in Vim etc ...
0
votes
0answers
35 views

Can I boost the Wi-Fi on my Mac in the Terminal?

I run Yosemite on my Mac. Recently the Bluetooth was skipping and I found an answer on here that said to run this command in Terminal, defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min ...
0
votes
0answers
27 views

Encrypted Seagate 5TB External HD Unable to Mount

Been roaming informational posts all over the web about similar situations and I see it's a common issue but none of the solutions seem to work. This is my wife's external hard drive which she stores ...
0
votes
0answers
32 views

LSOpenURLsWithRole() failed with error -600 when opening html file from terminal

I created a new test.htm file in my homedir, and when I type open test.htm it switches to Firefox, just opens an empty tab (my file does not appear), and the terminal says: LSOpenURLsWithRole() ...
0
votes
0answers
9 views

how to 'custom install' with brew?

so I have to edit the install of wine, and apply a custom patch. The patch I want is here... https://bugs.winehq.org/attachment.cgi?id=38156 and when I add these lines with brew edit wine patch do ...
0
votes
0answers
21 views

Blocking applications from terminal?

I want to disable Safari because I end up using it to waste time on sites like youtube. I use Stayfocud and Leechblock on chrome and firefox, but there isn't anything good for Safari (WasteNoTime is ...
0
votes
0answers
55 views

Terminal Error: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug - Unable to Repair Permissions

I'm getting an error when I open Terminal saying: login(495,0x7fff77186000) malloc: *** error for object 0x7f8cdad0b780: pointer being freed was not allocated *** set a breakpoint in ...
0
votes
0answers
36 views

Is there a way to check the system details of a Macbook against a database?

If you run system_profiler SPHardwareDataType in Terminal on a Macbook you get information like so: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro8,3 Processor Name: ...
0
votes
0answers
10 views

Make Background Terminal Window

Is it possible to make a terminal window the "background" in OS X El Captain? I've looked at several applications. For example, TotalTerminal, but it is defunct.
0
votes
0answers
32 views

change HTTP headers of Chrome and Firefox

Browsers send HTTP Accept headers. This is an example of one: text/html, */*; q=0.01 gzip, deflate en-US,en;q=0.8,sl;q=0.6 You can get yours here. How can I change curent headers from terminal app ...
0
votes
0answers
26 views

change firefox proxy from terminal

How can I change proxy for Firefox from Terminal app? Not the whole computer proxy settings (the ones in Network tab), but just Firefox's.
0
votes
0answers
35 views

How to sort a list of files ordered alphabetically to a list ordered numerically?

I'm trying to split large .csv files into several smaller ones ordered numerically, i.e., "File.csv" into "file_1.csv, file_2.csv, file_3.csv...". When I use the command: split -l 100000 File.csv ...
0
votes
0answers
62 views

El Capitan Mac: /usr/bin/login tries to run /bin/false

Just upgraded from Yosemite to El Capitan, and I started out with an Emacs problem: it wouldn't launch from the Emacs.app icon, complaining that it couldn't find /bin/false. I tracked this down to ...
0
votes
0answers
25 views

Fresh OS X install, cleanly manage terminal applications going forward

I just got a new Hard Drive and installed a fresh copy of El Capitan on it. I'm a computer programmer and use a ton of terminal commands. Is there anything I can / should do now that my computer has a ...
0
votes
0answers
13 views

Odd behaviour for long commands after styling the terminal

After putting the following statements on the ~/.bash_profile file: # STYLING THE TERMINAL # References: # - ...
0
votes
0answers
29 views

curl isn't outputting what it used to

I had programs that relied on using curl in the terminal (bash) and one day thy just stopped working. I realized this was because the output of curl had changed for some reason. I thought maybe the ...
0
votes
0answers
38 views

OSX Activity monitor (energy) shows terminated terminal app with high average energy impact

I use my macbook like desktop (always connected to electricity) 95% of the time, so I never noticed this before. However, I had to use it on battery last few days and it surprised me how short the ...
0
votes
0answers
18 views

What happens to programs like node, npm or grunt that has been installed globally after os x reinstall?

I have huge problems with the kernel_task. I have a Mid-2015 15" rMBP with discrete GPU. It really annoys me when kernel_task goes 400% 500% CPU and I could not solve this problem. I want to reinstall ...
0
votes
0answers
6 views

Adding Aspshell user account via terminal

Good Day, I'm new in Mac OS X (Maverick). I want to add user account (standard user) with aspshell via terminal. Any tips? Thanks.
0
votes
0answers
14 views

How to Extract ENVI picture details for Matlab?

I am studying pictures where I need to separate psf images with sufficient ENVI header file for the function multibandread in Matlab SIZE = [LINES, SAMPLES, BANDS] SUBSET = {DIM, METHOD, INDEX} X = ...
0
votes
0answers
55 views

I have no Internet access in Terminal!

I am using OS X El Capitan 10.11.3 and the ZSH Shell. Here's what I get when I try to ping any server: ❯ ping google.com PING google.com (172.217.16.78): 56 data bytes Request timeout for icmp_seq 0 ...
0
votes
0answers
12 views

Connecting to WPA Enterprise with Terminal

I have two WPA Enterprise login credentials, and I find myself having to disconnect the wifi, and reconnect as the different user. I have done a little look through, and I found that it is possible ...
0
votes
0answers
20 views

New shortcut for going up one line in Terminal in El Capitan

I upgraded to El Capitan a few days ago. Before I used to use ⌘+⬆︎ to go up exactly one line in the terminal (and usually pressed the combination continuously to go exactly were I wanted), but this ...
0
votes
0answers
56 views

Weird null characters ^@ output on iTerm 2 / zsh when a command is running

When I m using iTerm 2 (with zsh), and a command is running at the prompt, every minute or so ^@ (NULL character) got displayed on the terminal. Below is an example, using socat, but other commands ...
0
votes
0answers
18 views

Sending text to a Terminal or iTerm2 window?

How can I send text to a Terminal or iTerm window? I'm presenting a demo of some multi-user software and would like to create several windows, programatically sending (different) text to each one, ...
0
votes
0answers
38 views

Remove All Illegal Characters from All Filenames in a Given Folder and subfolders

I Know this was was basically answered on the net and using automator with the shell script (Sanitize Filenames) works great, but I need it to also do all subfolders as well. And if possible trim the ...
0
votes
0answers
9 views

How to get out of this default folder static-30

I recently installed apache ant on my macbook. I think the installation didn't go well. Whenever I go to my terminal now the home folder is static-30 How to get rid of this?
0
votes
0answers
33 views

Automount an SMB/SMBFS on boot

How do I add an fstab (now called vifs) entry to the fstab file in order to automount an SMB/SMBFS/Windows network drive on boot. I tried the below but it didn't work as expected: ...
0
votes
0answers
23 views

Do cronjob run when the computer is asleep?

I have a macbook air running El Capitan. I wrote a few cronjob that appear to be running even when the computer is asleep. Is this correct, or is my computer not really in a sleep state?
0
votes
0answers
9 views

How do I make a Run Shell Script Automator action that will change the username and password of a specific internet password item in Keychain?

I am trying to make an application that allows me to quickly switch between two logins on an 802.1X network. I already have a portion that prompts me for which account I would like to log in to and ...
0
votes
0answers
12 views

“Display Notification” stuck in loop in Bash script

Is there any way I can fire a banner notification once through a bash script? I'm trying to modify this BitBar plugin to be a little fancier: #!/bin/sh # <bitbar.title>Gmail ...
0
votes
0answers
30 views

Troubleshooting converting Ubuntu.iso to ubuntu.img with hdiutil in Terminal

When I try this command: hdiutil convert /Users/Example/Example/ubuntu.iso -format UDRW -o /Users/Example/Example/ubuntu.img The terminal says that the image is not recognize, what am I missing?
0
votes
0answers
53 views

My Mac is slow after upgrading the OS

Recently, after upgrading to EL Captain, my terminal has slowed down way too much. Should I go back to my previous OS? My Mac has 4GB RAM and a 500GB HDD. Macbook Pro 13-inch. It has been one ...