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
1answer
63 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
284 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
161 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
59 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
146 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
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?
0
votes
1answer
143 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 ?
42
votes
5answers
129k 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
53 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
6
votes
5answers
20k 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 PATH=${PATH}/usr/...
1
vote
2answers
268 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?
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 ...
0
votes
1answer
338 views

screencapture -l not working: illegal option

I've wrongly opened the same question on StackOverflow. I hope to find a better explaination here. I've seen in many pages (for example here: How do I find the windowid to pass to screencapture -l?) ...
6
votes
3answers
8k views

Command Line Tools fail to install OS X Lion 10.7.3 Xcode 4.3

I'm trying to install the command line tools to get gcc, make, and other goodies after a Lion upgrade. I went to Preferences → Downloads in Xcode and attempted to install the command line tools. At ...
1
vote
1answer
630 views

Efibootmgr command for OS X

I have successfully been able to install Linux Mint on my Mac. The only issue is I cannot select the boot partition holding option. To fix it I booted into linux and ran sudo efibootmgr -o 1,80. This ...
1
vote
1answer
272 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
1answer
94 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 ...
11
votes
2answers
2k views

Is there a OS X equivalent for iproute2?

I am searching a command line tool collection like iproute2 on Linux. Network Utility is OK, but I would like it on the command line.
0
votes
0answers
16 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....
6
votes
2answers
2k views

Is it possible to download Apple's Command Line Tools for Xcode from the command line?

Background My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...
1
vote
1answer
41 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 ...
9
votes
6answers
5k views

How to prevent Mac sleep from command line?

I have a long running script at the remote computer. I don't want terminate my ssh session, and need enter it into a shell script. How is it possible to prevent my Mac from falling into sleep from ...
16
votes
3answers
5k views

How to update App Store application from command line?

I would like to force an update of App Store applications from the command line. How can I do this?
5
votes
2answers
20k views

Is it possible to view passwords through Terminal?

Does anyone know how to view passwords in Terminal? Maybe by accessing the Keychain data or something? I want to be able to view passwords in Terminal with just a series of commands.
3
votes
1answer
51 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
99 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 ...
15
votes
2answers
12k views

Is it possible to run Nautilus on OS X?

Is it possible to run Nautilus instead of Finder on Mac OS X Snow Leopard? How?
1
vote
1answer
78 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
2answers
207 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 ...
1
vote
0answers
64 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
61 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
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 /...
0
votes
1answer
92 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?
54
votes
5answers
98k views

Can I get the CPU temperature and fan speed from the command line in OS X?

Is there a command I can run from the command line in OS X to get the current CPU temperature and/or the fan speed(s)? To be more specific, I'd like to be able to get the same info available in the ...
1
vote
1answer
102 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 ...
19
votes
1answer
4k views

Is there console mode in Mac OS X?

Is there something like Linux console in Mac OS X? Like "terminal", but without running graphics environment.
2
votes
1answer
73 views

Console Mode from Desktop

With most linux distros you can hit control + alt + F1 or the like, and get a Console. This is really useful when your X11 / display manager freezes, because you can restart that process / service in ...
4
votes
1answer
742 views

>console does not work

I have enabled the login window so that the username and password must be entered to login to an account. However, when I switch out of my user and type >console into the username field, the screen ...
1
vote
3answers
95 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
365 views

Is El Capitan preventing me from getting the Perl module DBD::Oracle working?

Let me start by saying I'm not traditionally a Mac user. I'm still trying to transition from Gentoo, where compiling everything from source was the default state, and the system wasn't actively ...
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!
4
votes
4answers
13k views

How to find all files that are larger than 1GB on the Mac HD?

It seems that either one of these commands can be used: sudo find / -size +1G sudo find / -type f -size +1G But when it gets to /Volumes, it actually look at all the back up files by Time Machine ...
1
vote
1answer
92 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
164 views
11
votes
1answer
804 views

OS X terminal “open” command and keeping focus on the command line

I appreciate the "open" terminal command to launch OS X apps. When invoking the open command for any purpose, it is overwhelmingly likely that I will have at least one other command I would like to ...
0
votes
0answers
56 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
250 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" ...