Skip to main content

Questions tagged [command-line]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to use 'Siri Voice 4' in terminal `say` command?

It complains voice not found say -v "Siri Voice 4" hi Voice `Siri Voice 4' not found. Yet I have it in UI available and installed and used by default But it's missing in the list of voices ...
Alex Craft's user avatar
1 vote
0 answers
34 views

opening book via CLI in new Kindle app?

With the Kindle Classic app it was possible to open a book in Kindle by locating the azw file and running open "mybook.azw" in terminal. Does anybody know how to do that in the new Kindle ...
Giovanni's user avatar
1 vote
0 answers
49 views

How to type tilde (~) in Spanish keyboard in Terminal

I type option+ñ and get a ~ on most applications: when I am in Terminal, I get (arg: 1) on bash, and ? on zsh. The results are the same for left and right option keys. Hardware: MacBook Pro, 15 inch, ...
simona's user avatar
  • 223
3 votes
1 answer
122 views

Unable to execute arara (a TeX automation tool) from the Terminal

I can't execute arara (a command that is part of the TeXLive distribution) from the Terminal using bash shell. I can execute tex which resides in the same directory. Evans-iMac:~ evanaad$ cd ~ Evans-...
Evan Aad's user avatar
  • 895
1 vote
0 answers
31 views

Homebrew - clang - verification on CLI installation

Yesterday i was completly reinstalling my MacBook from built in recovery, after standard configuration, app installation (App Store and trusted sources) i was installing homebrew from official site (...
user532070's user avatar
1 vote
1 answer
53 views

macOS Shortcut to hide folder

I'm trying to create a shell script shortcut in the Shortcuts app that can hide folders in macOS (because tons of apps annoyingly create folders in the user Documents folder). This is what I have: It ...
gills's user avatar
  • 321
1 vote
1 answer
62 views

Can you access the list of network devices from the command line?

In Finder there is a "Network" item in every window that allows you to view all devices on the LAN. Can you access the same list of devices from the command line?
d-b's user avatar
  • 1
1 vote
1 answer
43 views

Is there a way to `measure_memory ./program` similar to how `time ./program` measures time?

I want to be able to quickly audit how much memory a particular command/program uses. the time command lets me measure run-time via time ./my_program . I was hoping there was a command analogous to ...
Sidharth Ghoshal's user avatar
1 vote
0 answers
17 views

Run an app without sudo password on MacOS for hidapitester (HID Device Interface) [duplicate]

I have a script that calls hidapitester binary. But I have to run this script with sudo privileges. If it's not called with sudo then it throws an error: Error: could not open device. Instead of ...
Dentrax's user avatar
  • 111
2 votes
1 answer
67 views

Override minimum macOS version - "kLSIncompatibleSystemVersionErr" when running app

I would like to run an app which nominally supports only MacOS 14.0 and above. I am on 12.7.3, and apple won't allow me to update because my computer is too old. However, I know that the app actually ...
Minecat40's user avatar
0 votes
0 answers
37 views

How do I "toggle" macOS Sonoma Security/Features OFF/ON so I can use the full functionality of the `security` command?

I'm working on a script to import numerous Certs (Like 50) into System.keychain. macOS Sonoma Security Features are preventing the security command from fully working. Note: Intune MDM Trusted Cert ...
NotASteve's user avatar
1 vote
1 answer
39 views

How to attach a DMG with different mount AND browse name?

I have a DMG foo.dmg which when I attach it via hdiutil attach foo.dmg appears in the Terminal under path /Volumes/foo and in the Finder side bar as "foo". Now when attaching the DMG I want ...
halloleo's user avatar
  • 1,417
0 votes
1 answer
73 views

How can I clear the whole window in Terminal with one keyboard shortcut?

I want a keyboard shortcut that will clear everything from the terminal window, including the current line I know that Command-K clears the text to the very beginning, but if you have some text on ...
user avatar
0 votes
1 answer
68 views

zsh: command not found: clang_select

I have tried to install clang_select in macOS 13.4.1 like this: > sudo port install clang_select ---> Cleaning clang_select ---> Scanning binaries for linking errors ---> No broken ...
Dolphin's user avatar
  • 1,115
0 votes
1 answer
237 views

how to upgrade to clang 16 in macOS

The current clang version is 14 in my macOS 13.3.1 13.3.1 (a) (22E772610a): > clang --version Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: arm64-apple-darwin22.4.0 Thread model: posix ...
Dolphin's user avatar
  • 1,115
1 vote
0 answers
14 views

curl: (77) error setting certificate verify locations on Catalina [duplicate]

I'm attempting to install Python and AWS tools via curl and keep getting this error: curl: (77) error setting certificate verify locations: CAfile: /usr/local/php5/ssl/cert.pem CApath: none I have ...
Bob Meador's user avatar
1 vote
0 answers
40 views

Use Smart Folder as default Finder folder

I tried to follow the answer to Use smart folder as Finders default folder, nothing happened for me. I'm on Mac OS Sonoma Version 14.5 (23F79) with the beta program, but my Terminal seems to just ...
Pman's user avatar
  • 11
1 vote
2 answers
71 views

Bash, flatten a multilevel directrory while renaming files

I know this will sound slightly weird, but please bear with me. My car's infotainment system seems to have a limit on how many music directories and files it will acknowledge on a USB stick: It will ...
Dominic Strange's user avatar
1 vote
2 answers
61 views

Can not set iTerm2 tab title

I want to configure my iTerm2 so that it shows on the title of each tab (not the window title) my current working directory. From the iTerm2 docs, I concluded that I can do this under Preferences ->...
user1934428's user avatar
0 votes
1 answer
47 views

How to read a nested key with 'defaults'

I can read preferences from a domain, and I can read a single key deep, for example: defaults read com.apple.Terminal "Window Settings" However, I cannot dereference a key deeper than depth=...
Ari Sweedler's user avatar
1 vote
0 answers
56 views

Simple shell commands never finish, but only on external drive

Most of the time, my Mac's Terminal works great. However, when I use it to navigate the file system of my WD My Passport 1TB external drive, it... almost works. Almost. Simple commands like cd and ls ...
Photosynthetic's user avatar
2 votes
1 answer
217 views

zsh: argument list too long - How to increase the limit?

As mentioned here the argument size of a command is quite limited. That's when you get zsh: argument list too long. On my machine it seems to be $ sysctl kern.argmax ...
Sarien's user avatar
  • 181
1 vote
1 answer
29 views

`open` launches certain apps and certain files in background WITHOUT -g option [duplicate]

I recently started getting a strange issue on one of my Macbooks running Mac OS 14.4.1 (23E224) (but not on my other macbook). I can't figure out a pattern or debug this. Can anyone suggest what might ...
Sridhar Sarnobat's user avatar
7 votes
3 answers
141 views

Can Bash case-insensitive matching for executables in $PATH be disabled?

Today I typed Grep by mistake in my Terminal and to my surprise, the /bin/grep command was executed anyway. I do NOT want this behavior. But, it seems it's not possible to disable it. I'm currently ...
luckman212's user avatar
  • 3,243
2 votes
1 answer
91 views

How to control buffering for processes in terminal pipe? `stdbuf` doesn’t seem to work

I’m trying to use stdbuf to control buffering for a process in terminal — specifically, using stdbuf -o0 to prevent buffering when piping output onward, roughly as described in this answer — but it ...
PLL's user avatar
  • 997
2 votes
2 answers
424 views

GNU grep, how to enable colouring?

My GNU grep under Mac will not highlight the matched text with colors (See UPDATE, GREP_OPTIONS not working): whereas Under Linux everything is working out of the box: and my Mac setting is (almost) ...
xpt's user avatar
  • 405
0 votes
0 answers
40 views

Can't clear check_language_envvar("LC_ALL") warning when running R scripts

Whenever I run an R script I get the following warning that I can't clear: Warning messages: 1: In check_language_envvar("LC_ALL") : Changing language has no effect when envvar LC_ALL='C' ...
ravnos108's user avatar
0 votes
1 answer
79 views

When invoking xattr with -r flag, get error: "option -r not recognized"

I'm trying to remove the com.apple.quarantine extended attribute from the peazip.app application on macOS as recommended in the docs using the following command: sudo xattr -r -d com.apple.quarantine /...
Cornelius Roemer's user avatar
1 vote
0 answers
63 views

How do you change the channel of your wireless interface via CLI?

I am trying to manually change the channel of my M1 Macbook Air's wifi interface en0 from the command line. I understand this was previously possible using the airport CLI utility, but that's now ...
TheMagicalC's user avatar
1 vote
1 answer
61 views

How to set "Keyboard navigation" option via command line?

How can I turn on & off keyboard navigation toggle programmatically via command line?
Sinan's user avatar
  • 113
4 votes
1 answer
391 views

Grant permissions from the command line

I want to grant a permission to an application (Cliclick, needs permission to control the computer), but currently only have ssh access to the machine I'd like to do this on. Is there any way to ...
user252164's user avatar
0 votes
0 answers
76 views

Visual Studio Code crashes when started from command line - profile specific

When I try to start Visual Studio Code (v 1.89.0) from the command line, via code or open /Applications/Visual\ Studio\ Code.app the app icon bounces and then the app crashes. Error below. I've tried ...
Volsk's user avatar
  • 3,070
1 vote
5 answers
309 views

Where to install folder of a command-line app in macOS, to be available by default in my shell? [duplicate]

tl;dr Goal: Easily download zip file with a console app (and other files), execute it, and later replace it with updated version. Details When I want to download a console app, with a command-line ...
Basil Bourque's user avatar
0 votes
0 answers
99 views

Learning Python, can't install scikit-learn

On my Windows machine, I ran pip3 install scikit-learn and it installed without any problems, however, on my Mac, I've tried a lot of things: $ brew list ...
ohshitgorillas's user avatar
1 vote
2 answers
61 views

Newly installed python 3.12 is overshadowed

I have a working python version - python3 --version gave Python 3.9.6. Then I used homebrew to install python 3.12. It is located in /opt/homebrew/bin according to the homebrew installer. If I run ...
peterparker's user avatar
1 vote
1 answer
53 views

Unable to Clear 'Manage Recent Places' in Finder on macOS

I've encountered an issue with clearing the 'Manage Recent Places' list in Finder on my Mac. Previously, I was able to clean this list using the following command in the Terminal: defaults delete ....
Julian Ryan's user avatar
3 votes
1 answer
89 views

How do I run a .sh file every day at 2:30 AM? [duplicate]

I have a launchd plist located at ~/Library/LaunchAgents designed to run a script located at /Users/admin/Downloads/testing.sh The script is : #!/bin/bash osascript -e 'tell app "Terminal" ...
John Hat's user avatar
0 votes
0 answers
106 views

Handbrake and libdvdcss

I used brew info libdvdcss to find where libdvdcss was installed and I get /opt/homebrew/Cellar/libdvdcss/1.4.3 and I know from a comment on this post M1 iMac: libdvdcss missing that I need to copy ...
dwightk's user avatar
  • 7,659
0 votes
0 answers
29 views

Modify Preview app behavior when called from the command line?

I frequently want to open, view and compare a small number of pdf images - e.g., 9 graphs, each in its own file. I am a command-line user, not a mouse and click guy. Preview does a great job of ...
macsci's user avatar
  • 55
1 vote
0 answers
71 views

$PROMPT $PS1 automatically set in zsh

I changed from bash to zsh on a mac upgrade and now cannot change my terminal settings. As I moved from an old to new machine, which inherited the old settings. Opening a new terminal gives: Last ...
Chris Wyatt's user avatar
0 votes
1 answer
34 views

Python can't access Keychain when executed through SSH but it works from a local terminal?

I use Pushbullet CLI to send Pushbullet pushes from the terminal. It works fine when I execute it locally but when I ssh into the machine where it is installed and try to send a push I get a Python ...
d-b's user avatar
  • 1
2 votes
1 answer
48 views

Macbook Pro 2013 - Unable to boot after attempting to remove Kali Linux partition

After attempting to remove a Kali Linux partition through Disk Utility on macOS High Sierra, I ended up with a drive that had a type of just FFFFFFF-FFFFF. I proceeded to try to fix that through using ...
Rubenith's user avatar
1 vote
1 answer
77 views

MacOS can't install opam, what is the fix?

I am having many issues with up and running OCaml. I cleaned all and was trying to start fresh by installing opam. brew install opam which shows the following: Warning: You are using macOS 14.4. We ...
arslan's user avatar
  • 113
1 vote
1 answer
57 views

Is there a Terminal command to run the Confetti reaction/effect in a video call?

Is there a Terminal command to run the Confetti reaction/effect in a video call? Or maybe AppleScript? https://support.apple.com/en-us/105117
fatFeather's user avatar
1 vote
1 answer
65 views

How do I delete tunnels on the localhost (lo0) interface?

How do I delete tunnels on the localhost (lo0) interface? I have tunnels on my machine, but no active VPNs, so it seems like they shouldn’t be there. How do I delete these tunnel interfaces and routes?...
Patrick Dark's user avatar
0 votes
0 answers
307 views

Is there an updated list of Terminal commands to disable animations in Sonoma?

There is a very old post How to turn off all animations on OS X, which lists the following Terminal commands to turn off animations: defaults write -g NSAutomaticWindowAnimationsEnabled -bool false ...
Chas Belov's user avatar
-1 votes
1 answer
547 views

How to fix ImportError: dlopen(): symbol not found in flat namespace '_mysql_affected_rows' on Mac M1

I am having an issue with running a script within a python virtual environment. I have installed MySQL, MySQL client, Django, and everything using Homebrew since I am on a Mac M1 (Apple M1 Pro running ...
sparticat's user avatar
0 votes
1 answer
183 views

port: command not found

I tried to install Clang 17 with the following command on my MacOS Sonoma: sudo port install clang-17 but got the following error: sudo: port: command not found Tried export PATH=/opt/local/bin:/opt/...
Dmitriano's user avatar
  • 133
1 vote
1 answer
51 views

Can't get shell script with filename $1 variable to work in automator

defaults write '$1/Contents/info.plist' MyVariable false For some reason, I cannot get this to work, and I've tried everything I can think of. Even through an AppleScript, instead of a shell script, ...
Fred Leonard's user avatar
2 votes
1 answer
91 views

tmutil delete returns error 22 while deleting backups in external drive to free up space [duplicate]

$tmutil listbackups /Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2023-12-26-145443.backup/2023-12-26-145443.backup /Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2024-01-04-...
massisenergy's user avatar

1
2 3 4 5
66