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

3
votes
3answers
902 views

I'm Getting Errors When I Try to do 'brew update'

I want to install a gem. The instructions strongly suggest that I use Homebrew to install the gem dependencies. I have not used Homebrew a lot, maybe once years ago. I do remember that El Capitan ...
0
votes
1answer
29 views

How do I add the Applications folder to the terminal PATH?

For example, I have Sublime Text that I can open from Spotlight. However, sometimes I'm navigating with the terminal and I want to do sublime source.php, but since I don't have the sublime app ...
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 = ...
1
vote
1answer
55 views

How can I make an external drive behave as an internal drive?

My question is pretty much summed up by the title, I have an external drive which I'd like to have recognized as an internal drive. How can I do that? Thanks for looking at my question. By the way I ...
1
vote
0answers
29 views

Does Mac offer a way to return video specs in terminal without ffmpeg?

I was curious to know if there is a way in Mac terminal to return a video's details similar to sips is for images on the Mac before I install ffmpeg? I am currently using Yosemite so if there an ...
2
votes
0answers
23 views

Quicklook for fullscreen terminal

I recently realized you can use quicklook from the command line. Here's the example: qlmanage -p somefile.txt >& /dev/null & When this command is invoked quicklook opens its popup *in a ...
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 ...
1
vote
0answers
12 views

Pipe multiple homebrew commands

I installed pup using Homebrew and my shell - Zsh, with OhMyZsh - is not recognizing the command when I use it multiple times using pipes. For example, this works fine: cat index.html | pup 'meta' ...
0
votes
1answer
104 views

terminal -bash: command not found

I'm trying to compile a c++ program on the Mac terminal with gcc then the source files path. I've found some short term fixes on the Internet but I want it so it works every time. Also I hardly know ...
2
votes
1answer
50 views

How to change a search direction in terminal

I'm under OS X El Capitan 10.11.1. When I try to search in terminal text by cmd+F it starts to search from the beginning rather than from the end backwards as it was in terminal on Ubuntu. So how ...
0
votes
1answer
45 views

Why don't changes in the bashrc file work on a new terminal window?

I'm trying to add an alias to the bashrc file. Since I'm not good at this, Im' going to write all the steps I took nano ~/.bashrc The file had this in it export PATH="$PATH:$HOME/.rvm/bin" # Add ...
0
votes
1answer
26 views

Edit (colorized) terminal output before printing?

A very similar question has already been asked on SuperUser but none of the answers works satisfactorily for me. I can actually get almost what I want by simply: Running the Terminal for the whole ...
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 ...
3
votes
1answer
22 views

Specifying Terminal-only mapping in Karabiner

I am trying to remap specific Ctrl+<Key> combinations to Command+<Key> in Terminal.app using Karabiner. The following private.xml is used: <?xml version="1.0"?> <root> ...
1
vote
1answer
39 views

mysql fails to load on boot

I have a Macbook. Forever I’ve had mysql server installed and running on start (using El Capitan). Well now I’ve installed Wine. Since then mysql server fails to start on reboot. If I manually run ...
1
vote
0answers
76 views

Cannot copy/paste anymore in tmux 2.1

