Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Any interesting commands in Linux?

views
     
TSFlierMate
post Nov 22 2022, 07:38 PM

On my way
****
Junior Member
506 posts

Joined: Nov 2020
QUOTE(d4n3sh @ Nov 11 2022, 05:26 PM)
CODE
sudo !!
is one I use alot. Every time I go duh! I forgot to sudo.

CODE
❯ whoami
user1
❯ sudo !!
❯ sudo whoami
Password:
root

*
Thanks to danesh, learnt something new:
(double exclamation point) refers to the previous command; the command !! alone on an input line reruns the previous command.

3 Pages < 1 2 3Top
 

Change to:
| Lo-Fi Version
0.0120sec    0.18    5 queries    GZIP Disabled
Time is now: 1st December 2022 - 07:46 AM