Sure. This may be executed, it really works in a program that isn’t a part of the system. It isn’t advisable for system packages. I ought to copy it to a vacation spot that has permission to write down and ensure it’s in your manner and the suitable permits assigned to you.
Generally, it’s simpler to put in a binary with conventional strategies to be put in with dependencies or on the proper route with appropriate permits, and so on.
Let’s undergo the method and see the end result.
I solely tried this in two Mac. I moved traceroute of/usr/sbin to a different mac a/usr/native/bin/. It won’t permit it to maneuver a /usr /sbin within the different Mac as a result of the macOS won’t permit it. There have been no safety alerts or quarantine issues.
Terminal Command:
scp /usr/sbin/traceroute consumer@destination-mac:/usr/native/bin
On the mac vacation spot:
chmod +x /usr/native/bin/traceroute
Then I attempted to execute the file:
traceroute ebay.com
Manufacturing:
zsh: killed traceroute ebay.com
Due to this fact, you’ll be able to see that though it may be executed, it’s not actually a advisable technique.
Nonetheless, it really works when copying a program that isn’t a part of the system.
Create a take a look at program and information it as take a look at.
#!/bin/bash
echo "Whats up"
exit
Copy it to a different Mac:
scp /path-to/take a look at.sh consumer@destination-mac:/usr/native/bin/
Make it executable in Vacation spot Mac:
chmod +x /usr/native/bin/take a look at.sh
Execute it:
take a look at.sh
Manufacturing:
Whats up