mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-26 02:12:16 +03:00
fe37d4fb83
Makes the example consistent with its description
323 B
323 B
sudo
Execute a command as another user.
- List of an unreadable directory:
sudo {{ls}} {{/usr/local/scrt}}
- To edit a file as user www:
sudo -u {{www}} {{vi}} {{/var/www/index.html}}
- To shutdown the machine:
sudo {{shutdown}} -h +10 {{"Cya soon!"}}
- To repeat the last command as sudo:
sudo {{!!}}