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
0answers
14 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' &...
0
votes
1answer
62 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 ...
0
votes
1answer
27 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
47 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 ...
2
votes
1answer
63 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?
1
vote
4answers
231 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 ...
0
votes
1answer
24 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 ...
2
votes
2answers
133 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.
0
votes
1answer
39 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
56 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 ...
0
votes
1answer
115 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
46 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?
1
vote
1answer
109 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 ...
3
votes
1answer
132 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
2answers
69 views

How to send an email to myself with Applescript or Terminal automatically when my Mac reboots?

I wonder if there is a way to send an email to myself with Command Line or AppleScript service automatically when my Mac reboots? Thanks for your suggestions.
0
votes
0answers
18 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?
1
vote
0answers
255 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
110 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 ?
1
vote
1answer
40 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
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?
0
votes
0answers
24 views

Sudo command not working [duplicate]

I'm trying to install Soundflower and it failed. So the developer has instructions to manually install it which involves the sudo command. But my sudo doesn't work. It gives me sudo: /etc/sudoers ...
1
vote
1answer
216 views

Boot problem on dual-boot MacBook Pro

Can anyone help me restore the original boot 'order' on my Mac, using command-line? I wanted to install Ubuntu on my Macbook Pro Retina (early 2013), so I could run some specific software I needed ...
1
vote
2answers
213 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?
1
vote
1answer
66 views

Run a command on a schedule and verify that it has run

I want to run an rsync command each day or more often to back up a raspbery pi on my network to a drive attached to my mac. I see launchd, but I'm very confused about how to get it to work, and I ...
1
vote
1answer
69 views

Error when using “pmset sleepnow”

Whenever I use pmset sleepnow in Terminal (even with sudo) I get this error: Unable to sleep system: error 0xe00002e2. I have no idea what's going on. Please help!
0
votes
0answers
14 views

“Display Notification” stuck in loop in Bash script

Is there any way I can fire a banner notification once through a bash script? I'm trying to modify this BitBar plugin to be a little fancier: #!/bin/sh # <bitbar.title>Gmail Checker</bitbar....
1
vote
1answer
40 views

Remove characters preceding the second underscore in file names

I have a bunch of files and I would like to remove all characters preceding the second underscore in the file names. An example is shown below. How do I do this using bash commands? [From] ...
1
vote
0answers
16 views

Applescript claims to run shell script, but script has no effect [duplicate]

So I have a bash script like this: #!/bin/sh FILE='some_file.js' gsed -i -E 's/something/somethingelse/' "$FILE" echo "Modified File" When I run this from command line, it echoes the last line, so ...
1
vote
2answers
130 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 ...
3
votes
1answer
47 views

Recognise command and colour it on the terminal?

I was wondering if it's possible to colour a recognised command in real time while typing and/or when switching to previous commands using the arrows. For example, if I start typing gre, it should ...
0
votes
1answer
91 views

Find all hidden files that were hidden using the command “chflags hidden filename”?

I remember to hide an important file, but I can't find it anymore and I don't remember the name. I don't remember how I hid it, i.e., if just by inserting a prefix of . or using chflags hidden ...
1
vote
1answer
66 views

Control haptic engine and force touch from terminal

Is there any way that I can create haptic feedback with the integrated force touch trackpad on my rMBP using a terminal command (preferably without AppleScript, but if that's the only way, then sure.)?...
1
vote
0answers
57 views

`scutil --nc start` not connecting PPPT VPN - OS X 10.11

From the answer to this question I have tried scutil --nc start 'us.justfreevpn.com' to connect a PPPT VPN, but all I get is the following popup: Frustratingly, if I manually start the connection ...
0
votes
0answers
57 views

Set Static IP address of local Interfaces in Mac OS X with Unix Script

I need little help regarding the setting of the static IPs and net masks of the various interfaces. I have a Mac client which has two physical interfaces. One interface is used for the "house ...
0
votes
2answers
39 views

Launch command using app

Could someone please tell me how to insert a terminal command into an "application" so when the app is clicked/opened the command is launched?
0
votes
1answer
77 views

How to grep with filename highlighted in one color, and the match highlighted in another color?

On the Mac, I can't seem to use grep and have the filename highlighted (or in) a certain color, and have the matching string in a different color. Is there an easy way?
1
vote
1answer
77 views

What is the crlcache keychain and why do I have so many of them?

I run the keychain command-line app that allows me to fast-sleep my Mac or quickly lock a keychain. However, it seems to think that I have many crlcache keychains: When I search for crlcache on my ...
0
votes
2answers
56 views

How do I run a terminal command for different values

How do I have to label i such that the do command is repeated for all values of i. E.g. if i =2: cd /Users/xxx/zTree; wine explorer /desktop=1,640x480 zleaf.exe /language english /name lab1 cd /...
1
vote
3answers
84 views

Copy specific files and keep the subfolder structure

I got a folder with a large amount of files with different suffixes in several sub folders. My automator workflow works as follows: Ask for Finder Items Get Folder Contents (sub folder option ...
0
votes
1answer
32 views

How do I revert the sudo less /private/etc/cups/printers.conf command?

I have used the above command to try and find my printer's address using the web. Now I would like to revert this setting using terminal. Can anyone help me with this? Thanks in advance!
1
vote
1answer
79 views

How to install Monkeysphere on OSX El Capitan

I tried to install Monkeysphere via Homebrew but it complains of an unmet dependency. monkeysphere: Unsatisfied dependency: Crypt::OpenSSL::Bignum Homebrew does not provide Perl dependencies; install ...
1
vote
1answer
154 views

To convert .iso file to .img file while trying to dual boot with linux

It says no such file or directory.where did I go wrong?
0
votes
0answers
46 views

grep doesn't work on big files on OS X 10.10

grep works on OS X 10.6, detecting string in a big binary file. It still works on OS X 10.10 on a small file. On OS X 10.10: $ grep -bao string small_file offset : string ... $ grep -c string ...
1
vote
1answer
194 views

Install automator service via command line

I would like to automate my Mac installation flow for services. The following is my script: #!/bin/sh rm -rf ./tempWorkflows mkdir tempWorkflows for filename in ./*.workflow; do cp -R "$filename" ...
4
votes
1answer
423 views

Can I view history of recently connected USB devices in OS X?

Is it possible via the Terminal in OS X to show a history of recently connected USB devices. For example I want to know the specified ID of the MP3 Sony Walkman which I plugged into my MacBook Pro two ...
1
vote
1answer
43 views

How to change icon of an app through Terminal

I want to customize my app icons, but there's a lot of them, and I don't want to be tedious and go through the whole Get Info process over and over again. Is there any way to write a program, ...
1
vote
2answers
164 views

set PATH in terminal OS X 10.11.3

I need to set path /usr/local/gnupg-2.1/bin to the command line. I tried to enter "export PATH=/usr/local/gnupg-2.1/bin:$PATH" in the command line, but it works until the terminal session ends. I ...
0
votes
1answer
32 views

Detect Terminal Color “Theme” from Command Line

When one uses the terminal inspector, one can change many properties of the terminal, such as background color, text color, and selection color. How can I detect what these properties have been set ...
1
vote
3answers
49 views

Missing bash prompt

My bash prompt is missing as shown on the image. I'm not even sure how to open the .bash_profile since dot files are hidden in the finder. I restarted the machine to no avail.
0
votes
2answers
40 views

Are there replacements for the reg commad on Mac OS X 10.9

I believe reg existed on 10.8 and lower as documented here - https://developer.apple.com/library/prerelease/mac/documentation/Darwin/Reference/ManPages/man1/reg.1.html However, in OS X 10.9 I only ...