How do I rerun the second-to-last command?
I’m using Ubuntu 21.10. If I mess up, I can re-run the last command with !!. Here’s an example: $ apt update Reading package lists… Done E: Could not open lock file /var/lib/apt/lists/lock – open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin – RemoveCaches (13: Permission denied)… Read More How do I rerun the second-to-last command?