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)

1
vote
3answers
138 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
20 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
29 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 ...
1
vote
1answer
125 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?
6
votes
1answer
4k 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 ...
35
votes
7answers
51k views

How to always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over with a mouse or trackpad? I imagine there's some Terminal ...
12
votes
3answers
14k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
2
votes
2answers
727 views

Repeat a song in afplay

I am using afplay to play a song and I want it to be repeat. Is it possible just using afplay?
1
vote
1answer
26 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 ...
1
vote
1answer
34 views

Root login using stdin

Can anyone tell me why this does not work? test:~ test$ echo 123 | su root su: Sorry Thanks
5
votes
0answers
598 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
41 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 ...
10
votes
1answer
8k views

Is there a more-accurate indicator of an app download's progress than what appears in Launchpad?

While downloading an application from the Mac App Store, you are presented with a progress indicator in Launchpad, like so: For a large install (like Xcode, as shown) this doesn't provide a ...
1
vote
1answer
37 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 ...
2
votes
2answers
55 views

automatic save before “Run in Terminal” in BBEdit

I am a new BBEdit user, with a long experience as TextWrangler user. In TextWrangler, I am used at running python scripts with the command "Run in Terminal", and in TextWrangler the default behaviour ...
1
vote
1answer
166 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 ...
5
votes
3answers
1k views

Displaying calendar events as text, in the terminal

Using Yosemite, is there a way to display events from my calendar in the command line? I'm aware of the stock calendars apple supplies for things like holidays and such, /usr/share/calendar/ and the ...
66
votes
11answers
29k views

How to move files to trash from command line?

I do a lot of terminal work, and today had the experience of typing rm fileInQuestion.txt Before finding out that I did actually need fileInQuestion.txt. If I'd deleted in the GUI then I would have ...
0
votes
0answers
109 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.
2
votes
2answers
302 views

Keyboard backlit light control from command line

Is there any command to control the intensity of keyboard light of a MacBook Pro?
2
votes
1answer
133 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 ...
1
vote
0answers
19 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 ...
2
votes
3answers
118 views

Find executables associated with Homebrew Formula

Some Homebrew formulas have names that do not correspond with any of the installed commands (e.g., coreutils, speech-tools), other formulas provide an command that matches up with the name, but also ...
2
votes
2answers
315 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 ...
3
votes
2answers
550 views

Any way to reboot a iDevice that is connected to a USB port via terminal (Mac terminal)?

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell?
6
votes
3answers
11k views

How to start OS X applications from the command line with optional arguments?

I am looking for an easy way to start different GUI OS X applications from the command line and with different parameters. If possible I would like to add them to the system PATH in order to call ...
1
vote
0answers
50 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
584 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 ...
1
vote
0answers
42 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 ...
1
vote
2answers
1k views

How to install and setup s3fs on OS X 10.7 (Lion)

I installed s3fs, a tool that allows mounting Amazon S3 buckets as a file system. I created folder for mounting in /mnt/s3 then I created a file in /etc/passwd-s3fs with the content ...
0
votes
0answers
84 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" ...
4
votes
1answer
4k views

How to open files via Terminal

I want to open videos and pictures from Terminal. Is there any way to do this?
1
vote
1answer
98 views

Automating Terminal Commands with AppleScript

I have an Arduino-based device (www.picobrew.com) and needs firmware updating. The company wrote a little app to do it for Windows users, but us OS X users are out in the cold. Fortunately, we were ...
5
votes
1answer
5k views

Why is a command line change to ~/Library/Preferences/com.apple.LaunchServices.plist not effective immediately?

When the Info window of Finder is used to associate files of a particular type with an application: the preference is effective immediately. When Terminal is used to make a comparable addition ...
6
votes
1answer
15k views

How do I find what packages I've installed via terminal?

I've been learning the shell for a few weeks and have installed several packages. I know/remember what some of them are, like oh-my-zsh and emacs 24 (which was a nightmare to upgrade to), but not sure ...
2
votes
0answers
44 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
263 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 ...
0
votes
1answer
19 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 ...
4
votes
2answers
1k views

How to execute a Parallels Windows application with command line parameters from Mac?

I am trying to call Beyond Compare Windows app to perform a file compre directly from Mac but I am block with command line argument passing. You can call Windows applications from the OS X command ...
1
vote
0answers
249 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 ...
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 ...
1
vote
2answers
3k views

Bash script not found El Capitan

I have created a Bash script that simply does ls -l. In Mavericks and older versions of OSX I simply made a symlink to the script and put it in the /usr/bin folder (ln -s ll.sh /usr/bin/ll) and I ...
2
votes
1answer
152 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? ...
5
votes
3answers
138 views

Use mdfind to identify all encrypted dmg?

Can someone suggest a clever way to identify all dmg that are encrypted? My only idea is rather complicated. use mdfind '(kMDItemFSName=*.dmg)' and then test the response from hdiutil imageinfo and ...
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
69 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 ...
1
vote
1answer
38 views

Dropbox and locate?

I frequently use the locate command to find files on my machine, but it doesn't index the Dropbox folder. I can't find any way to configure the folder selection. Is there a way to include dropbox in ...
2
votes
1answer
25 views

What would cause a CLI utility to ignore arguments except when invoked directly?

Okay, so this just happened: iMac:bin nreilingh$ tree --version . |____tree iMac:bin nreilingh$ which tree /usr/local/bin/tree iMac:bin nreilingh$ ls -l /usr/local/bin/tree lrwxr-xr-x 1 nreilingh ...
1
vote
0answers
53 views

plutil returns error when a string numeric key is used

I'm trying to insert a row to a plist by using the following command plutil -insert "160" -string "hi" file.plist However the system was not so happy about the fact that I was using a numeric key ...
1
vote
2answers
393 views

How to determine public temp directory on OS X to be write-accessible by www server?

I've MAMP running httpd server as _www and I'd like to assign the temporary directory as part of the shell script (bash). I've tried to use $TMPDIR as per these posts: How do I find the 'temp' ...