FG
💻 Software

What does the command "sudo !!" mean?

Fresh7 days ago
Mar 15, 202618770 views
Confidence Score1%
1%

Problem

I saw the command in a video. What does this mean?

Error Output

sudo !!

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What does the command "sudo !!" mean?

Low Risk

From the bash manual: 9.3.1 Event Designators - Refer to the previous command. This is a synonym for ‘!-1’. And from the man page: allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. So, means to execute the previous command as the superuser.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment