Questions tagged [macos]
macOS (previously "Mac OS X" and "OS X") is the Unix developed and distributed by Apple Inc. since 2001.
2,920 questions
7
votes
3
answers
634
views
Difference between these 2 different ways of extracting files from a zip archive
I am trying to unzip a set of files (3 files). These files contain a lot of random files, duplicate files etc. To do this, I am first unziping the list of the names of files into a text file, then ...
0
votes
0
answers
40
views
Why does `chmod 640` prevent group read access on macos?
I'm a student learning UNIX permissions and scripting on macOS. I created a short script that makes a file and applies chmod 640. However, a user in the same group cannot read the file.
Here is the ...
0
votes
1
answer
39
views
ssh in mac error out suddently with ssh usage error message
My .ksh scripts in my mac usually run successfully, and until yesterday were initiating an ssh connection with the following command successfully:
ssh -o StrictHostKeychecking=no -o ...
0
votes
0
answers
24
views
How to solve the prompt "internal error" when running a virtual machine on VMware Fusion on MacBook Pro?
error info:
Several virtual machines are installed in VMware Fusion, including Windows 10, CentOS, Ubuntu, etc., and all of them report this error when running.
Configuration details are as follows:
...
7
votes
1
answer
281
views
Allow unicode characters in zsh shell variable names on MacOS
There seems to be limited/inconsistent support for unusual but legal characters in zsh (and sh, bash) shell variable names on mac. Is there any way to fix this for full or better support?
Perhaps this ...
-5
votes
1
answer
57
views
Impossible delete install disk macOs.app [closed]
I'm trying to delete "Install macOS Mojave.app" from my Mac using the terminal command sudo rm -r or rm -rf, but it reports root error/illegal option/directory permission restricted, etc.
...
1
vote
1
answer
122
views
Using fish as default shell in Terminal on macOS causes .command files to fail
This question was previously asked here: https://stackoverflow.com/questions/74808784/after-switching-default-shell-command-file-just-opens-terminal
However, I have found no reason for the behavior, ...
0
votes
0
answers
50
views
Virtual Box to Apple Desktop Help
I have been having issue trying to download a virtual box onto my apple desktop that's running on Catalina (mac/intel processor). I have tried about 4 separate times and keep running into issues. ...
0
votes
0
answers
92
views
How to use bash history on a mac?
I've got MacBook from work and try to make it work similar to Linux. This is my config for history in bash:
# When the shell exits, append to the history file instead of overwriting it
export ...
4
votes
1
answer
401
views
expr "/foo" : "/" gives a syntax error
The following:
expr "/foo" : "/"
Results in a syntax error. I don't understand why?
These variations do not cause a syntax error:
expr "/foo" : "/*"
expr "...
0
votes
2
answers
123
views
Killing a process PID starts a new process instead
I have a running process on localhost on port 5000. I have tried kill - 9 <PID> which it works for that PID but it starts a new process with a new PID instead. What's the issue here?
I'll put ...
1
vote
0
answers
54
views
PROMPT_COMMAND usage in Bash on macOS
I'm trying to use Linux bash config on a mac. I don't use zsh only bash on my mac. I have problem with this variable:
# After each command, append to the history file and reread it
PROMPT_COMMAND=&...
0
votes
0
answers
64
views
Issue with SSH connection in Mac
I'm trying to ssh to a remote server. But after the ssh is successful the connection freezes within 2-3 minutes and eventually drops.
On checking packet trace i observed my mac is randomly sending a ...
2
votes
1
answer
258
views
`type` command ignores `LANG` after upgrading to `bash` 5.3 on iTerm2/macOS
I'm on macOS and I set English as the locale except for LC_TIME:
~ $ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-...
1
vote
0
answers
43
views
PS4 Not Fully Connecting Through WireGuard VPN via macOS Internet Sharing
I’m trying to route all my PS4 traffic through a VPS-hosted VPN (using WireGuard), with the MacBook acting as the gateway.
✅ The Setup So Far
VPS (Ubuntu): Set up successfully using Algo VPN. ...