Using programs and commands that do not have a graphical user interface (GUI) but are rather controlled by typing text commands into a terminal program, or shell.

learn more… | top users | synonyms (2)

4
votes
1answer
73 views

OSX: how to determine USB current draw?

I connected a device to my USB port, but it's unclear how much current it is drawing. Is there a way from the command line, or otherwise, to determine how much current that device is drawing?
5
votes
2answers
980 views

grep: command not found

This is a very weird behavior. Lately, whenever I am trying to find a process on console with ps aux | grep foo, it is returning a grep: command not found. Ok, that could be something that I changed ...
3
votes
1answer
54 views

Why is the host name in the shell prompt “MacBook-2” instead of “MacBook”?

I opened Terminal on my MacBook Pro and the prompt read MacBook-2:~ myName$. Is there something wrong? Do I need to be worried about this? Why "-2"? Thanks in advance.
1
vote
1answer
463 views

How can I create bash_profile and bashrc [duplicate]

OS X 10.11.2 El Capitan I want to create some alias, so I go to ~/ folder and there is no .bash_profile or .bashrc. I have been looking for some info and I learn that .bash_profile is only read ...
11
votes
4answers
3k views

How to deal with commands of conflicting names listed in `brew doctor`?

So after brew doctorI`ll get the following without any recommendation: Warning: You have external commands with conflicting names. Found command `brew-cask` in following places: /usr/local/bin/brew-...
2
votes
1answer
109 views

How to set up wireless bridge on same subnet?

I have set up Internet Sharing over Wifi on an ethernet-wired desktop Mac running Yosemite 10.10. I have various OS X and iOS clients that are able to connect to the shared Wifi connection and access ...
3
votes
2answers
730 views

How do I programatically kill the CCLibrary process by PID?

I need to know how to write a command or script to kill the CCLibrary and CCXProcess processes. They are part of Adobe's Creative Cloud, and since their previous update they keep respawning and ...
0
votes
1answer
28 views

'soft return' in iTerm2

I'm just wondering is there a way to enter a new line in iTerm 2 without executing the line being typed? I am looking to make use of some relatively long commands to automate some things, but not ...
4
votes
2answers
478 views

How to use cd with shell variable containing spaces

I am trying to create an environment variable for a path that is long, has a space, and syntax. I tried the following: export temp=/Users/username/Dropbox (Personal) And added it to my .profile. ...
2
votes
0answers
51 views

How to customize drag-n-drop-to-Terminal path escaping results?

How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with \, just spaces (), or other ...
0
votes
1answer
84 views

Help converting Apple Script to Shell Script

This Apple Script works great to mount the logged in Active Directory users network homedrive as a mounted network drive but we currently have it running as an App at login via "Login Items". ...
0
votes
1answer
34 views

Adding a compiled application to $PATH. Understanding the problem

I'm trying to understand the whole $PATH problem but I've got no luck so far. Suppose that I've just compiled an executable with make and I need to launch it with the shell without using the full path....
1
vote
2answers
45 views

How do I remove multiple owners from a file/folder?

While trying to set up MAMP/PHPStorm, I CHOWNed the OWNER of my Sites folder to _www from myUser. Since this did not resolve the problem I was experiencing, I attempted to CHOWN myUser /Users/myUser/...
0
votes
1answer
15 views

How can I tell if a particular directory is connected to a remote machine?

I've found various ways to check if a particular directory is mounted under NFS (here, for example), but none of them seem to work on OS X. How can I check if a particular directory is an NFS ...
0
votes
0answers
66 views

Command line to disable full screen behaviour of green button in windows bar

Is there a command line to revert the behaviour of green button in 10.10 and later? I don't like the full screen approach and I prefer a maximize behaviour. I don't want to use an external tool like ...
3
votes
3answers
250 views

Can Safari's download popover window be made wider?

How can the max. width (fixed width≈425) of Safari's download-popover-window be made wider? Is there a way to get at Safari's "download pop over window" in any way so its max-size is larger than 425 ...
1
vote
1answer
388 views

Mac play not added to path

I have installed the play framework using typesafe-activator. However, this does not appear on in PATH. Therefore, I can not use Play from the command line: Octavians-MBP:exericsePS octavian$ play ...
1
vote
2answers
76 views

Shell script failing in Automator but works if I copy/paste into Terminal

Workflow I'm trying to achieve: Export SVG file from Adobe Illustrator to Desktop Drag SVG file from Desktop onto Automator Droplet Automator runs script (basic summary below) Script executes and ...
0
votes
0answers
26 views

How to see all services available for launching with launchctl?

I tried this on Yosemite: launchctl list but it doesn't show e.g. postfix which I have just launched with: launchctl kickstart system/org.postfix.master Is there any way of listing all the ...
1
vote
1answer
538 views

How to send email from OS X command line

Dozens of tutorials followed and nothing works. msmtp doesn't work ("TLS certificate verification failed: unable to get local issuer certificate" (cert installed) postfix doesn't work (no way to ...
0
votes
1answer
346 views

Is El Capitan preventing me from getting the Perl module DBD::Oracle working?

Let me start by saying I'm not traditionally a Mac user. I'm still trying to transition from Gentoo, where compiling everything from source was the default state, and the system wasn't actively ...
1
vote
3answers
146 views

Terminal command to return network class

I'm trying to construct myself a primitive network scanner, and I understand that there are multiple network classes and it has become necessary for my program to determine exactly what class of ...
0
votes
0answers
25 views

Cannot use pcilib on in Terminal

I want to use lspci in command line, but it outputs pcilib: Cannot open AppleACPIPlatformExpert (add boot arg debug=0x144 & run as root) lspci: Cannot find any working access method. Then I ...
2
votes
0answers
38 views

Grant rights on a certificate to an app through the shell

I'm currently looking for a way to grant an application rights to a certificate in my /Library/Keychains/System.keychain through the shell. I can currently do this through the Keychain Access App by ...
2
votes
2answers
48 views

Single-button shortcut for “Do not Disturb”

Is there a way I can bind a single key on my keyboard to toggle "Do not Disturb"? It would be more convenient that opening up the notification center and moving that awkward slider. I do think that ...
1
vote
1answer
162 views

Using gnuplot terminal on OSX

I just installed gnuplot and I am trying to set the default terminal. On the wikipedia page for gnuplot, there is an image with a graph: Which terminal view is shown in the image at the link?
1
vote
1answer
27 views

u flag with ps command

According to the Mac man page for ps it says for the -u flag: -u Display the processes belonging to the specified usernames. However, it seems to display different information rather than just ...
7
votes
1answer
6k views

Missing .bash_profile and .bashrc files

I don't have .bash_profile or .bashrc files and I am definitely using the bash shell. I am using Mac OS X 10.11.1 El Capitan. How do I permanently modify my $PATH to cut down the default values Apple ...
6
votes
0answers
957 views

Check the battery level of connected bluetooth headphones from the command line

I am trying to check the battery level of my wireless headphones from the command line. I came across a few discussions, and it seems all I need to do is enter the following: ioreg -c 'deviceName' |...
2
votes
1answer
45 views

Automator workflow only works when clicking “step”

I am trying to write a workflow that will use Shell to apply SHA256 to cells in an Excel spreadsheet. The Workflow (which may be a bit of a hack) is working, but only when I click through it using "...
1
vote
1answer
50 views

Downloading additional voices from command-line

I am using a MacOS X server (to which I only have command-line access) to convert text to speech which is saved to sound files (using PyObjC). I would like to install some of the optional OS X voices (...
1
vote
1answer
194 views

Controlling audio output's sample/bit rate on OSX from command prompt

Is there a way to limit the output format of a soundcard on OSX, apart from Audio MIDI Setup? I have noticed that OSX has a bad habit of resampling audio while it is not needed at all (say the output ...
0
votes
0answers
148 views

Command line app to change screen resolution with RETINA?

I'm looking for a command line app to change screen resolution. I've tried cscreen, screenresolution, and scrutil. The first two work to change resolution, but they do not enable retina scaling.
1
vote
0answers
22 views

How to see the commands echoed on the Terminal?

Maybe is a silly question but I'm a newbie in OS X and I didn't found the answer anywhere. The thing is that when I execute some command that executes other scripts/commands/whatever I don't see on ...
1
vote
0answers
52 views

How to compare files for an entire drive from a before and after (or changes during) state?

I would actually very much like an option similar to fseventer, but it appears that not only will it support recent OS releases, but that it is altogether no longer available. What can I do for 10.10 ...
2
votes
1answer
786 views

Unable to set DYLD_FALLBACK_LIBRARY_PATH in shell on OSX 10.11.1

In shell scripts used for unit testing with dynamic libraries in a directory other than the typical @rpath, I have previously been able to set DYLD_FALLBACK_LIBRARY_PATH to set the directory ...
2
votes
2answers
325 views

Terminal command that gives the type of computer you're on

I am running MATLAB code on two different computers, both with the same username. I would like to distinguish between the two Macs by having the code identify that one system is a desktop, and the ...
1
vote
0answers
57 views

Can MacOSX 10.7 open tar.lzma files [closed]

Can the tar command included by default on MacOSX 10.7 open tar.lzma (or tar.xz) archives? If it helps to answer I have a sample file here. You could test by opening a Terminal and issuing: curl -...
2
votes
1answer
158 views

Backup files from corrupt disk to usb drive in single user mode

I try to backup my files of a corrupt system. I can start into the single user mode and want so store my home folder to my backup system. To mount my usb drive I need to mount the root disk as ...
6
votes
1answer
10k views

How to open files via Terminal

I want to open videos and pictures from Terminal. Is there any way to do this?
0
votes
0answers
100 views

Finder can't handle objects of this class

I am following the instructions on this website Optimize CS:GO... trying to run this script in AppleScript Editor. set myfilepath to "Users:MYUSERNAME:Desktop:Counter-Strike Global Offensive.app" ...
2
votes
0answers
49 views

Terminal Change text appear area to bottom right

I want my terminal to have the prompt lines (I don't know what to call them) come from the bottom of the terminal window, and be fixed to the right of the screen, not the left. Is there any way to ...
3
votes
2answers
352 views

How can I set the Mac OS X terminal history to act like linux when using up/down arrows?

I'd like for the mac os terminal app to scroll through my command history the same way that it work in linux, if possible. Currently, if I push the up arrow in the terminal, it will scroll through ...
1
vote
0answers
290 views

Dual-booting a Linux distribution on a Mac with Fusion Drive

I'd like to install a Linux distribution alongside OS X on my 2014 5k iMac with a 3TB Fusion Drive (128GB SSD + 3TB HDD). Most guides about dual-booting Linux I've found focus on regular partitioning,...
0
votes
1answer
22 views

Using Tag how do I cut and parse file paths into tags

I'm using Tag and Hazel and I'd like to recursively go through files on our server, obtain their file paths and filenames and parse the whole thing into tags to apply to the file. Is there a shell ...
1
vote
0answers
30 views

-bash: 1: command not found - Immediately on loading Terminal [duplicate]

Upon loading my terminal (since trying to install composer globally) I'm being spammed with countless amounts of -bash: 1: command not found before I even type any commands. I'm not quite sure what ...
2
votes
1answer
186 views

Where can I get formail for OS X El Capitan (10.11)?

I was using formail in a utility script, but it disappeared when I upgraded to OS X El Capitan (10.11)? Apparently, it and procmail are gone. What's a good way to get formail? Build it from source? ...
3
votes
3answers
219 views

Display interactive notifications (with buttons) via Terminal

I'd like to let my bash shell scripts to display gui notifications with two buttons that the user can click and then execute some commands depending on the button pressed. What options exist?
1
vote
1answer
25 views

Mucked up disablement of Notifications Center

Tried to disable Notifications Center and remove it from the menu bar, unfortunately didn't copy the whole command: launchctl unload -w /System/Library/LaunchAgents Now I'm presented with a ...
1
vote
0answers
81 views

Profile Manager: Using command line, is there a way to print/lookup iOS apps by at least title, that are associated/available in Profile Manager

Restating my question: Using command line, is there a way to print/lookup iOS apps by at least title, that are associated/available in Profile Manager Goal/Context: I am looking for a way to automate ...