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

0
votes
1answer
93 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
21 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
21 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
260 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
102 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
26 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
64 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
73 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
28 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
194 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
48 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
25 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
104 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
59 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
21 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
82 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
140 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
32 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
223 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
11 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
55 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
30 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
34 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
36 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
40 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
78 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
66 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
60 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
20 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
86 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
71 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
47 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
56 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
93 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
36 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
49 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/...
1
vote
1answer
67 views

Setting Terminal tab names in OS X and using vim

I regularly ssh into a Linux cluster from an OS X (El Capitan) Terminal, sometimes with multiple Terminal tabs. I use bash and vim. I'd like to do the following: while ssh'd, set the Terminal tab ...
1
vote
0answers
51 views

How to prevent terminal geometry changes when changing external display on MacBook Pro 13?

I have a MacBook Pro (Retina, 13-inch, Early 2015) that I use with Dell 2711 (at home) and 2713 (at work) external displays. Usually, but not always, when I bring my Mac from work to home, and vice ...
1
vote
0answers
58 views

`scutil --nc start` not connecting PPPT VPN - OS X 10.11

From the answer to this question I have tried scutil --nc start 'us.justfreevpn.com' to connect a PPPT VPN, but all I get is the following popup: Frustratingly, if I manually start the connection ...
0
votes
0answers
40 views

Can I conclude that I have to upgrade my mac's RAM based on these stats?

My 2012 13 inch MacBook Pro has become real slow, even when just a few programs like Itunes, Safari or Spotify are opened. I've been cleaning up my HDD, but I don't feel like it's speeding up. So I'm ...
0
votes
2answers
39 views

Launch command using app

Could someone please tell me how to insert a terminal command into an "application" so when the app is clicked/opened the command is launched?
1
vote
1answer
123 views

SSH (or SFTP) upload files from OSX terminal

I'm trying to upload a file through terminal (didnt managed to do it trough transmit.app) I'm connected to SSH to my server. I want to sent a file from my Local desktop to my server. That the ...