example for current user (executing from user)
| Code Block |
|---|
echo "`whoami` ALL=(ALL:ALL) NOPASSWD: ALL" |sudo tee /etc/sudoers.d/`whoami` |
...
| Code Block |
|---|
cat <<EOF >> /etc/bash.bashrc HISTTIMEFORMAT="%Y-%m-%d %T " HISTSIZE=20000 HISTCONTROL=ignoredups:erasedups shopt -s histappend EOF |
grub timouts
| Code Block |
|---|
vi /etc/default/grub
# update GRUB_TIMEOUT=3
# add GRUB_RECORDFAIL_TIMEOUT=3
update-grub
grep "timeout=3" /boot/grub/grub.cfg |