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

11
votes
5answers
61k views

“-bash: ls: command not found”

I installed the most recent update to OS X Lion (10.7). After I did that, my terminal won't recognize normal commands. I typed ls and got: -bash: ls: command not found I figured I'd try to add ...
1
vote
4answers
10k views

How to access the Wi-Fi password through Terminal?

I am at my school and the computer I am currently using is connected to a Wi-Fi network. I want to know the Wi-Fi password and I am on a Mac. I know there is a way to do it through Terminal. What I ...
1
vote
4answers
59 views

In Terminal, how can you determine which shell is actually running?

Using Terminal on OS X 10.11.4, initializing Terminal opens a new window running bash (by default). As I understand it, inputting echo $SHELL should output the shell that said command is submitted to. ...
1
vote
2answers
1k views

Install Monokai Theme on Terminal with prompt colors, etc.?

I already have a Monokai theme installed in Terminal, as so: I was wondering how I could get the rest of the Monokai (as Sublime uses) into Terminal? Like, making the prompt (Gamma@~) colored, etc. ...
1
vote
1answer
26 views

How to avoid password prompt in terminal?

So sometimes my Mac loses its connection to the Internet. When I'm in front of it physically I can use the terminal and do the following to repair it: networksetup -setnetworkserviceenabled ...
2
votes
5answers
1k views

How to produce constant output in a Terminal window?

Like when you do brew install wget or mysqld restart I want some lines of information constantly run through my terminal window. Is there maybe something I can monitor or any stream of information I ...
115
votes
4answers
172k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
0
votes
1answer
27 views

update git repository with apple script

I want to update my git Bitbucket online storage with apple script. This is the code that works in Terminal, but not when i run apple script. cd /Users/mainuser/Desktop/Projects git add -A git commit ...
2
votes
3answers
5k views

Alfred: How to get Alfred to run a terminal command?

I often need to run multiple copies of an app, like VLC. For this I use the terminal and run a command similar to: open -n /Applications/VLC.app How can I create a shortcut with Alfred to run this ...
0
votes
1answer
24 views

How to add shortcut to directories to OS X menubar

I have several directories that I want to quickly access in Terminal. And sometimes even in the finder. I would like to be able to hit an icon in the menu bar and have it drop-down a list of folders ...
1
vote
2answers
61 views

Backup files from Terminal in Recovery Mode

I want to transfer files in Recovery Mode https://support.apple.com/en-us/HT201314. I opened Terminal in Recovery Mode and tried to copy files to external hard drive. I use this code // I used cd .. ...
1
vote
1answer
47 views

No Macintosh HD in Volumes folder

I am running in recovery mode to save the data from disk( I cant login due to deletion of private/var folder). I opened Terminal and went to Volumes. This folder should be populated with the Macintosh ...
1
vote
1answer
377 views

Full screen always enabled when opening app in OS X

How can I set my Macbook Air to always open new apps in full screen mode? Some apps already do it (Mail for example), but others are always opening as a small window, especially Safari when I close ...
1
vote
0answers
13 views

How to disable LoginWindow (boot to Darwin console)?

This may seem like an odd question, but it's one I've been wondering for quite a while. There is an old trick to get access to a console by typing >console as the username in the login window. ...
10
votes
1answer
2k views

How to share history between terminal tabs?

I generally find myself using two or three tabs in my Terminal on OS X. A minor inconvenience is often that the tabs don't share a command history. So things like history | grep thingIamlooking for ...
3
votes
2answers
293 views

Terminal App: What comes after connection?

I want to use an SSH connection to upload large photo files to a server. FTP taking 10 minutes per photo. Someone suggested SSH; I have managed to get the computer connected to the server, but I ...
7
votes
2answers
425 views

How do I swap Ctrl and Alt in just the Terminal?

I have a USB keyboard where I swapped my Cmd and Ctrl keys, because I come from the world of Linux and that's just what I'm used to. However, this causes a problem in the Terminal because all of a ...
59
votes
7answers
177k views

Is there an OS X terminal program that can access serial ports?

What programs can act as a terminal and access serial ports? This is not for terminal access on an IP connection, this is so I can access a hardware device plugged into a USB/serial converter running ...
100
votes
9answers
77k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
1
vote
1answer
221 views

How to change the “Recovery HD” partition to type “Apple_Boot”?

Typing in the terminal diskutil list gives me this... /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
0
votes
1answer
12 views

Disable automatic “remind me on a day” in Reminders?

