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.

3
  • 2
    There is also (for fun, mainly) the ugly alias apt='sudo apt '; alias update='update -y', but the two aliases (taken individually) would likely be an unwanted side effect. Commented Sep 28, 2021 at 12:50
  • 1
    @fra-san, yeah, the meaning changes, but it might not be that bad here. At least as long as update doesn't exist as a command on its own. Most uses of apt require privilege anyway, and sudoing something like apt search shouldn't be too dangerous. Commented Sep 28, 2021 at 13:32
  • 2
    "Sudoing something like apt search shouldn't be too dangerous." Famous last words :) Don't use sudo if you don't need it just because it's convenient. Commented Sep 29, 2021 at 12:52