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
1answer
101 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
119 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
24 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
112 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 space....
0
votes
1answer
56 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
19 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
116 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
22 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
22 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
106 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 _usbmuxd@10242-...
1
vote
0answers
287 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
1answer
120 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
29 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
84 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
85 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
29 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
247 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
60 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: //'domain;username:...
0
votes
0answers
27 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
130 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 "applications"...
1
vote
2answers
60 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
22 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
111 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
36 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
148 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
39 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
283 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
229 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
12 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
56 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
16 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 Checker</bitbar....
1
vote
1answer
63 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 selection....
1
vote
2answers
34 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
35 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?
2
votes
1answer
40 views

How to make Terminal windows persistent

How can I make it so Terminal will remember the currently open windows on Quit, and reopen those windows, with all the existing text intact? I have two machines: Both on El Cap Both with identical ...
1
vote
1answer
41 views

Remove characters preceding the second underscore in file names

I have a bunch of files and I would like to remove all characters preceding the second underscore in the file names. An example is shown below. How do I do this using bash commands? [From] ...
1
vote
0answers
16 views

Applescript claims to run shell script, but script has no effect [duplicate]

So I have a bash script like this: #!/bin/sh FILE='some_file.js' gsed -i -E 's/something/somethingelse/' "$FILE" echo "Modified File" When I run this from command line, it echoes the last line, so ...
1
vote
1answer
94 views

iTerm2 does not show username, machine name, time

On my new mac machine, I could not do autocomplete for Git when I hit Tab. So I thought to modify the terminal and found certain things on this link. I may have messed when I installed iTerm2, Oh-My-...
0
votes
2answers
79 views

Python socket program taking forever to run

I tried to run following program on my Mac terminal. import socket mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mysock.connect(('www.py4inf.com', 80)) mysock.send('GET http://www....
2
votes
1answer
66 views

Is there a terminal emulator for Mac OS X that supports binding Ctrl+(Shift)+Tab?

I want to bind Ctrl+Tab to "\033[27;5;9~" and Ctrl+Shift+Tab to "\033[27;6;9~". Unless I am missing something, the default Mac OS X terminal emulator will not let you bind these key sequences to ...
0
votes
1answer
23 views

How do I change/delete alias in OS X permanently?

I tried to modify/delete alias, but it seems that it is only for the current session by doing this unalias name or rename it unalias name='...' Can anyone tell me the way to change/delete it ...
0
votes
1answer
94 views

Looking for an ARD/ Unix command to clear firefox history/cache on a mac

I'm trying the following but not having any success in seeing anything cleared: rm -R /Users//Library/Caches/Firefox/Profiles/.default/Cache Thanks!
4
votes
1answer
82 views

Change font of Terminal programmatically w/o restarting

At home I've got a nice big display that unfortunately does not have the same resolution as my retina macbook does. I'd like to use a pixel-font on the low-res screen and a nice smooth one on the ...
3
votes
1answer
51 views

Recognise command and colour it on the terminal?

I was wondering if it's possible to colour a recognised command in real time while typing and/or when switching to previous commands using the arrows. For example, if I start typing gre, it should ...
0
votes
0answers
62 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 and ...
0
votes
1answer
99 views

Find all hidden files that were hidden using the command “chflags hidden filename”?

I remember to hide an important file, but I can't find it anymore and I don't remember the name. I don't remember how I hid it, i.e., if just by inserting a prefix of . or using chflags hidden ...
0
votes
1answer
45 views

Terminal doesn't force quit

When I click Terminal in Launchpad, it says "The application Terminal is not open anymore." But it shows up in the Force Quit window and it has the open-app indicator on the dock. I can't quit the ...
0
votes
1answer
56 views

My terminal background keep changing after each restart

I have this in my ~/.bash_profile export ANDROID_HOME=/Users/username/Library/Android/sdk export PATH=$ANDROID_HOME/platform-tools:$PATH export PATH=$ANDROID_HOME/tools:$PATH export PATH=/usr/local/...