Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
96 views

how to pipe output from a command in its own shell?

I want to put all output as it's happening into say so it can read my LLMs response I found that tee will output the lot once you exit but I want it to say each response when they are given. I think ...
yarns's user avatar
  • 145
2 votes
1 answer
120 views

Give python program location services access via command line on MacOS

I am trying to run a python program requiring location services on MacOS Sonoma 14.4.1. I was using iTerm2 and expected a pop-up asking if the app could have access to my location. However, nothing ...
Gabriel's user avatar
  • 23
0 votes
0 answers
120 views

MacOs equivalent of adding a user to the linux dialout group on for permissions setup for UART communication

I'm working on a project where I'm interfacing with some hardware and want to monitor the data from some sensors using a specific tool. The tool doesn't have official support for MacOS but I've ...
sobbingDev's user avatar
0 votes
1 answer
37 views

Extract filepaths of .MP4 files in subfolders of main folder to textfile

I am on Mac. I want to use terminal or something to extract the filepaths of the .MP4 files within a folder with multiple levels of subfolders. I have a main folder that has subfolders. Each subfolder ...
Helppleaseme's user avatar
1 vote
0 answers
72 views

Update Google Chrome extensions from the command line [closed]

How can I update Google Chrome extensions from the command line? I'm running macOS 12.7.4.
XDR's user avatar
  • 131
0 votes
2 answers
205 views

alias doesn't work in fish shell on macOS

I've been struggling with an issue that I cannot find mentioned anywhere and I cannot trace down. I can't leverage any of the alias command functionality in fish, which also breaks fish integrations ...
Adrian's user avatar
  • 214
0 votes
1 answer
173 views

numpad enter remapped in new macOS updates for alacritty

I have been having annoying problems with my terminal Alacritty. In macOS after recent updates my numpad enter is not giving me what I would expect when I press it. Normal Keyboard enter. ❯ whoami ...
nelaaro's user avatar
  • 13.7k
0 votes
3 answers
71 views

display path to files with same names

with this command in Terminal: ls -R |sort | uniq -d | sort -r I can display a list of files with the same names located in the running directory and subdirectories. But I would like to display also ...
all2alb's user avatar
0 votes
0 answers
27 views

switching window keyboard shortcut with screen window management on MacOS

all I used to be a linux user, now I am accessing a server from MacOS, Ventura. I have remapped my Mac Keyboard by switching the ctrol and command keys. However, I came across some problems with the ...
FewKey's user avatar
  • 101
0 votes
1 answer
667 views

Open multiple pdf files in separate staggered windows in a single app on a Mac

How can I open from the command line on a Mac more than 15 pdf files, 1 file per window, in separate staggered windows in a single app? I am using Preview as the default pdf viewer. I have not ...
Timur Shtatland's user avatar
2 votes
1 answer
932 views

Command Line decryption of aes-256-gcm no-longer working after OpenSSL updated

Late last year (2022) I encrypted a file using OpenSSL using terminal on my Mac with a very simple openssl enc command and was able to decrypt using this command: openssl enc -d -aes-256-gcm -in ...
bakslaash's user avatar
1 vote
0 answers
119 views

VLC for macOS command line audio delay

I have a bunch of videos that have both audio and subtitles delayed by half a second. I can play them on VLC and manually adjust it by pressing F 10 times and H 10 times, but I'd like to automate that ...
Apollo's user avatar
  • 161
0 votes
1 answer
45 views

running a multi-threaded script on a macPro to a smb-mount folder throws an error

We're trying to run a multi-threaded script from our macPro but we keep getting an error massage. The xml script contains parameters to run a specific tool, the paths to the raw data and other ...
Assa Yeroslaviz's user avatar
1 vote
1 answer
236 views

Compress each directory to its own Zip file from command line

I have a directory of directories. I want to compress each of them in to its own zip file, keeping the same name. I don't want it to be recursive, I just want to compress dozens of folders in the same ...
Will Hanley's user avatar
0 votes
0 answers
54 views

Synchronize files based only on the existence of unique filenames (Mac OS / Unix)

I am looking for a way to synchronize two folders/volumes based only on whether a filename exists in folder A but not in folder B. I want the sync to completely ignore path and modification dates. ...
Ovidius's user avatar
0 votes
0 answers
24 views

External RAID5 volume activity lights constantly flashing only when screen is locked

I have an external SoftRAID RAID5 volume that constantly and vigorously flashes when my computer has gone to the lock screen. As soon as I hit a key to bring up the login screen it stops. It's rather ...
John's user avatar
  • 415
0 votes
0 answers
113 views

MacPorts suggests I remove my dylib files. Should I?

MacPorts documentation mentions the port diagnose command to "...checks for common issues in the user's environment and reports all issues it finds to the user, along with possible fixes for ...
Atom's user avatar
  • 131
2 votes
1 answer
5k views

Is openssl is an alias for libressl on macOS?

