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)

0
votes
0answers
10 views

command line update of python3

I have both python 2.7 and 3.5.1 installed in my Mac (El Capitan). I left version 2.7 as per this recommendation. Now I would like to update version 3.5.1 to the latest one but from the command line. ...
1
vote
0answers
14 views

How to run OS X 10.10 install via command line?

I am trying to create a script that wipes/partitions the hard drive of old macs and reinstalls OS X so that I do not have to click through the user interface. I can run wipe the disk, but I cannot ...
5
votes
1answer
426 views

less doesn't work

Recently I've noticed that less command doesn't work. $ ls | less CertificateEntreprenuership101.pdf Engineering Software as a Service_ An ...
0
votes
0answers
13 views

Error: It seems the App source is not there: '/usr/local/Caskroom/multibit/0.5.19/MultiBit.app'

I first moved Caskroom to new location mv /opt/homebrew-cask/Caskroom /usr/local for f in ~/Applications/*.app; do oldloc="$(readlink "$f")"; [[ -e $oldloc ]] || ln -sf "/usr/local${oldloc#/opt/...
0
votes
0answers
6 views

how do I see for existing volumes if the FileVault recovery key is stored in iCloud

I own several Macs (also for family members) and the first thing I do is turn on FileVault. How do I check if the recovery key is not stored in iCloud (for existing volumes, not new ones)? If you'...
0
votes
1answer
16 views

Exception in thread “main” java.lang.UnsupportedClassVersionError (Trying run Alda on OS X)

I've hit a wall with trying to get Alda to run on OS X. It's an executable I downloaded from here; then, as per the installation guide on GitHub, I ran chmod +x alda on it, and then moved it to my /...
3
votes
2answers
455 views

Where is “mkpasswd” for OSX?

There is a well-known unix utility called mkpasswd available on many *nix systems. I was just trying to use it from terminal on an OSX 10.10.5 Yosemite (Early 2015) machine, and it is nowhere to be ...
1
vote
2answers
64 views

Finding files with square brackets in filename

I have a ton of files - TOSEC ROM sets - on my Mac (El Capitan) that have filenames suffixed with a tag in square brackets - for example Manic Miner (1983)(Bug-Byte Software)[a] Manic Miner (1983)(...
0
votes
1answer
32 views

Terminal.app and tmux session, can't use “open” command (without tmux it works)

I use Terminal.app and a tmux session. > open -a VLC file.mp4 The window server could not be contacted. open must be run with a user logged in at the console, either as that user or as root. ...
0
votes
1answer
28 views

Command-line keychain access not showing any results [duplicate]

I have been trying to learn to control my computer through command-line, and keychain access is what I am trying now. I have been using the security command, and attempting to get my wifi password (I ...
0
votes
0answers
8 views

How Deep Do I Need To Define Paths for the Cosign Terminal Command?

My company is registered as an Apple Developer. Our firm has created Mac apps outside of Xcode that we want to code sign. They will run on OS X 10.8+. This link shows the tasks needed to code sign ...
0
votes
1answer
39 views

How to encrypt zip file and filenames via command line?

Using command line on Mac, I know that I can encrypt a directory with the following command: zip -er Directory.zip /path/to/directory However, this does not encrypt the filenames themselves. If ...
0
votes
1answer
40 views

How to remove __MACOSX folder in a list of zip files (not a single zip file)?

I know I can remove __MACOSX in a zip file by: sudo zip -d bg1.zip "__MACOSX*" but I want to remove it in all zip files, I tried sudo zip -d *.zip "__MACOSX*" but it says zip warning: name not ...
0
votes
1answer
36 views

Problem “do shell script” on curl – Works in Terminal, but not via “do shell script”

I want to use "curl" with "do shell script" in an apple script. It already worked some months ago, but then the provider changed to https-only service. So I update curl on Mac OS Terminal: $ curl -V ...
0
votes
1answer
109 views

Last command source file

Despite what I thought, there does not seem to be any concrete/modern answer on the net, so my question is: where does the last command get its information from? I have found the file before, but ...
0
votes
0answers
9 views

duplicate image: find the same image in different resolutions (low, middle and hq)

There are lots of Open Source (brew) and App Store software about duplicate image finder. Mostly they do things like a checksum on files. I have a different use case. I have the same image in lot of ...
7
votes
3answers
813 views

Moving .bash_profile to Dropbox

I'd like to move my .bash_profile to Dropbox to have my custom Terminal functions available on all my Macs. Is this possible and are there possible implications? For example I have a command for ...
1
vote
1answer
36 views

output of the who command

I am trying to understand the output of the who command. When I add the -H flag to print the headers, the second column ( the one signifying the users logged in) is titled LINE. I am trying to ...
-1
votes
0answers
18 views

How can I change the language to english from japanese of applications ran in terminal?

the language of the applications ran in shell (like Wine or ssh and sshfs) changed language to japanese (see image below) but when i use the terminal normally it's in english, does anyone knows what ...
0
votes
1answer
36 views

Does the `mdls` terminal command access metadata in resource forks?

I always knew that Mac operating systems had a concept of "resource forks" but have just learned that this feature has in fact been deprecated since the arrival of OS X. I also just discovered the ...
3
votes
1answer
38 views

what is the style of command line editing used by the terminal emulator?

in bash in gnome terminal in Ubuntu, the command line editing commands are by default emacs-style, and can be changed to vim-style. In bash in the terminal emulator of Mac, the emacs-style commands ...
2
votes
0answers
40 views

How can I install bind-utils on El Capitan

I would like to use DNSSEC tools (like dnssec-keygen, dnssec-signzone, ...) on my Mac without running or installing the BIND9 service. Unfortunately for me Homebrew seems only to have the BIND9 ...
1
vote
0answers
27 views

Bash Ctrl-A Returns to Start of Line but Doesn't Display Properly

When I ssh into a Linux server from bash Terminal, I can use CTRL+A to return to the start of line properly, and CTRL+E to go to end of line and everything works fine. When I use bash locally on my ...
0
votes
2answers
95 views

Find readable with Permissions as POSIX?

Aimed systems: Linux and OS X. Original code which works in Ubuntu 16.04 but not OS X, but follows unsuccessfully POSIX standards gfind ~ ! -readable -prune -o -type f -name "*.tex" where ! is ...
5
votes
2answers
330 views

Installing fonts from terminal instead of Font Book?

I know how do install new fonts using Font Book. Is there also a way to install fonts from the terminal, using some smart shell command?
8
votes
1answer
97 views

checking path capitalization of pwd

Is there a quick way to check in terminal that the terminal command pwd returns the correct capitalization of the path? Note that if you do cd ~/desktop then pwd would tell you that your path is /...
0
votes
0answers
10 views

How can I put a Realtek wifi adapter in monitor mode?

I have an ALFA awus036nhr wifi adapter and can use it in monitor mode in Linux but I can't use airmon-ng in OS X even though I have airocrack-ng installed, and running tcpdump -Ii en6 returns: ...
0
votes
1answer
34 views

What automatic script runs with Bourne Shell (/bin/sh) for root?

I want to add some aliases to my OSX command line environment for easier navigation when in the root prompt (sudo su to root). On the Bourne Again Shell (/bin/bash), I can edit /var/root/.bash_profile....
0
votes
0answers
23 views

Can't delete keychain items with UI, but command line works fine

When using the Keychain Access app, I am often unable to delete an Web form password item. I have tried hitting the delete key and going to Edit > Delete. In both cases, nothing happens, there is no ...
-1
votes
1answer
59 views

Can naming/running a program “sudo” somehow cause problems?

I hope this is an appropriate place to post this--I have no idea what happened. I named a c++ file (a simple sudoku solver) "sudo.cpp" and then compiled it with "g++ sudo.cpp -o sudo" and ran "./sudo"...
0
votes
1answer
23 views

Does Apple provide a web site with content of `man` pages for the command-line commands bundled with Mac OS X?

I want to provide URL links to man page content at apple.com as an authoritative source of information. Describing and quoting the local man page is awkward. Does Apple provide man pages on the web?
1
vote
1answer
26 views

Carbon Copy Cloner shell script for ejecting the source drive

I created a backup system for a friend, using Carbon Copy Cloner. The system has been up and running since January, but it needs regular intervention. The main problem is that external hard drives ...
0
votes
1answer
29 views

Finding file in parent folder of an AppleScript

I have an AppleScript that calls another script (a perl script in this case) which resides in the same folder as the AppleScript. Now I'm trying to put the script into a variable like this: tell ...
1
vote
1answer
59 views

How can I find the serial number of my Apple Keyboard USB on a mac programmatically from the terminal?

I would like to retrieve the Apple USB Keyboard's serial number from a command to use in a script. What command can I use ?
3
votes
1answer
53 views

root user can't create a file in /usr/lib

I am trying to follow this advice from stackoverflow and copy some library files from /usr/local/Cellar/openssl/1.0.1c to /usr/lib/. I have tried cp, ln -s and even touch, but they all fail. I am ...
0
votes
1answer
35 views

Send notification from command line [duplicate]

On Mac OS X, some applications will display a notification that appears briefly in the upper-right corner (e.g., when I receive email). Is there a way to generate a notification from the command-line?...
1
vote
0answers
34 views

Are there any advantages to using GNU over the default OSX command line utilities? [closed]

Are there any advantages to using GNU utilities (installed via homebrew) as opposed to the default, BSD based OSX utilities? They seem very similar to me, but I will not pretend to be a master of ...
1
vote
1answer
38 views

Is there a terminal command to open applications in a specific Desktop?

For example when I run open -a Kodi I'd like to be able to specify which Desktop I'd want the application to launch in. Trying to avoid dragging/dropping to the desired workspace.
0
votes
1answer
24 views

To get Graphical Info reader in El Capitan?

Graphical info reader is the reader which colorises links in the info pages. I know there are good options in OS X but I cannot find them. I do home search info and I get homebrew/science/clinfo ...
3
votes
1answer
165 views

Why does OS X have bash v3.2.57?

OS X comes with bash version 3.2.57 instead of bash version 4.3.39, which GNU lists as the current stable release of bash. Is there any way to upgrade bash on Mac OS X?
1
vote
1answer
9 views

Transfer statistics per process or destination, not interface

I would like to log upload statistics for an application I run on my Mac. Now, I know that with netstat -ib I can access statistics per network interface. I also know that with lsof -i I can get a ...
0
votes
1answer
34 views

'cat' not displaying line breaks

For some reason cat no longer shows line breaks when I use it, while all other tools (grep, more etc) do. I am using iterm2 on OSX 10.11.4. What could be causing this behaviour? Example I have a ...
1
vote
1answer
43 views

Force enabling TRIM before setup assistant is run

Basically, I'm preparing to give a MacBook Pro, running Mac OS X 10.11.4, to someone, but I need to execute "sudo trimforce enable" beforehand, as it contains an aftermarket SSD (fully compatible with ...
3
votes
2answers
52 views

How to Change USB Thumb icon using Terminal or Bash/other scripting language

I'm looking for a method to change USB or External Drive Icon using bash or any other command line method. I know how to manually chnage them like this I am using El Capitan
0
votes
0answers
50 views

In Terminal, how do I run a curl command to POST data?

I'm using OS X Yosemite and having trouble running curl to POST data to my local server. Below is the command I'm running and the response: localhost:myproject davea$ curl --header "...
5
votes
3answers
476 views

setup youtube-dl destination to ~/Downloads

How do I setup youtube-dl to default download to ~/Downloads instead of the home folder?
1
vote
0answers
28 views

El Captan disk utility did not see erased partition after fail bootcamp install

I try to get my full drive after fail a bootcamp install of Win. Now I have removed extra partition from my fusion drive, but can’t see empty space using the el captan disk utility. Using shell, ...
1
vote
2answers
44 views

How to Install pdfimages in El Capitan?

I am reviewing the answer here about Extracting embedded images from a PDF. It is not in Homebrew. How can you install pdfimages in OS X El Capitan?
1
vote
1answer
19 views

Does Homebrew have a command-not-found hook?

Arch Linux's pkgfile has a command-not-found hook that you can source from your shell's startup file (.zshrc, .bashrc, or whatever). Does Homebrew have anything roughly equivalent to this?