Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Perhaps unix.stackexchange.com/q/148545/117549 ? Commented May 5, 2020 at 16:07
  • Ditto. This answer adjusted to your requirements: alias sudo='sudo -v; sudo ' Commented May 5, 2020 at 16:08
  • @KamilMaciorowski Not working. sudo: vi: command not found Commented May 5, 2020 at 16:16
  • I tried a billion things and absolutely nothing works :/. Commented May 5, 2020 at 16:34
  • The alias I gave you works for me in Bash 4.4.12. Did you type it? or did you paste? Maybe you missed the space just before the closing quote. It's crucial. Commented May 5, 2020 at 17:28