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
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
25 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
22 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
30 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 ...
2
votes
1answer
527 views

`open http://foo.com` and specify the chrome user which is to be used

Using the open command from terminal I would like to be able to specify the chrome the specific chrome user to open the url with? Local Chrome users are outlined here. Essentially I have a local ...
0
votes
3answers
61 views

How do I run a .sh or .command file in Terminal

I've always wanted to be able to run a script I've downloaded online directly from the Finder but just double clicking the file does not work.
0
votes
1answer
18 views

How to cd into my local git repo from an AppleScript?

I am running a Mac using OSX Yosemite v10.10.5. I want to push my local git repo to my remote using AppleScript. So the git code would be: shell git init git add README.md git commit -m "first ...
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 ...
1
vote
1answer
36 views

Set a Display colour profile via Terminal or AppleScript? (Macbook)

I would like to be able to change the display colour profile of my MacBook, with a view to writing a program that changes the loaded colour profile on a shortcut key-press, or automatically at certain ...
8
votes
1answer
296 views

Unhide invisible files from the command line

By default, a number of system directories (such as ~/Library) are hidden in OS X (ie. they don't appear in Finder): I know I can do this through the GUI but I would like to add a script to my ...
3
votes
1answer
57 views

Reformatting disk with no partition map

I have a 250GB hard drive that I tried to "burn" an ISO to (to make it bootable). Something went terribly wrong.This is what the disk looks like in Disk Utility (unmounted). When I mount it, this ...
39
votes
2answers
68k views

Why doesn't Mac OS X source ~/.bashrc? [duplicate]

I found a lot of people figuring out why instruction similar to this : Put X to your ~/.bashrc and you can do Y don't work. It always turns out that Mac OS X's bash's startup files (or Mac's ...
-1
votes
0answers
27 views

htop with temperature readouts?

I'm using htop for monitoring CPU/MEM usage. As I keep it in a borderless iTerm window on one of the Spaces, I would like to see a CPU temperature there as well. It looks like this now. ...
1
vote
1answer
3k views

Using kdiff3 as default git diff viewer on Mac OS

I have kdiff3 installed on my Mac (Version 0.9.97, 64 bit). Here's my ~/.gitconfig: [filter "media"] required = true clean = git media clean %f smudge = git media smudge %f [user] ...
1
vote
1answer
13 views

In Terminal, how to exit the two fingers history scrolling mode?

With Terminal 2.6.1, when I ssh a linux box, sometimes I don't know why, the two fingers scroll change behavior. Instead of scrolling the command output, it scrolls the command history. How to exit ...
6
votes
4answers
8k views

How to make bash (Terminal.app) remember history of previous sessions?

In my computer at work, my bash shell remembers history from previous sessions, even if I just opened a new terminal. In my computer at home, this doesn't happen. I have the same OS 10.6.8 in both ...
4
votes
6answers
5k views

Monitor a folder for changes, and run a command when a change is detected

Is there a simple way to automatically run a (Terminal) command every time a file is changed in a specific folder? This should be possible via the command line, or a system built-in application, no ...
1
vote
1answer
26 views

How to rename a USB stick using disk number (via terminal and using diskutil)?

I'm creating a bash script that will rename the USB stick using a diskutil command. From what I've read in the man and various examples, I need to supply the volume name. In my situation, the volume ...
0
votes
0answers
51 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 ...
1
vote
0answers
30 views

`ls -G` output format changes with less column spacing

I want to see coloured output of the ls command and so I added export CLICOLOR=1 to .bashrc file but now the spacing between columns in the output of the ls command changes. How do I maintain the ...
33
votes
13answers
77k views

Password dialog appears when SSH private key permissions are set to 0600

I installed my SSH private key in ~/.ssh/id_rsa and set its permissions to 0600. When I connect to an SSH server which uses my private key in Terminal.app via ssh, a dialog pops up and asks me to ...
1
vote
2answers
55 views

How to communicate with another computer (on another network) terminal to terminal (OS X )

I would like to be able to print to the terminal of a computer on a different network (this should work bilaterally). I understand that this should be possible by using the command ntalk, but I have ...
1
vote
1answer
21 views

Put computer to sleep and have it ask for password on wake

How do I put computer to sleep and have it re-awake asking for a password? I'm looking for a terminal command to do this. I tried pmset sleepnow did not work.
1
vote
2answers
172 views

Exiting/Starting the Terminal (El Capitan)

In the latest Mac OS X Terminal version I noticed that if I type exit and the press Enter, I get the following: Last login: Wed Jan 27 09:18:48 on ttys000 Ian-iMac:~ Ian$ exit logout Saving ...
1
vote
1answer
16k views

My Finder is not responding and there are no documents on Desktop after downloading OS X Yosemite

I've just upgraded my Macbook Pro (15 inch, mid 2009) to OS X Yosemite and it is running slowly and my Finder is not responding at all and none of my documents are on my Desktop. I have tried taking ...
2
votes
2answers
37 views

ZSH - missing git icons

Hi I've just installed ZSH and it looks awesome but git icons are still missing and I don't know what I miss. What I should do?
3
votes
3answers
871 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
1k views

How to launch an iOS Simulator with Safari open using a single command?

I am looking for a solution to launch the iOS Simulator from command line with Safari launched by default. Launching the simulator from command line is easy. So is the launching of Safari. But I want ...
0
votes
2answers
35 views

How to change the path of application in OSX

I removed phonegap from /usr/local/bin/phonegap and installed it again using npm, now when running phonegap, I see this error: -bash: /usr/local/bin/phonegap: No such file or directory ...
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
2answers
48 views

Recursively remove all invalid characters from text files in place

I have several thousand text files, some of which contain invalid UTF-8 characters. I want to recursively remove all invalid characters from these files in place. I am aware that many similar ...
2
votes
1answer
19 views

Send args to Firefox when launching from terminal

Additional arguments on start of Google Chrome from Terminal app are send in a following way: open /Applications/Google\ Chrome.app --args -myArgs="ARGS" What is the syntax to sending arguments ...
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 ...
1
vote
1answer
267 views

How do I show all hidden & invisible files on the command line (both .files and invisible flagged files)?

Is there a way to show only the hidden and invisible files in a directory using the command line? For instance ls -a | grep "^\." will show all the files hidden by a period as the first character, ...
5
votes
2answers
5k views

LSOpenURLsWithRole() failed with error -10810 Can't open 'Install OS X Yosemite.app'

I'm trying to install OS X Yosemite through 'Install OS X Yosemite.app' downloaded from the Internet. When I try to open it by double clicking it, nothing happens. When I use the terminal I get the ...
1
vote
2answers
37 views

Why doesn't pbpaste return cursor at new line in bash?

I run the command pbpaste in Terminal (bash) to get the result of my clipboard, but unlike other commands which leave the cursor at a new line below the previous stdout, pbpaste leaves it to the right ...
-1
votes
1answer
3k views

How to add a script that types in the password for my vps through applescript

I made a script recently and have turned it into an app, it basicly logs me into my vps via ssh but I don't know how to tell it how to type in my password for me, heres the code tell application ...
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.
4
votes
2answers
476 views

How to turn off the Terminal's “Allow mouse reporting”?

Every time when opening an new Terminal window, the View -> Allow mouse reporting is always checked. And everytime i must press CMD-R to disable it. Is here a way how to disable it by default?
0
votes
0answers
17 views

Silent installer for remote machines

I am trying to create a script to install logmein silently (or in the background) with out enduser input. I have the process to download the zip and create an admin user (for later login) however I ...
0
votes
1answer
37 views

Opening a specific page on Mac Preview from Terminal

How I can modify the open filename.pdf command so that I can open a desired page number directly without having to scroll down.
0
votes
1answer
22 views

How do I make git credential-osxkeychain work correctly when I'm connected to a machine via SSH?

I setup a build machine to check out sources from Github by caching the login credential in the keychain using instructions from: https://help.github.com/articles/caching-your-github-password-in-git/ ...