I just update to tmux 2.1(OS X10.11.3 Terminal.app), and my .tmux.conf(accroding to http://joehanchoi.com/quick-fixes-for-tmux-2-1-on-osx/) set-option -g mouse on bind -n WheelUpPane if-shell -F -t ...
0
votes
1answer
23 views

How best should I delete this user

I'm new to OSX and tried to create a user from the terminal which I no longer need and which I named incorrectly. I see I can delete the user in System Preferences > Users & Groups but do I need ...
1
vote
1answer
103 views

Open the same terminal without switching spaces

I'm looking for an AppleScript (or anything, really) that will do the following: If a Terminal window is open in the current space, bring it to the front. If not, open a new one in the current ...
0
votes
1answer
27 views

Mac Terminal app - unable to use the up arrow to load previous commands when using SSH on remote server ( ^[[A )

I'm running into a weird issue where the UP arrow no longer restores commands previously entered on a remote server during SSH session: :~ user$ ssh user@myserver //... type the password, get welcome ...
0
votes
1answer
18 views

Reset “New Terminal at Folder” placement in context menu

Before when I enabled the option to open a new Terminal window from a certain folder, my context menu looked like this: Now it looks like this: How can I go back to having just the one option in ...
0
votes
1answer
58 views

Homebrew won't link git

I am trying to enable autocomplete for git on my mac (currently running El Capitan) but I am having troubles with Homebrew. So far, I have installed bash-completion and added the lines in my ...
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
1answer
18 views

How to copy a file and replace (if necessary) in the target directory from terminal

If I'm on my Desktop and I have a file called 'test.txt' on there, and I want to copy that file to say '~/Library/Folder 1/Folder 2/' how do I do that? Also, if there's already a file there called ...
3
votes
2answers
100 views

My terminal keeps printing “emergency” messages

I keep getting these broadcast messages being printed to every terminal window, and it's driving me nuts. Does anybody have a clue as to how to turn them off? Broadcast Message from ...
1
vote
0answers
171 views

OS X El Capitan bash shell not working in Terminal

I have a weird issue with my bash shell in OS X El Capitan. I was messing around with my .bashrc file today, and now when I open my terminal I see nothing out of the ordinary (no messages, just the ...
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, ...
1
vote
1answer
41 views

I can't delete in tmux

I have searched around and the closes thing I could find to my issue is this: http://stackoverflow.com/questions/23848061/cannot-get-delete-key-to-work-with-tmux-and-osx I am running OSX and I am ...
0
votes
0answers
39 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
1answer
26 views

Encrypted sparsebundle password appears to be cached

I use this command to mount an encrypted volume: hdiutil mount ~/Documents/secret.sparsebundle/ On first use I'm prompted for a password. I then close it either by clicking 'eject' in finder or 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?
2
votes
1answer
121 views

How to Use Terminal for “Little Snitch” Functionality without Little Snitch

I'm a Terminal newb, and trying to wrap my head around manual "Little Snitch" functionality without using Little Snitch. From the research I've been doing, I've landed on the fact that I need to ...
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?
1
vote
2answers
50 views

How to open new windows as separate application instances for Chrome, Terminal?

Moving from Linux (OpenBox WM) to MBP, I'm struggling to recover the level of productivity I was used to... One specific thing that's killing it is OSX's insistence on separating between ...
1
vote
2answers
55 views

Which Terminal theme and plugin is this

I came across the following screenshot of someone's Terminal and I'd like to know how that person managed to display the full path on top. I also like the color scheme. Can anyone point me in the ...
0
votes
1answer
18 views

How to list the manual sections

On my OS X Yosemite, when running man man I was excepting to see a list of MANUAL SECTIONS and their number, but I don't. As a Windows user until lately, I'm not familiar with the meaning of the ...
0
votes
1answer
44 views

How to show Hard Disk icon on Desktop via Terminal?

Is there a command in Terminal that allows you to show the Hard Disk as an icon on your Desktop? I know the manual process of doing it, which is, Finder > Preferences... > General and check "Hard ...
0
votes
0answers
24 views

Sudo command not working [duplicate]

I'm trying to install Soundflower and it failed. So the developer has instructions to manually install it which involves the sudo command. But my sudo doesn't work. It gives me sudo: /etc/sudoers ...
1
vote
1answer
29 views

Using Package Installers behind company firewall

Is there a more efficient way to use package installers behind a firewall than adjusting the proxy settings for each installer? As of now, I'm using Ruby Gems, Bower, and NPM and it's a pain to ...
4
votes
1answer
118 views

Remove username from terminal title

I want to be able to retitle my terminal windows. I've found many examples on the web, but no matter what I do, the string is always prefixed by my username. I want to remove that; how do I do so? ...
0
votes
2answers
30 views

Where is my mbox located at?

The Terminal keeps telling me I have mail from scripts that are hitting errors, and then when I scroll through the messages to read them, it tells me afterwards saved x messages in mbox. Where is my ...
1
vote
1answer
116 views

Boot problem on dual-boot MacBook Pro

Can anyone help me restore the original boot 'order' on my Mac, using command-line? I wanted to install Ubuntu on my Macbook Pro Retina (early 2013), so I could run some specific software I needed ...
3
votes
2answers
216 views

Mac OS X unusual bash activity?

So when I checked my computer this morning I had Terminal open saying: Last login: Sat Mar 5 00:02:43 on ttys000 I checked uptime and it's been up 27 days, 2 users as usual. Now I know for a fact ...
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 ...
2
votes
2answers
51 views

.bash_profile not updating until open new Terminal window

I am trying to create a Terminal command. I have created this so far: cd ~/ && touch .bash_profile && echo "" >> .bash_profile && echo "alias sendtext=\"osascript -e 'on ...
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 ...
1
vote
1answer
46 views

OS X copy paste into Terminal adds fdbf bfb9 b083 to beginning and end of selection

For the life of me, I can't figure this out. When using a browser (doesnt matter which), if I select text, then paste in Vim or Neovim, I see characters added to the beginning and end of my ...
1
vote
2answers
21 views

Is it possible to invoke play button using terminal?

I want to control my media player (iTunes, Spotify, etc) using terminal. My goal was simply to trigger press on play/pause button using script. Is that possible?
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?