×

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 {{!!}}

Фото subliminal
Предыдущая запись:
subliminal
Фото sum
Следующая запись:
sum