Skip to content

Safe Practices

MethodHow
man <command>Full manual page (press q to exit)
<command> --helpShort help text
tldr <command>Simple examples (install with brew install tldr)
which <command>Show where a command lives

Safe Practices

  • Think before you rm: There's no undo for deleted files
  • Don't run commands with sudo unless you understand them: sudo runs as admin
  • Never paste commands from the internet without reading them first
  • Use ls first to see what's in a directory before deleting anything
  • Back up before running unfamiliar scripts