From 645f017c635a64c54ef333432bdee9ea33440f60 Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Wed, 15 Dec 2021 15:32:39 +0800 Subject: [PATCH] Run the previous command with sudo --- bash.md | 1 + 1 file changed, 1 insertion(+) diff --git a/bash.md b/bash.md index c5fddbc..29dacf7 100644 --- a/bash.md +++ b/bash.md @@ -735,6 +735,7 @@ Bash History {.cols-2} | Command | Description | |-----------------------|-------------------------------------------| | `history` | Show history | +| `sudo !!` | Run the previous command with sudo | | `shopt -s histverify` | Don't execute expanded result immediately | ### Expansions