I have no idea why despite having (seemingly) openssl, when I run: openssl version it outputs: LibreSSL 3.3.6 And when I run which openssl and type openssl to check whether or not openssl is just an ...
FP34024's user avatar
  • 23
1 vote
1 answer
847 views

Time Machine backup, get last backup time using command line, without having to plug any backup disc and with no Full Disk Access?

I just want to get backup last time using command-line. With this two conditions (that the GUI, the graphical interface upper-right widget we all use normally, normally between the wifi icon and the ...
nostromo's user avatar
1 vote
0 answers
445 views

ffmpeg input/output error when using mac system temp file path

I've got an ffmpeg command that is supposed to output a thumbnail for a given video at a resolution of [W]x720. The input videos are uploaded and stored temporarily in the /var/folders directory on OS ...
GROVER.'s user avatar
  • 131
0 votes
1 answer
113 views

Get the sharing dynamic computer name from CLI on MacOS

Is there a way to get the string in the screenshot from a CLI utility on macOS 12.6 or later? (some things were censored for obvious reasons). I tried these: scutil --get HostName scutil --get ...
Remzinho's user avatar
  • 111
0 votes
1 answer
185 views

How to force locate.updatedb to index files in ~/iCloud?

On my Mac (macOS 13.0), the locate.updatedb command does not index any files in ~/iCloud. This issue does not appear to be dependent on macOS version. It has been occurring since I started using ...
Gavin's user avatar
  • 101
2 votes
0 answers
115 views

How to source from stdout for both Linux and macOS?

On Linux I can do: source <(cat .env | grep ANDROID_GRADLE_TASK) But on macOS, this doesn't do anything (no error, and no source) What can I use for macOS? Is there a command that works both on ...
Dimitri Kopriwa's user avatar
0 votes
1 answer
697 views

"echo $VAR | base64 -di > file" fail to execute on MacOS

On Linux I can do: echo ${ANDROID_KEYSTORE} | base64 -di > android/keystores/staging.keystore But on MacOS, the same commands gives: base64: option requires an argument -- i Usage: base64 [-hvDd] ...
Dimitri Kopriwa's user avatar
0 votes
0 answers
651 views

Play two audio files at the same time on different devices

How can I use a single ffmpeg or ffplay command to play two audio files at the same time, but through different output devices? As is documented, this command plays a single audio through the output ...
minseong's user avatar
  • 1,018
0 votes
0 answers
133 views

How to move all old files from Downloads to the trash with one or more terminal commands in macos?

I already found the command with which I can select all the files and directories that I do not want to send to trash. That command looks like this: find ~/Downloads -newerat "2 months ago" -...
Evert's user avatar
  • 131
0 votes
2 answers
746 views

How to programmatically disable OSX from charging?

How can we programatically disable OSX from charging when connected to power source? And how can we programatically check the current battery percentage? In order to extend battery life I'd like to ...
GarouDan's user avatar
  • 585
2 votes
1 answer
3k views

zshell says command not found in MacOS

I'm using MacOS Monterey 12.4. When I open zsh I get immediately /etc/zshrc:7: command not found: locale /etc/zshrc_Apple_Terminal:104: command not found: mkdir I understand that my terminal ...
Alberto Carraro's user avatar
0 votes
2 answers
889 views

Find all files of name recursively, touch, and chmod all in one terminal command?

I am trying to run a single command to change all .DS_Store files within a directory and all subdirectories recursively. So far, I have been using the following commands to find the files, set their ...
MikMak's user avatar
  • 2,107
0 votes
1 answer
126 views

Set variable in Bash file by extracting text from another file

I am on macOS. Here is my source file: #!/bin/bash version=42 o_ver=$version let "version+=1" echo Compiling version $version up from $o_ver # . . . many more lines I want to extract the ...
Michael Minton's user avatar
1 vote
1 answer
3k views

run multiple npm script from another directories by writing only one command

I have application with frontend and backend folders. With structure like this. application ├── frontend │ └── src │ └── build │ └── package.json └── backend └── src └── build └── ...
Tvseans's user avatar
  • 113
0 votes
0 answers
718 views

Does macOS record the RAM usage log?

Basically as title. More specifically, I want to know whether the RAM usage logs of my MacBook, since I first bought it, are recorded or not. If it did get recorded, which terminal command/tool(s) ...
Niing's user avatar
  • 168
1 vote
1 answer
210 views

Split folder of multipage TIFFs into frames and join into movie on MacOS command line

I'm using a FLIR Boson thermal imaging camera, whose 'video' output consists of sequences of 'one-second long' multipage TIFF files. The frame rate is variable, but averages 8.6 fps. So, each TIFF can ...
pajul's user avatar
  • 11
1 vote
1 answer
586 views

ZSH Colorize the PWD output in aliases

NOTE: Yes, This is on Mac OS 11.6.2 Big Sur. Right now I have zsh aliases in the .zshrc file to make terminal navigation easier. I thought I'd try to colorize the PWD output, but what happens is that ...
MaxRocket's user avatar
  • 111
4 votes
1 answer
733 views

Is there an OSX/macOS CLI command for creating a Finder Alias?

For clarification on the ambiguous word ALIAS in this question. While using Finder (of OSX/MacOS) for generic file operations, and secondary-clicking on a file or folder, a pop-up menu (some refer to ...
Keve's user avatar
  • 185
1 vote
1 answer
630 views

How to update 'pgrep' in macOS to get around a known 'pgrep -d' issue

In the version of pgrep ( February 11, 2010 ) that is installed in macOS Catalina there is a bug when setting a delimiter. The delimiter should only be printed between each process ID but it's also ...
John's user avatar
  • 415
0 votes
0 answers
460 views

rsync is deleting file containing special characters when file name was change in terminal instead of Finder

The problem I use macOS and try to sync two directories using rsync – one in my home directory and one in the external HDD (HFS+). Whenever I run the rsync with --delete option, I've observed that it ...
skrajewski's user avatar
2 votes
1 answer
1k views

How to fix these warning messages when running VLC player from command-line?

I installed VLC player on macOS using Homebrew, then when running it from command-line, I got many messages/warnings: % which vlc /usr/local/bin/vlc % vlc VLC media player 3.0.16 Vetinari (revision 3....
qazwsx's user avatar
  • 9,039
0 votes
0 answers
184 views

What is it in my .bash_profile that causes my terminal to open and shortly after read [process competed]

What is it in my .bash_profile that causes my terminal to open and shortly after read [process competed]. Here are the contents of the file: #The original version is saved in .bash_profile.pysave PATH=...
Caleb Fedyshen's user avatar
0 votes
1 answer
2k views

ssh connexion : Permission denied (publickey,password)

I'm trying to connect to my server with a ssh connection, so it works when I use FileZilla but not with the command line ssh <login>@<ServerIP> -i /Volumes/ExternalDisk/key.ppk I have this ...
TooikLeChevalier's user avatar
1 vote
2 answers
15k views

How can I install aircrack-ng in M1 Macbook?

Recently I have started taking Ethical Hacking course. Because of some issue with parallels, instead of using Kali Linux, I decided to work on MacOS itself by installing only the necessary tools ...
i_know_what's user avatar
2 votes
0 answers
7k views

How to mount network drive and make it permanent using command line in mac?

I want to mount my network drive to my local folder in mac/osx. I normally use mount_smbfs command but it won't mount automatically after restart or logout. For permanent option in mac : system ...
andio's user avatar
  • 293
1 vote
1 answer
479 views

How can I delete Time machine files' extended attributes using commandline?

So I've been trying to delete extended attributes(com.apple.metadata:_kTimeMachineOldest/NewestSnapshot) from time machine files. I've searched everywhere to delete its attribute but there seems to be ...
Skye-AT's user avatar
  • 185
2 votes
0 answers
143 views

How do I diagnose a slow Mac from command line? (OS X El Capitain)

I have a very old (I think circa 2009) Mac Mini, which effectively just acts as a NAS for our TimeMachine backups these days. It was working fine until about 2 days ago, when all of a sudden those ...
philolegein's user avatar
1 vote
0 answers
263 views

Change user home directory without booting machine in macOS

I have a Mac (macOS 11) that won’t fully boot because the only user’s home directory is set to an inaccessible location, a volume that apparently isn’t mounted until later. I want to change that user’...
twhb's user avatar
  • 211
1 vote
2 answers
630 views

Temporarily disable Time Machine backups to a specific disk

I have Time Machine configured to back up to a disk image. (Actually I have multiple backup disks configured.) I want to verify the backups using tmutil verifychecksums, and I don't want Time Machine ...
augurar's user avatar
  • 141
0 votes
1 answer
178 views

Is it possible to download a Google Doc with command line without having to interactively authenticate?

Is it possible to download Google Docs (a mix of docs, spreadsheets, and slides) with command line (in macOS), and without having to authenticate interactively? The files that I'd like to download are ...
saiwing's user avatar
  • 101
0 votes
1 answer
104 views

How do I regain Access to my admin setting in MacOS? (sudo commands work)

I recently changed my password, upgraded to Big Sur and enabled MDM, nad have run int to an issue of accessing Admin setting in the UI. I still have sudo access to become root on the command line. ...
Josh Beauregard's user avatar
0 votes
1 answer
43 views

OS X: are any shells started before I open the Terminal?

On OS X, I'm trying to understand the whole concept of shells. Specifically, when I log onto the computer but don't start up a Terminal, has a shell started? Does it then start up a different kind of ...
RNdev's user avatar
  • 101
7 votes
1 answer
868 views

MacOS - "at" command is not working

I've started the atrun daemon using the following command. $ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist Added my username to /var/at/at.allow file. $ cat /var/at/at....
pkgajulapalli's user avatar

1
2 3 4 5
15