Skip to main content

Questions tagged [bash]

The Unix shell which was the default shell in macOS until 10.15

0 votes
1 answer
46 views

In bash (3.2.57) on MacOS 15.7.4, command line regular expressions are normally case sensitive, but when you list a range of characters, such as [a-z], the result is case insensitive. This is a ...
1 vote
1 answer
167 views

Some years ago Apple dropped support for my ancient Canon Lide 30 scanner. So, I hung it off a Raspberry Pi (which still supports the scanner via scanimage) and wrote a very simple Apple Script and an ...
1 vote
1 answer
350 views

I'm in the situation of having to connect to various systems via ssh to do some quick work and then leave without a trace. Before I do any work, however, I would like to set up some aliases to save ...
1 vote
1 answer
558 views

I'm trying to add certain subnets to my route table after launching an IKEv2 VPN tunnel from my Mac. I understand that this behaviour can be achieved by placing an executable ip-up file in /etc/ppp/ ...
53 votes
8 answers
53k views

I have always used bash for work, and never had problems with it. Now, it does not save any command in history again. If I open a window terminal, try some commands, it acts like everything has ...
2 votes
1 answer
99 views

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 ...
9 votes
0 answers
2k views

I recently purchased an external keyboard (non-apple) that is used at home and also dragged along with me from time to time, and I've noticed a need. My Mac is in English, as well as its physical ...
0 votes
1 answer
58 views

My login shell is zsh, the default in macOS Sequoia. However, I'm used to bash and so my .zshrc simply does exec /bin/bash. Pressing command-T in a Terminal window should open a new tab at the current ...
2 votes
1 answer
2k views

In AutoHotKey, using the keyword "ExitApp" can allow the user to stop a script with a keypress. For example, Esc::ExitApp can stop a script by pressing "esc". Now, with a ...
0 votes
2 answers
74 views

#!/bin/bash # Download Installomator curl -fsSL https://raw.githubusercontent.com/Installomator/Installomator/main/Installomator.sh -o /usr/local/bin/Installomator chmod +x /usr/local/bin/...
1 vote
2 answers
111 views

On macOS, I get a system popup when running UI tests in GitHub saying: “bash” is requesting to bypass the system private window picker and directly access your screen and audio. How can I disable ...
131 votes
5 answers
361k views

I would like to get all files from the web page below using curl: http://www.ime.usp.br/~coelho/mac0122-2013/ep2/esqueleto/ I tried: curl http://www.ime.usp.br/~coelho/mac0122-2013/ep2/esqueleto/ It ...
6 votes
1 answer
4k views

In the preferences of the Terminal App, you can set custom ANSI colors for blue, green, yellow, bright red, etc. but they don't actually change anything in the Shell. For example using ls -G still ...
0 votes
0 answers
63 views

I have moved to macbook pro from linux recently and I do have quite a big bash history (over 200000 commands). Unfortunately while using bash history in macOS I have noticed that if I pipe history ...
5 votes
2 answers
3k views

Objective is to determine the last password change time for all the user accounts in macOS (Catalina). sudo dscl . -read Users/swastibhushandeb accountPolicyData Output: <dict> <key>...

15 30 50 per page
1
2 3 4 5
122