修改mac系统下/etc/profile文件

Some paths and applications in El Capitan are protected by System Integrity Protection. Even root can't modify the files. You first have to disable SIP before editing or modifying them.

  1. Reboot your Mac to Recovery Mode by restarting your computer and holding down CommandR until the Apple logo appears on your screen.
  2. Click Utilities -> Terminal.
  3. In the Terminal window, enter in csrutil disable and press Enter.
  4. Restart your Mac
  5. Modify the file(s)
  6. Reboot your Mac to Recovery Mode by restarting your computer and holding down CommandR until the Apple logo appears on your screen.
  7. Click Utilities -> Terminal.
  8. In the Terminal window, enter in csrutil enable and press Enter.
  9. Restart your Mac

你可能感兴趣的:(修改mac系统下/etc/profile文件)