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
66 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
2answers
242 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 .. ...
7
votes
2answers
474 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 ...
3
votes
2answers
304 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 don'...
0
votes
1answer
34 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
31 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 ...
0
votes
1answer
39 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
20 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 ...
1
vote
1answer
43 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
0answers
50 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 ./InfectiousDiseases/1....
0
votes
0answers
40 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
33 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
1answer
39 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 terminal?...
0
votes
0answers
56 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
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 in,...
1
vote
1answer
42 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 ...
0
votes
1answer
32 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
106 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
27 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 ...
1
vote
1answer
44 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
32 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 ...
0
votes
3answers
173 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
31 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
26 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 ...
3
votes
1answer
85 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 ...
2
votes
1answer
22 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 ...
1
vote
1answer
58 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 ...
1
vote
1answer
39 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
482 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
64 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
1answer
28 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
82 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 ...
2
votes
2answers
83 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?
0
votes
0answers
45 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: ...
8
votes
1answer
323 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 ...
2
votes
1answer
25 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
2answers
81 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 ...
1
vote
2answers
49 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 ...
0
votes
0answers
17 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.
0
votes
0answers
45 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 ...
0
votes
2answers
42 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
1answer
37 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/ ...
0
votes
0answers
32 views

change firefox proxy from terminal

How can I change proxy for Firefox from Terminal app? Not the whole computer proxy settings (the ones in Network tab), but just Firefox's.
1
vote
0answers
28 views

strange network issue after new router 'unkownXX…' terminal promt instead of Name

Some weeks ago I got a new router* and since then I encounter some local network issues from time to time (at the moment I can’t reproduce when this happens): Wifi is connected but webpages don’t ...
2
votes
0answers
40 views

Open applications in the background in OS X, I don't want my focus taken from me. Respect my Focus!

I'm running El Capitan 10.11.4 on a 2014 Mac Mini. I'm often running 10-14 apps at one time as I work writing reports, word/excel/Adobe/Safari/iTunes/calendar/etc... Frequently I want to open ...
0
votes
1answer
50 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
116 views

Calling Python 3 script from AppleScript

I have a Python 3 script that I'd like to add as a Service using Automator. The idea is that I can right click on a text file, and an option will display to run my script on said file. The shebang ...
1
vote
0answers
27 views

Airmon-ng on Mac

so I know that Airmon-ng isn't made for Mac, but every time I try to run it all it says is that the wireless tools are missing. And I've heard people say to just download the wireless tools but where ...
0
votes
0answers
39 views

How to sort a list of files ordered alphabetically to a list ordered numerically?

I'm trying to split large .csv files into several smaller ones ordered numerically, i.e., "File.csv" into "file_1.csv, file_2.csv, file_3.csv...". When I use the command: split -l 100000 File.csv ...