Linux: Difference between revisions

231 bytes added ,  8 October 2020
Line 28: Line 28:
* <code>2>&1</code> will redirect stderr (2) to stdout (1)
* <code>2>&1</code> will redirect stderr (2) to stdout (1)
* [https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html <code>tee</code>] will redirect stdout to multiple files and show it in the terminal
* [https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html <code>tee</code>] will redirect stdout to multiple files and show it in the terminal
===Shutdown===
<pre>
shutdown -h [now | -t <time>]
</pre>
* <code>-h</code> poweroff, the default
* <code>-t time</code> schedule a shutdown in ''time'' seconds
* <code>-r</code> restart
* <code>-c</code> cancel pending shutdown


==Package Management==
==Package Management==