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
2answers
25 views

Macports force-activate all ports

When trying to install SciTE sudo port install scite port stops at Error: org.macports.activate for port gettext returned: Image error: /opt/local/bin/autopoint already exists and does not ...
4
votes
2answers
2k views

Using the -Bless Command on Multiboot Macs with 10.11 El Capitan

As part of our standard deployment, we tend to deploy multiple OSs on Macs, from 10.7 to 10.11. However, with the new SIP (System Integrity Protection), the -bless command no longer works properly. I ...
1
vote
1answer
77 views

Trouble running MySQL on OS X 10.9.5

So I ran over a lot of post treating of this specific problem but none of the answer seems to work for my case. So this is the process : I installed mysql via homebrew that lead me to this : ...
0
votes
0answers
19 views

pagestuff command error: Can't map file

I want to use pagestuff command line tool with my iphone application. It's working with Mac application but not with iphone application. used command pagestuff MetalMatrixMultiply.app -a Got ...
0
votes
0answers
8 views

How can I control Bluetooth using the CLI?

I would like to know how I could control the Bluetooth chip using the terminal. Is there any way to have equivalent commands as the one present on Linux? (Through XCode?)
0
votes
2answers
35 views

What happens if you used “rm -rf *” in /Users or /Users/someUser?

Note: Don't type rm or any variation of it into terminal under any circumstances if you are not experienced with the command line Does the Mac OS X block you from using rm in those directories to ...
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 ...
1
vote
1answer
107 views

Mac OS X Terminal creates zero byte files

I'm a font developer. I want to merge a DSIG code into a TrueType format (TTF) font, which makes it compatible with Microsofts applications that use OpenType features. I have had this working before ...
22
votes
5answers
83k views

Why does OS X Mavericks block the purge command in Terminal?

When I try the purge command on my terminal, OS X Mavericks gives me the following message: Unable to purge disk buffers: Operation not permitted This hasn't been the default behavior until now. I ...
16
votes
3answers
12k views

Can I install or update Mac App Store apps through a command line using terminal? [duplicate]

Is there an official way provided by Apple or a workaround so that I can install or update Mac App Store apps through Terminal?
0
votes
2answers
63 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 ...
1
vote
0answers
17 views

Can I list all programs that depend on a given framework?

I'm curious about what all on a stock OSX install uses the WebKit framework, since I keep seeing it pop up in crashlogs and it's supposedly a handy rendering swiss-army knife. What's a good way to ...
0
votes
1answer
558 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 ...
0
votes
0answers
43 views

Problem accessing localhost under Apache while it's running

I reinstalled Apache on my Mac (brew uninstall\install httpd22), and now access to localhost is no longer available. sh-3.2# apachectl -v Server version: Apache/2.2.31 (Unix) Server built: Mar 28 ...
0
votes
0answers
13 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
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 ...
3
votes
2answers
5k views

How do I install handbrake cli?

I've downloaded the Handbrake CLI. What's the best place to install a command line app on my Mac?
0
votes
0answers
79 views

Using gcc on El Capitan

I installed gcc using xcode-select --install. However, I think it's trying to compile my C code as C++ code. This is what I get when I type gcc --version in Terminal: gcc --version Configured with: ...
0
votes
0answers
7 views

Can you install a Brew formula from a different fork?

A tool I'm working with (xctool) has some fixes in a pull request that haven't been merged yet. I'd like to install from the PR's fork. Is there any way to do that?
31
votes
8answers
22k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
2
votes
3answers
2k views

Single-user mode, data recovery, mount usb

I have a crashed hard drive. I had no luck with a USB to SATA using MacDrive Pro. I can get the drive to drop into shell with single user mode when I boot the drive. Can I mount a USB drive or ...
2
votes
2answers
82 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
1answer
94 views

Error while trying to create an account in single user mode on OS X Mavericks

On OS X Mavericks, I am trying to create an account using single user mode, using the following script. #! /bin/bash # create user dscl . -create /Users/hiddenuser dscl . -create /Users/hiddenuser ...
0
votes
1answer
53 views

Command line developer tools missing after OSX update

I have noticed that every time I do Mac OSX update the Command line developer tools is getting lost. I had to install it again after each OSX update. Is there a way to prevent this? Or Is there a way ...
1
vote
0answers
87 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 ...
1
vote
2answers
38 views

Problem with scripted account deletion syntax

I'm working on an account cleanup script module that can handle the hidden and unhidden accounts we're creating in bulk on new MacOS systems. We've kept the logic simple to start. However I keep ...
1
vote
0answers
94 views

Removing XCode while keeping the command line tools (on El Capitan)

As by subject. There are a number of links, such as this that deal with the issue but are not El Capitan specific and/or are just not that on the subject or are not up to date. Is it possible to ...
1
vote
2answers
104 views

How do I install gnu sc on my mac?

I want to install the command line spreadsheet sc. I would prefer to do with homebrew. I need both psc and sc commands. Is there a homebrew package? If not other methods would be good.
1
vote
2answers
107 views

Configure OS X to pass incoming traffic to another server?

