Questions tagged [bash]
The Unix shell which was the default shell in macOS until 10.15
1,826 questions
4votes
2answers
187views
Side effects of changing the default shell in macOS to a Homebrew location
Some people prefer the latest Bash version for macOS (because /bin/bash is still a version in the 3.x range). This can be changed with this: brew install bash chsh -s /opt/homebrew/bin/bash However, ...
0votes
0answers
26views
Terminal / Bash: Permission denied when appending to a file with RW rights granted by ACL
I have a file "test.log" inside a directory. The directory has an accesslist, defined as: 0: user:Me allow list,add_file,delete_child,file_inherit The file "test.log" (created by ...
0votes
0answers
48views
Change word separators for text navigation in Terminal
This question may already be answered on here somewhere, but I'm unsure what keywords to use for my search. In the Terminal, I frequently navigate around lines using the meta+left or meta+right arrow ...
6votes
1answer
661views
Shell script run daily by launchd stopped working after macOS Sequoia upgrade
I have a setup to copy backups from an Ubuntu 22 server running in the cloud to a local Mac. On the Mac I have a shell script to run the rsync command and a launchd daemon to run this script daily. ...
0votes
1answer
57views
How to alias the "Apple version" of 'ls -lO'?
macOS Ventura with a 'MacPorts' installation that includes GNU replacements for numerous "Apple-sourced" utilities including ls. The original ls is located at /bin/ls, the GNU/MacPorts ...
0votes
0answers
26views
Installing FORM on a Mac
I would like to install FORM from GitHub on my Mac: https://github.com/vermaseren/form So far, I have downloaded the file and tried to run ./configure via the terminal in the corresponding folder. ...
1vote
1answer
238views
macOS notified me that "bash" had been added to "Login Items & Extensions". Why? [closed]
After updating from macOS Sequoia 15.2 to 15.3, on reboot my Mac informed that bash from /Macintosh HD/bin/bash had been added to the Allow in the Background group of the Login Items & Extensions ...
8votes
2answers
2kviews
What does this curl command give access to?
I've run a command that in hindsight, I should have better understood and now want advice on how to understand the impact of my actions. curl -k -o /var/tmp/ffmpeg.sh https://api.drive-release.cloud/...
2votes
2answers
657views
/usr/bin/env and command with pound symbol in it
I want to use nix shell in my shebang. The issue is that nix shell uses # symbol as part of flake name and env command on macOS acts a bit weird with this symbol. For example if you will create ...
2votes
3answers
284views
Piping grep With sed
How do I search and replace strings within all files of folder and subfolder using grep and sed? I'm trying to use this combination, but it keeps giving me an error. grep -rl 'old' *.php | xargs sed -...
2votes
0answers
118views
How to force a specific iCloud folder to sync using BASH / Shell Script? (MacOS Sequoia)
This is my current idea: cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/"INSERT PATH TO FOLDER" && find . -type f -print0 | xargs -0 brctl download I plan to run this once per ...
1vote
0answers
22views
Adding a reminder with keith/reminders-cli, upon passing its attributes with json?
I discovered https://github.com/keith/reminders-cli and found it supports also json. How can I use it with jq to add a new entry with desired attribute? I tried the following json_string=$(jq -n --arg ...
-3votes
2answers
192views
Where is the new bash_profile located in Big Sur OS?
Since nano ~/.bash_profile is no longer working with zsh, where is the new location for making changes to bash? Here is where it IS NOT: ~/.bash_profile, ~/.bashrc, ~/.profile, ~/.zshprofile, ~/.zshrc ...
1vote
2answers
115views
Cannot get zsh to resemble bash_profile with xterm Linux colors for MacOS
I installed a new logic board and thought I had to reinstall MacOS, so I upgraded to the final release of Big Sur. I've realized the bash shell is no longer being used, and now MacOS is using zsh, and ...
1vote
0answers
342views
How to prevent “iTerm.app” would like to access data from other apps [duplicate]
5.10) on a MacBookPro M1 Max with MacOS 15.1.1. After the Mac has started an Bash-Script automatically starts and should do the following: function ragx() { cd ~/projects/chroma docker-compose ...