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
votes
1answer
19 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.
5
votes
1answer
683 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
7k 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 ...
1
vote
1answer
849 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
1answer
27 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
37 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
28 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
31 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
26 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
28 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
24 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
53 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() ...
1
vote
0answers
18 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 ...
1
vote
1answer
34 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
23 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 ...
8
votes
12answers
24k 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
81 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
22 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
25 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
44 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
316 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
77 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 ...
44
votes
2answers
71k 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
vote
1answer
15 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
32 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
136 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
41 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 ...
1
vote
2answers
64 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
27 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
277 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 ...
2
votes
2answers
51 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
1k 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
2answers
38 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
38 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
56 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
22 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
35 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
268 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
43 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
16 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
539 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 ...