I have a PC and a 2011 Mac mini on one wireless network, which does not have Internet access. The Mac mini is also connected to another network which has Internet access. Is there a way I can share ...
1
vote
0answers
12 views

Pipe multiple homebrew commands

I installed pup using Homebrew and my shell - Zsh, with OhMyZsh - is not recognizing the command when I use it multiple times using pipes. For example, this works fine: cat index.html | pup 'meta' ...
1
vote
1answer
1k views

How do I create a script to create/modify local admin accounts?

This question is almost exactly what I need for my project at work. We have approx. 400 Macs on our campus, and the problem is they were not all set up identically. There are at least 4 different ...
0
votes
1answer
26 views

Edit (colorized) terminal output before printing?

A very similar question has already been asked on SuperUser but none of the answers works satisfactorily for me. I can actually get almost what I want by simply: Running the Terminal for the whole ...
1
vote
1answer
35 views

cupsfilter: Unable to determine MIME type of ““??”.**

I'm trying to convert html files to pdf files using the following command line for file in *.html; do /usr/sbin/cupsfilter “$file” > $file.pdf; done But I got the message as below and empty pdf ...
0
votes
1answer
45 views

Why don't changes in the bashrc file work on a new terminal window?

I'm trying to add an alias to the bashrc file. Since I'm not good at this, Im' going to write all the steps I took nano ~/.bashrc The file had this in it export PATH="$PATH:$HOME/.rvm/bin" # Add ...
1
vote
4answers
181 views

How can I list the partition table of an unmounted disk image?

I want to prepare Raspian Jessie found here in SD card for Biosignal Pi, instructions found here, but I have only OS X 10.11.3 El Capitan of Macbook Air 2013-mid now. The image is in fstype format so ...
2
votes
1answer
45 views

How to have GNU's date in OS X?

I do brew search date unsuccessfully. I have coreutils in my system. I could not find GNU date anywhere. How can you have GNU date in OS X?
0
votes
1answer
23 views

How best should I delete this user

I'm new to OSX and tried to create a user from the terminal which I no longer need and which I named incorrectly. I see I can delete the user in System Preferences > Users & Groups but do I need ...
0
votes
1answer
26 views

Mac Terminal app - unable to use the up arrow to load previous commands when using SSH on remote server ( ^[[A )

I'm running into a weird issue where the UP arrow no longer restores commands previously entered on a remote server during SSH session: :~ user$ ssh user@myserver //... type the password, get welcome ...
0
votes
1answer
45 views

What is difference “defaults read” and “defaults export”?

Helloo, I'm using OS X El Capitan 10.11.3 I'm trying to change Sidebar on Finder. I have got difference results with "defaults read" and "defaults export" Example: 1. defaults read command ...
1
vote
0answers
170 views

OS X El Capitan bash shell not working in Terminal

I have a weird issue with my bash shell in OS X El Capitan. I was messing around with my .bashrc file today, and now when I open my terminal I see nothing out of the ordinary (no messages, just the ...
0
votes
1answer
51 views

How do you do command-line video screen capture on OS X with libav?

On linux I can do something like: avconv -f alsa -i pulse -f x11grab -r 25 -s 1400x1050 \ -i :0.0+0,0 -vcodec libx264 -threads 4 \ -acodec libmp3lame video.mkv but of course the alsa and x11 ...
0
votes
2answers
30 views

Need a cli to check the sha256 hash of a file

To check the sha1 of a file I would use openssl sha1 <file> I'm not sure what to use to check the sha256 hash of the file however, what would you recommend?
3
votes
1answer
116 views

Why does JDownloader use 9666/tcp on localhost?

I found 9666/tcp to listen on 127.0.0.1 on OS X. I use version 15.3.0 > nmap -sT 127.0.0.1 ...
0
votes
0answers
16 views

How to generate pdf with MS WORD 2011 from Command line?

Is there a way to call MS Word 2011 from the command line to generate pdf from DOCX or PPTX?
0
votes
1answer
62 views

How to execute veracrypt on the command line?

How can execute veracrypt on the command line in OS X? According to the Veracrypt documentation there should be a command veracrypt but it was not found. Any advice ?
39
votes
5answers
119k views

How can I list all user accounts in the terminal?

How can I list all local user accounts (whether logged in or NOT so 'users' or 'who' is no good) in the terminal on a mac? OS X version is 10.6.8. I have seen this suggested - dscacheutil -q group ...
1
vote
1answer
18 views

homebrew: how to tell if a formula is binary

How do I tell if a particular formula will be installed as binary of from source? Is there a brew command for this?
1
vote
1answer
30 views

How can I combine multiple PDFs using the command line?

Is there a quick one-liner to combine multiple pdfs into one? I know it can be done using Preview.app
5
votes
5answers
15k views

How to add MySQL to $PATH variable to resolve “mysql: command not found”?

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere. I tried adding the following to my .profile file: export ...
1
vote
2answers
107 views

How can I open a specific port on OS X 10.11.13

I am currently working with msfvenom on OS X. But I wanted to know, the terminal commands to open a specific port say for example 4444. Can someone please help me out with this?