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
votes
2answers
57 views

Terminal won't find any file/directory with the suffix “~/.” or “~/”

my terminal isn't capable of finding any file or directory if I type in the name of the file or directory which start with "~/." or "~/". I have OS El Capitan, XCode 8 is installed, so is XCode ...
1
vote
4answers
100 views

How to find the running TFTP Server process name?

I can use command sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist to start TFTP Server on mac. But what is the process name of the running TFTP server? I tried ps aux | grep tftp and ...
0
votes
0answers
27 views

Is there a “findmnt” equivalent for OS X?

I find findmnt's output much easier for a quick scan of the filesystem status than the traditional mount command. Is there an equivalent for it on Mac? It's part of util-linux package. HomeBrew doesn'...
0
votes
0answers
11 views

How to show a large notification banner on OSX screen?

Is there a tool to programmatically, from command line, show a large notification banner on top of other windows, on all screens, or at least on the currently active screen? I mean obnoxiously large, ...
0
votes
0answers
18 views

How do I fix this AppleScript error?

I have the following AppleScript: do shell script "/System/Library/CoreServices/Menu\\ Extras/user.menu/Contents/Resources/CGSession -suspend" Whenever I run it, I get the following error: ...
0
votes
1answer
87 views

batch rename pdf files by content

I have a big pile of pdf's and I would like to batch rename them by content. (They are all searchable). And I'd like to do so using command line interface. They are all payslips so they have a ...
1
vote
1answer
22 views

Change “from” address in Terminal `mail`

When sending mail from shell, e.g., echo '123' | mail -s 'subject' name@mail.com The recipient gets an email from "my-local-username@my-machine-name.local", e.g., "bob@macbook.local" How can I ...
0
votes
2answers
56 views

How can I silence the startup chime on El Capitan?

It's insane that in 2016 we still have to do with this, but since upgrading to El Capitan, previous solutions don't seem to work for me anymore. This is what I've tried. silence.sh sudo nvram ...
0
votes
1answer
80 views

How to update xcode from 7.2.1 to 7.3.1 using terminal (commandline tools)

I just need to know if there's a way to update xcode from 7.2.1 to 7.3.1 using terminal (commandline interface)? The reason is I updated the xcode via mac appstore and once it was installed, the ...
0
votes
1answer
23 views

zless exits when reaching EOF

I run the command zless some.log in OS X 10.11.5 El Capitan. It closes when reaching EOF. I checked aliases and I do not have LESS env variable set up but still it looks like zless runs with -Q ...
1
vote
0answers
15 views

Communicate with Siri via text (command line) not speaking

I use macOS Sierra beta. It's the first time I play with Siri. I enabled always iOS and macOS privacy/security options, nevertheless Siri knows very much about me. Is it possible to input text for ...
0
votes
0answers
31 views

Go2shell don't work with zsh

I recently switched to zsh from bash, and Go2Shell don't work with zsh. When I click the Go2Shell icon from Finder, the iTerm window opened but the directory is the last dir in iTerm instead of the ...
0
votes
0answers
31 views

Mount USB drive in single-user mode without writing to root file system?

I'm trying to recover files from a MacBook with a failing hard drive. It can't boot normally, it can't boot to recovery, it can't do target disk mode. It CAN boot to single-user mode, and I can read ...
1
vote
0answers
14 views

How to remove meta data from PDFs?

Since PDFs contain a lot of meta data like my name and the application name which created the file, I was looking for a utility that would allow me to remove all meta data from the PDF file. Ideally, ...
2
votes
1answer
167 views

How do I override the terminal command “rm” to perform the “rm -i” command by default?

The command rm nukes files. rm -i asks for confirmation before nuking the files. When I use rm, I want rm -i to happen.
1
vote
1answer
59 views

Batch command to change each file's creation date to match the information in the file name

I have a folder with several hundred video files. All files names are in this format: 2011-08-27 11.18.00 Unfortunately the 'Date Created' for each file is the date on which it were converted (a ...
0
votes
0answers
36 views

status 78 on launchctl

I'm trying to load a plist for a PostgreSQL build that looks like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"&...
0
votes
1answer
32 views

Display contents of file and also copy it to the clipboard

I would like to create a helper function that displays my public key in the terminal and also copies it to the clipboard. How would I do that? I tried cat ~/.ssh/id_rsa.pub | pbcopy, but this only ...
0
votes
1answer
45 views

netsh equivalent in OSX

In Windows, I enjoy the ability to toggle the "LAN" NIC between a known static IP and DHCP from the command line interface (CLI) via .bat files: netsh interface ip set address name="LAN" static 192....
0
votes
0answers
34 views

How do I view inline images in w3m?

I am using a mac (el capitan), and trying to use w3m. But I don't see images when browsing pages. My question is: I want to view inline images in w3m, but don't find a way to do so. I have ...
0
votes
0answers
24 views

exec format error: ifconfig

I tried to execute $ ifconfig zsh: exec format error: ifconfig After looking for the binary file: $ whereis ifconfig /sbin/ifconfig At this moment, I read that this error can occur when binary ...
0
votes
0answers
14 views

Change spelling with shortcut

I am using some custom installed dictionaries for the spell checker in Mac, and the automatic detection doesn't work well. The best solution is to manually change them. However, going to Settings > ...
0
votes
0answers
26 views

Possible to force command line to be somewhere else than bottom of the screen?

In my vimrc, I have the following line: let so=999 to force the cursor to stay in the middle of the screen, which is something I find more comfortable. However, when going back to the terminal, ...
0
votes
1answer
16 views

Shuffle PDF 2-up in shell

I want to make a new pdf from my old one: put portrait pages 1 & 2 on a landscape page 1, pages 3 & 4 on page 2, and so on. Preview.app does this, but I need to do it in the shell. jPDFtweak....
0
votes
2answers
50 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
18 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
460 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
42 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
8 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
29 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
536 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
77 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
56 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
42 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
10 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
63 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
66 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
53 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
120 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
12 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 ...
8
votes
3answers
856 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
39 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 ...
0
votes
1answer
38 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
42 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
55 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 ...
2
votes
0answers
30 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
97 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
343 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
98 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
13 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: ...