A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

You can't fiddle with /usr/bin: it's (SIP) restricted. To validate this understanding, just execute ls -laO /usr/bin So "resetting" this path as you seek to do is a non-starter. /usr/bin is full of binaries compiled by Apple themselves. For instance, if you execute /usr/bin/git --version you'll see the git that lives here is an Apple thingy; nothing ...


1

When you're talking about "recursively" then find comes into play. cd /path/to/parent_folder find . -depth -exec do_stuff_here + I'm using -depth so that files in a subdirectory get renamed before the subdirectory itself, and -exec program {} + so that the program receives many filenames at once, reducing startup overhead. Since there's no builtin rename ...


4

I decided to go the site : https://nmap.org/book/inst-macosx.html Click on Download https://nmap.org/dist/nmap-7.80.dmg I downloaded that .dmg, installed it, now my nmap working again. Note : I will leave this post since, it might help others in the future.


4

Yes, security updates show up as recommended updates but softwareupdate -r at least on Mojave is invalid. Note softwareupdate will not install updates for things from the App Store. If you run softwareupdate -l on a system that is due security updates you can see them prefixed with a * character in the --list output which means they are recommended and ...


1

Especially since you're already using zsh, I would recommend using the existing highlighter framework (and builtin highlighters) of zsh-syntax-highlighting or fast-syntax-highlighting Based on a preliminary review, both should have sufficient documentation to hopefully allow you to set up your preferred environment. Here's a screenshot of zsh-syntax-...


0

The builtin echo for /bin/sh on macOS does not support the -n option. You can use the following alternatives: bash Using /bin/bash works. But I don't like using it for scripts because it is not available by default for example on FreeBSD. On Linux it is available. builtin echo and tr If you want to use the builtin echo (e.g. when you are echoing a ...


0

MacOS comes with Tcl/Tk built-in. Mac's python comes with the Tkinter layer to use it, but you can also use it in the shell and X11.


0

It's been years, and this is a work in progress, but I'm working on a zenity “port” to both macOS and Windows. You can get it here: https://github.com/ncruces/zenity/releases Read more: https://github.com/ncruces/zenity On macOS the only dependency is osascript (with JXA, because JavaScript is easier to work with than AppleScript). On Windows there are ...


-1

It's your file system thing. I'm using APFS, it's also case insensitive but case-preserving. This post provides a good explanation about H(ierarchical)FS and APFS. #include <sys/stat.h> #include <iostream> int main(int argc, char **argv) { struct stat sb; int ret = stat(argv[0], &sb); std::cout << ret <&...


1

zsh uses different config files, see the 'STARTUP/SHUTDOWN FILES' section in man zsh. You can run one of mv ~/.bash_profile ~/.zprofile mv ~/.bash_profile ~/.zshrc to rename the file, see the man page or https://support.apple.com/en-us/HT208050 for the difference between these: If you're using a bash profile, such as to set environment variables, ...


0

I actually solved this before I posted but decided that it is worth documenting what I found out. It turns out that /Applications/Emacs.app/Contents/MacOS/Emacs is a small ruby script that figures out which binary to run (there are three): ls -l /Applications/Emacs.app/Contents/MacOS/ total 110296 -rwxr-xr-x@ 1 rful011 admin 3408 2 Sep 19:19 Emacs ...


0

I would recommend restoring a backup of your entire disk from a time before the 'strangeness' happened. Manual methods will only work if you have identified everything that needs to be moved.


1

First: nothing in the commands you listed should have moved your home directory (unless there's something even weirder than carriage returns in catalina.sh?), so I'd run some additional checks to makes sure that's what actually happened before trying to fix it based on that assumption. First, run ls -lae /usr/local/tori and verify its output. You should see ...


1

To find what was added to your profiles, I ran these commands. mac $ curl http://data.biostarhandbook.com/install/bash_profile.txt > ~/seebash_profile % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 89 100 89 0 0 513 0 --...


Top 50 recent answers are included