Skip to content
Learn Linux

Learn Linux

Have You Tried The Man Page?📓

  • Start Here!
  • Blog
  • Resources
  • About

Tag Archives: sudo

Re-run a command with sudo permissions

Here’s how to quickly re-run your previous command with sudo permissions. !! is the same as !-1 But you can also do

Posted byraylech1986itJuly 31, 2026July 31, 2026Posted inUncategorizedTags:bash, sudoLeave a comment on Re-run a command with sudo permissions

Write Changes with SUDO Permission in Vim

Have you ever made this mistake… You open a config file with READ permissions, but needed to WRITE changes elevated (with “root” permissions)? Here’s the perfect solution: And here’s my full break down of the command:

Posted byraylech1986itMay 6, 2025June 6, 2025Posted inUncategorizedTags:sudo, vimLeave a comment on Write Changes with SUDO Permission in Vim

Recent Posts

  • Quickly Compile Your 1st C Program September 4, 2026
  • Vim Searching – Advanced Tips August 17, 2026
  • Re-run a command with sudo permissions July 31, 2026
  • What Process is listening on each port? June 20, 2026
  • AI 🤖 is getting so good.. April 22, 2026
Learn Linux, Create a website or blog at WordPress.com
  • Subscribe Subscribed
    Learn Linux

    Have a WordPress.com account? Log in now.

  • Learn Linux
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar