diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 7d1138ed94..f2dbba1f8b 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -4,20 +4,17 @@ - Listing of an unreadable directory: -`sudo ls /usr/local/scrt` +`sudo {{ls}} {{/usr/local/scrt}}` -- To list the home directory of non-root user - -`sudo -u Jhon ls ~Jhon` - To edit a file as user www: -`sudo -u www vi /var/www/index.html` +`sudo -u {{www}} {{vi}} {{/var/www/index.html}}` - To shutdown the machine: -`sudo shutdown -r +10 "Cya soon!"` +`sudo {{shutdown}} -r +10 {{"Cya soon!"}}` - To repeat the last command as sudo -`sudo !!` +`sudo {{!!}}`