Skip to content

Linux Training Academy

  • About
  • Resources
  • Linux for Beginners
  • Books
  • Courses

Linux Training Academy

  • About
  • Resources
  • Linux for Beginners
  • Books
  • Courses

Shell Scripting

Repeating the Last Command as Root — a Quick Intro to Event Designators with Video Example

If you ever forget to run a command with root privileges, you can simply repeat it by using sudo !! or su -c “!!”. $ adduser sam -bash: /usr/sbin/adduser: Permission denied $ sudo !! sudo adduser sam $ id sam uid=1007(sam) gid=1007(sam) groups=1007(sam) $ usedel -r sam -bash: /usr/sbin/userdel: Permission denied $ sudo !! sudo … Read more

Tags Command Line, Linux, Shell Scripting, Video
Newer posts
← Previous Page1 … Page3 Page4

Most Popular

Linux Commands Cheat Sheet
Linux ip Command Networking Cheat Sheet
Vim Cheat Sheet
Linux System Administrator Projects
1,500 Coding Project Ideas

Recent Linux Articles

  • Caddy Load Balancing Tutorial: A Step-by-Step Guide to Balanced Server Workloads
  • Tmux Tutorial: Mastering the Basics
  • How to Install an SSL Certificate on an AlmaLinux Server with Nginx using Let’s Encrypt
  • Installing Passbolt, a Secure, Self-Hosted Password Manager
  • CentOS is dead, long live CentOS!

Topics

AlmaLinux Arch Linux Careers CentOS cheat sheet Cloud Command Line Debian Desktop DevOps Fedora File System FTP Installation Interviewing Jobs Linux Linux Certifications Linux Mint MySQL Nginx OpenSuse Programming Python RedHat Rocky Linux SCP Sed Server Shell Scripting Slackware SSH Text Editors Ubuntu Vagrant Video vim VirtualBox Web Hosting Windows

Linux Cheat Sheet Download
Enter your email address below to download this Linux command line cheat sheet in an easy-to-read and ready-to-print format.
© 2025 Linux Training Academy
  • About
  • Resources
  • Linux for Beginners
  • Books
  • Courses
✕
Free Linux Command Line Cheat Sheet ->