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
0answers
105 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
39 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
26 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
63 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
48 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
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: ...
8
votes
1answer
314 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
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
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 ...
1
vote
2answers
41 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
13 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
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 ...
0
votes
2answers
37 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
25 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
27 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
23 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
28 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
38 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
72 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
22 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
36 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 ...
2
votes
0answers
101 views

Issues with files and folders with names containing umlauts

I have just noticed some issues browsing my external music collection using Finder, certain artists folders were missing. Going to iTerm and lsing the folder I got this as the initial report: ls ...
0
votes
1answer
59 views

Mac OS X Terminal mouse reporting

I don't know why this is bothering me but I've been pressing Cmd-R to refresh my browser and today I mistakenly pressed this combination while using the terminal. I came across an option known as ...
0
votes
0answers
88 views

El Capitan Mac: /usr/bin/login tries to run /bin/false

Just upgraded from Yosemite to El Capitan, and I started out with an Emacs problem: it wouldn't launch from the Emacs.app icon, complaining that it couldn't find /bin/false. I tracked this down to ...
0
votes
0answers
29 views

Fresh OS X install, cleanly manage terminal applications going forward

I just got a new Hard Drive and installed a fresh copy of El Capitan on it. I'm a computer programmer and use a ton of terminal commands. Is there anything I can / should do now that my computer has a ...
2
votes
0answers
12 views

Get current time with/in milliseconds from OS X command line [duplicate]

I'm trying to get the current time from OS X command line to work with in AppleScript to output the elapsed time. Currently I'm using this script: set timea to do shell script "date +%s" ##something ...
0
votes
1answer
47 views

Unable to clear Xcode from Trash. Force clear in Terminal returns permission error?

Since the App Store seemed stuck with updating Xcode to 7.3, I have decided to delete it and reinstall. However, after moving Xcode to the Trash, it refused to be cleared and instead be stuck on the ...
1
vote
0answers
32 views

Terminal command to change Keyboard preferences on Mac?

I'm trying to configure new Mac accounts to have certain languages added to their keyboard preferences. Is there a terminal command to add languages to a particular user's keyboard preferences or ...
0
votes
1answer
28 views

Clean shutdown/restart from terminal in 10.7+

I have a headless system that is controlled remotely that I need to shutdown/restart in an automated way (without the use of VNC or local keyboard/mouse). Using various commands via SSH or via my ...
0
votes
2answers
66 views

How to type in Mac window?

I want to enter a simple adb shell command, so I navigated to ...\sdk\platform-tools\adb.exe, and opened it. However, I am unable to type in it! I am a new Mac user after recently moving from ...
0
votes
0answers
15 views

Odd behaviour for long commands after styling the terminal

After putting the following statements on the ~/.bash_profile file: # STYLING THE TERMINAL # References: # - ...
0
votes
3answers
54 views

How to make Terminal open every new tab in the “Homebew” profile?

I really like Terminal's "Homebrew" profile (black background with green front, instead of the default white background with black font), so I set it as my default profile. This makes it so that when ...
0
votes
0answers
29 views

curl isn't outputting what it used to

I had programs that relied on using curl in the terminal (bash) and one day thy just stopped working. I realized this was because the output of curl had changed for some reason. I thought maybe the ...
0
votes
0answers
44 views

OSX Activity monitor (energy) shows terminated terminal app with high average energy impact

I use my macbook like desktop (always connected to electricity) 95% of the time, so I never noticed this before. However, I had to use it on battery last few days and it surprised me how short the ...
1
vote
1answer
155 views

Shell command or series of commands similar to the Automator action “Get Link URLs from Webpages”

I have a long list of URLs. Contained within each of these webpages, there are links I need to extract. The Automator action Get Link URLs from Webpages is a very useful action for this task. ...
1
vote
1answer
70 views

Get URL of opened tab / tabs from terminal

I have a tab open in Google Chrome. Is it possible to get or check it's url from terminal? If not, how about automator script? Will also be satisfied with a title.
1
vote
0answers
23 views

Virtualenvwrapper, can I get rid of it from Terminal and my Sublime Text?

I have an MBP latest OS running, I tried to follow a guide to install VirtualEnvWrapper a few weeks ago, not too sure why. But I keep getting this error when opening terminal and its quite annoying, ...
0
votes
0answers
20 views

What happens to programs like node, npm or grunt that has been installed globally after os x reinstall?

I have huge problems with the kernel_task. I have a Mid-2015 15" rMBP with discrete GPU. It really annoys me when kernel_task goes 400% 500% CPU and I could not solve this problem. I want to reinstall ...
0
votes
2answers
57 views

How to write a script that runs whenever a new file is added to a specific directory?

I've never written a script for OS X, and I don't really know which scripting tool i'll use for this task. Here's a pseudo code for the script I want to build : whenever a new file X is added to ...
3
votes
2answers
141 views

How to enable/disable OS X beta participation from Terminal?

Does anyone know how to enable/disable OS X beta participation from the Terminal? Typically one could opt-out of the Beta program by choosing the following option found in the App Store preferences ...
0
votes
1answer
814 views

How to batch download all files in a Volafile.io room?

Volafile.io Live Filesharing & Chat Example URL: https://volafile.io/r/$ID. There is Feature request: Download all the content of a room in a .zip file. #117. I don't wish to depend on that ...
1
vote
1answer
34 views

Setting up execution path in Terminal

I have no experience with using Terminal but I am trying to install a program msbayes (installation instructions here. The instructions say to set up an execution path using either $ echo 'export ...
2
votes
1answer
58 views

Basic OS X folders - folder structure regarding users

I am logged in as user "vlado" on my MacBook running El Capitan. If I go and type whoami in Terminal, it says vlado too. So this is fine. But in my folder structure in hd/Users/vlado/Applications I ...
2
votes
2answers
85 views

What is the most OSX or Darwin-like command-line experience available (without buying an expensive Mac or hauling my production machines home)?

I want to emulate the command-line experience from OSX with a small netbook and practice my skills with the comfort of this small machine. Surely Apple offers actual Darwin Links for developers or ...
1
vote
0answers
112 views

Curl terminal command syntax from Applescript

I want to execute a curl command in Applescript that does the following (per this SE question/answer): http://superuser.com/a/1054803/471181 ...Do an HTTP POST of the contents (as a string) of a ...
0
votes
0answers
6 views

Adding Aspshell user account via terminal

Good Day, I'm new in Mac OS X (Maverick). I want to add user account (standard user) with aspshell via terminal. Any tips? Thanks.
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
1answer
31 views

How do I add the Applications folder to the terminal PATH?

For example, I have Sublime Text that I can open from Spotlight. However, sometimes I'm navigating with the terminal and I want to do sublime source.php, but since I don't have the sublime app ...
0
votes
0answers
17 views

How to Extract ENVI picture details for Matlab?

I am studying pictures where I need to separate psf images with sufficient ENVI header file for the function multibandread in Matlab SIZE = [LINES, SAMPLES, BANDS] SUBSET = {DIM, METHOD, INDEX} X = ...
1
vote
1answer
60 views

How can I make an external drive behave as an internal drive?

My question is pretty much summed up by the title, I have an external drive which I'd like to have recognized as an internal drive. How can I do that? Thanks for looking at my question. By the way I ...