3 ms·
> (Note that code prefixed by ‘!’ is executed via bash - everything else is executed in Python). Isn't it almost standard to prefix by "$ " (regular unprivileg
by spurgu 6y ago
> (Note that code prefixed by ‘!’ is executed via bash - everything else is executed in Python).
Isn't it almost standard to prefix by "$ " (regular unprivileged user) and "# " (root) for shell commands?
- blackbear_ 6y agoThis is because the post was originally written as a Jupyter notebook [1] and exported as markdown. These notebooks allow you to mix markdown and code which is executed interactively, and use `!` as a special syntax to denote bash commands instead of Python statements. [1]: https://jupyter.org/ https://jupyter.org/
- spurgu 6y agoAh, that makes sense!