Skip to main content
added 35 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade (with the exception of /usr/local). So you don‘t want to store your own content there.

The canonical place for user-provided code is /usr/local/bin, at least if you don‘t mind other users reading the shell script or running it. Otherwise (or to make it easier to update it) ~/.bin or similar is a good place.

Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade. So you don‘t want to store your own content there.

The canonical place for user-provided code is /usr/local/bin, at least if you don‘t mind other users reading the shell script or running it. Otherwise (or to make it easier to update it) ~/.bin or similar is a good place.

Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade (with the exception of /usr/local). So you don‘t want to store your own content there.

The canonical place for user-provided code is /usr/local/bin, at least if you don‘t mind other users reading the shell script or running it. Otherwise (or to make it easier to update it) ~/.bin or similar is a good place.

Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade. So you don‘t want to store your own content there.

The canonical place for user-provided code is /usr/local/bin, at least if you don‘t mind other users reading the shell script or running it. Otherwise (or to make it easier to update it) ~/.bin or similar is a good place.