Skip to main content

All Questions

Tagged with
0 votes
0 answers
167 views

Shell script run by launchd in MacOS can't create at job

I'm using the privileges.app to grant users temp admin privileges. Because I need to have password auth and justification enabled via config, I can't use the build-in feature to limit the duration of ...
meatballbeam's user avatar
0 votes
0 answers
125 views

I can't connect from Mac when I change the default shell to bash on Windows 11 SSH

I started an OpenSSH server on Windows and connected from a Mac terminal. I was able to connect when the default shell was cmd.exe, PowerShell, or GitBash, but not when I changed to bash. New-...
Masamoto Miyata's user avatar
0 votes
0 answers
200 views

Deleting folders using rm -rf does not free up space

I am trying to re-install macOS on my iMac. My iMac worked perfectly, before I upgraded macOS Ventura (It was a minor upgrade, I was already on Ventura). After I did a regular update, I logged into my ...
אורי orihpt's user avatar
0 votes
0 answers
144 views

Command not found -bash error

I am noticing that after I did something with terminal attempting to install a program that some third party commands stopped working. For example, I tried installing miniconda with these two ...
user avatar
0 votes
1 answer
99 views

What process controls two-finger zoom on Mac?

Every once in a while, plugging my Mac into my monitor when lots of processes are running will crash some of the display agents, like exposé, zoom and other trackpad functions. I figured out some bash ...
Alec's user avatar
  • 231
1 vote
2 answers
828 views

Shell script in Mac Automator won't work with folders

I am creating a service in Mac Automator which is basically a bash script to change some dcm files with dcmodify. Whenever I run it on a single file it works flawlessly, but when I try to run it over ...
Almostotalnoob's user avatar
0 votes
1 answer
2k views

What is the difference between “base64 -b0” in macOS versions prior to macOS 13 (Ventura) and “base64 -i” in macOS 13 (Ventura)?

Up until I recently upgraded to macOS 13 (Ventura) I could run this Bash command to convert a JPEG image into a Base64 string in a script I occasionally use: IMAGE_BASE64=$(base64 -b0 /path/to/image....
Giacomo1968's user avatar
  • 56.1k
0 votes
1 answer
232 views

which -a bash shows same path multiple times

When I check for bash installation I get multiple bash shown: ➜ ~ which -a bash /bin/bash /opt/homebrew/bin/bash /bin/bash Why is the same path shown twice? Is there a way to remove one of the /bin/...
user17714968's user avatar
0 votes
0 answers
14 views

aliases for terminal commands not loading on session start [duplicate]

my ~/.bashrc and ~/.zshrc both files have following aliases # exa to ls alias l='exa' alias la='exa -a' alias ll='exa -lah' alias ls='exa --grid --color=auto --icons' # bat alias to cat alias cat='...
abhimanyuaryan's user avatar
2 votes
0 answers
2k views

Can't change default login shell on OSX Monterey

I prefer to use bash on my Mac, but the version provided by Apple (GNU bash, version 3.2.57(1)) cannot glob files with accented characters, so using homebrew, I have installed a later version, 5.1.16, ...
SJC's user avatar
  • 21
0 votes
0 answers
512 views

The username in my terminal bash is not my name. How to fix it? Do I have security concern?

I ran a sklearn update last week, and today when I opened my terminal, the user name is not mine anymore (as shown in the screenshot, I have no idea who is Yakov). Anybody has any idea why this ...
user avatar
1 vote
2 answers
1k views

arm64 mac: how to keep two shell environments (with and without rosetta) organized

I'm using an M1 macbook air for programming work. There are many tools that need rosetta emulation, while others work much faster and more stable natively. To deal with this I've set up a copy of the ...
lhk's user avatar
  • 403
0 votes
1 answer
413 views

Find the most recent file of a type in terminal and then open it (mac os)

I found part of this question in 2 other posted questions, but I cant seem to get the last step working which is just "opening" the file: How do I get files found by command-line 'find&#...
Mix Lab Tech's user avatar
0 votes
1 answer
88 views

To deeply learn how my new Macbook works do I need to learn Unix? [closed]

I've been a Windows person since 1988 and I've bought my first Mac. Yeah thanks. I used to be tech support for Microsoft so it's horrible not knowing deeply how my new machine works. I understand that ...
Luke Puplett's user avatar
  • 1,641
0 votes
0 answers
276 views

ssh known_hosts seems to be ignored if using ssh as a launchd agent on MacOS

I have a service that acquires data with ssh. This works on linux in systemd, but in trying to do the equivalent on mac, I don't think the ~/.ssh/known_hosts file is being respected, because an ...
openCivilisation's user avatar

15 30 50 per page
1
2 3 4 5
15