I use Reminders simply as a set of todo lists. Today I created a reminder to "buy a shirt, size 14-1/2 32/33", and Reminders added a due date of "2016-01-14 12:00" (not sure how it calculated that ...
0
votes
0answers
50 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 ...
2
votes
2answers
2k views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
1
vote
2answers
43 views

How to clone a damaged HD?

Been through a bit of the suggested answers, nothing has been suggested that I haven't tried (unsuccesfully, as of yet), so I turn to the group for answers. I have a 2.5" HD from an MacBook ...
0
votes
0answers
22 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 ...
1
vote
1answer
27 views

Set Computer to Sleep Mode for Specific Amount of Time from CLI

This terminal command sets the computer to sleep mode: osascript -e 'tell application "Finder" to sleep' How can I make the computer sleep for a specific amount of time, say 20 minutes? Do I need ...
0
votes
1answer
10 views

How do I remove a ColorSync profile from a JPEG image from Terminal in El Capitan?

I have several images that I would like to strip the ColorSync profile from. Eventually, I would like to automate this in bash so I could easily process this on a file or folder from the contextual ...
-1
votes
1answer
12 views

Backing up data

I have a script that used to run daily that looked like the following to backup my mac. Backup script pastebin As you see here, this script is TERRIBLE because it deletes everything in the folder ...
27
votes
5answers
17k views

Can I disable Dashboard in Mountain Lion?

I'm wondering if there's a way to disable the dashboard in Mountain Lion. I never use it and I think it's consuming processor and memory powers.
-1
votes
0answers
29 views

How to Install Vim Airline Plugin?

I want to install the plugin Airline. It is not in homebrew. It seems to be only in Github. I am thinking about the maintenance when it is outside homebrew. There is no section about installation ...
5
votes
1answer
529 views

How to make Font size equal to 15 in Terminal on Mac OS X Yosemite?

Here are the configuration settings for the Terminal app in Yosemite. It shows that I can set font size to the distinct values given in Terminal. How can I set it to some other in-between value ...
4
votes
4answers
6k views

How to open a new Terminal tab in current working directory?

I want to create and run a bash function that: cd into a project's directory Open a new tab in Terminal in the same directory Open my dev tools and start dev services Item #2 doesn't work as ...
0
votes
1answer
822 views

Which mail daemon does OS X 10.8.4 run by default?

I'm debugging some mail related stuff on my Mac, and not quite sure how my system is even sending mail. I can run a simple command like date | mail -s test myemail@mydomain.com and receive an email ...
0
votes
0answers
12 views

Unlock Windows From OSX Terminal [closed]

What I am trying to achieve is to have a fully automated boot and login script to remotely start up and log in to my windows gaming host for steam in home streaming. So far I have installed wakeonlan ...
0
votes
0answers
15 views

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 ...
5
votes
4answers
2k views

Copy to clipboard from Tmux in El Capitan

I am quite happy with the Terminal changes in El Capitan (see e.g. this question). However, i can't figure out how to enable copying to system clipboard from within Tmux. For instance, now that I am ...
0
votes
1answer
22 views

How to execute app DVD through Terminal of recovery flash drive?

I have a Mac OS X 10.7 Lion recovery usb flash drive. It still boots but won't install Lion anymore (an error occurred during installation). I don't have a install DVD, however the MacBookPro's were ...
0
votes
0answers
34 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
1answer
25 views

Deleting password from Keychain in terminal

I'm having trouble deleting the github credentials from Keychain Access. Keychain Access just freezes everytime I try. Is there a command to force deletion of an item in the Keychain from the ...
0
votes
0answers
22 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 ...
1
vote
1answer
21 views

How can I open a Terminal window directly from my current Terminal location?

Related to How can I open a Terminal window directly from my current Finder location?, I would like to have a terminal window open in one location, and open another one. E.g. under Linux, I could be ...
1
vote
0answers
27 views

solution to easily embed skim notes doesn't work

My question is directly linked to the thread Make Skim save PDF's with embedded notes by default What if the proposed solution (http://apple.stackexchange.com/a/166794/180243) doesn't help? As ...
0
votes
1answer
18 views

Add a Proxy to your computer via terminal

How would I add and activate a proxy for my computer via terminal (without going into System Preferences.) Can I do that with scutil --proxy somehow?
0
votes
0answers
27 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 ...
9
votes
3answers
2k views

How to isolate processes that evoke insane mds_stores disk read activity?

I have an interesting situation where when I monitor my disk activity, I find that mds_store is continually running between 1 to 35 megabytes per second (averaging around 3-5 MB/s) on the read and ...
0
votes
1answer
27 views

Terminal - Weird spaces included when typing fast

Whenever I want to use the pipe operator in the terminal, I get a weird kind of "bug": As is shown in the image above, I can type the exact same command twice and it will sometimes register it or ...
0
votes
0answers
15 views

Changing MAC Address via Terminal not working? [duplicate]

I am an OS X 10.11 user following instructions to spoof my MAC address via Terminal. Everywhere I look seems to point to the following command: sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx With the ...
0
votes
1answer
18 views

Create custom Terminal shortcuts

I'm working a lot with SSH connections to servers, by for example forwarding localports or just establishing SSH connection to manage some servers. For this I would like to be able to create some ...
7
votes
12answers
23k views

How do I remove crashplan from my Mac

I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app ...