| Post Reply | RetroFed Forum Forum Index
» linuxmemes
Page 1 of 3 Goto page 1, 2, 3 Next Last » |
| Author | Message | ||
|---|---|---|---|
obnomus
lemmy.ml
Obnomus@lemmy.mlJoined: 2024-06-16 |
|
||
| 472 Original | |||
|
eco_game
discuss.tchncs.de
eco_game@discuss.tchncs.de Joined: 2023-06-17 |
On my Terminal that just makes it so I can't type anymore, I feel like I'm doing something wrong... My solution to the problem is CTRL+U, type sudo, CTRL+Y. |
||
| 9 | |||
|
Dionysus
leminal.space
Dionysus@leminal.space Joined: 2025-09-13 |
On my Terminal that just makes it so I can't type anymore, I feel like I'm doing something wrong... My solution to the problem is CTRL+U, type sudo, CTRL+Y.
Need to use the fish shell instead of the others for this to work. (May be a way to enable it in other shells but I'm not sure how) |
||
| 8 | |||
|
insufferableninja
sh.itjust.works
imsufferableninja@sh.itjust.works Joined: 2024-11-26 |
On my Terminal that just makes it so I can't type anymore, I feel like I'm doing something wrong... My solution to the problem is CTRL+U, type sudo, CTRL+Y.
If you hit ctrl-s, ctrl-q will unfreeze |
||
| 15 | |||
|
insufferableninja
sh.itjust.works
imsufferableninja@sh.itjust.works Joined: 2024-11-26 |
Top text should maybe say copying by, rather than copying then? Since sudo !! will automatically copy the previous command with sudo in front of it, so there's no manual copying involved |
||
| 21 | |||
obnomus
lemmy.ml
Obnomus@lemmy.mlJoined: 2024-06-16 |
Top text should maybe say copying by, rather than copying then? Since sudo !! will automatically copy the previous command with sudo in front of it, so there's no manual copying involved
Yeah I remembered that after uploading the meme. |
||
| 7 | |||
|
dracc
discuss.tchncs.de
dracc@discuss.tchncs.de Joined: 2025-09-25 |
On my Terminal that just makes it so I can't type anymore, I feel like I'm doing something wrong... My solution to the problem is CTRL+U, type sudo, CTRL+Y.
Ctrl + S freezes your shell yes. But Alt + S? |
||
| 9 | |||
|
Caveman
lemmy.world
olafurp@lemmy.world Joined: 2023-08-19 |
You can also just do a |
||
| 144 | |||
|
adeoxymus
lemmy.world
adeoxymus@lemmy.world Joined: 2023-07-01 |
You can also just do a sudo !! the !! is a shorthand for whatever you tried to run previously.
I completely forgot about this one! |
||
| 6 | |||
screaming in digital
lemmy.ml
qprimed@lemmy.mlJoined: 2023-05-07 |
If you hit ctrl-s, ctrl-q will unfreeze
x๐off๐... |
||
| 3 | |||
devfuuu
lemmy.world
devfuuu@lemmy.worldJoined: 2023-06-17 |
You can also just do a sudo !! the !! is a shorthand for whatever you tried to run previously.
Not all shells support that. I use fish btw. |
||
| 27 | |||
juipeltje
lemmy.world
juipeltje@lemmy.worldJoined: 2023-07-02 |
You can also just do a sudo !! the !! is a shorthand for whatever you tried to run previously.
Was about to say, why would you copy anything when using |
||
| 78 | |||
TrickDacy
lemmy.world
TrickDacy@lemmy.worldJoined: 2023-07-27 |
Cannot find any reference online. What is this supposed to do? Not at a PC right now. |
||
| 7 | |||
|
ikidd
lemmy.dbzer0.com
ikidd@lemmy.dbzer0.com Joined: 2026-04-23 |
|
||
| 75 | |||
|
eco_game
discuss.tchncs.de
eco_game@discuss.tchncs.de Joined: 2023-06-17 |
Ctrl + S freezes your shell yes. But Alt + S?
Ah indeed, ALT+S does nothing. I must have pressed both before realizing it was frozen. |
||
| 6 | |||
|
eco_game
discuss.tchncs.de
eco_game@discuss.tchncs.de Joined: 2023-06-17 |
If you hit ctrl-s, ctrl-q will unfreeze
Interesting, why is that? Like what feature is that? |
||
| 6 | |||
|
muhyb
programming.dev
muhyb@programming.dev Joined: 2023-07-05 |
Is this a shell thing or a terminal thing? It doesn't work for me on |
||
| 2 | |||
|
yeehaw
lemmy.ca
cyberpunk007@lemmy.ca Joined: 2023-08-09 |
Cannot find any reference online. What is this supposed to do? Not at a PC right now.
!! Just puts in your last typed command. So if you typed rm -rf /etc, you wouldn't have permission. But if you typed in sudo !! Right after, then you're really fucked. |
||
| 9 | |||
|
BCsven
lemmy.ca
BCsven@lemmy.ca Joined: 2023-06-17 |
Is this a shell thing or a terminal thing? It doesn't work for me on foot.
Not sure, I assumed universal because you use it with your history. Type history, see the number next to the command, do a !nnn and it will run that command from history |
||
| 1 | |||
TrickDacy
lemmy.world
TrickDacy@lemmy.worldJoined: 2023-07-27 |
!! Just puts in your last typed command. So if you typed rm -rf /etc, you wouldn't have permission. But if you typed in sudo !! Right after, then you're really fucked.
Ah I wasn't clear -- those, I knew. It's alt+S I don't know. I'm at my machine now and it doesn't seem to do anything on Pop_OS. |
||
| 6 | |||
|
furry toaster
lemmy.blahaj.zone
protogen420@lemmy.blahaj.zone Joined: 2025-01-04 |
Not all shells support that. I use fish btw.
I made my own !! |
||
| 17 | |||
|
RedstoneValley
sh.itjust.works
RedstoneValley@sh.itjust.works Joined: 2023-07-24 |
Or press Ctrl-S and take a nice walk outside |
||
| 12 | |||
|
NannerBanner
literature.cafe
NannerBanner@literature.cafe Joined: 2025-12-27 |
Not all shells support that. I use fish btw.
I don't even know what I use anymore. My distro seems to keep changing it when I reinstall. |
||
| 7 | |||
|
muhyb
programming.dev
muhyb@programming.dev Joined: 2023-07-05 |
Not sure, I assumed universal because you use it with your history. Type history, see the number next to the command, do a !nnn and it will run that command from history
Oh, |
||
| 5 | |||
|
ArchAengelus
lemmy.dbzer0.com
ArchAengelus@lemmy.dbzer0.com Joined: 2023-12-21 |
I made my own !!
I know what you meant (I have one for fish as well), but I chucked because you looked very enthusiastic about it! The fish function for |
||
| 18 | |||
|
insufferableninja
sh.itjust.works
imsufferableninja@sh.itjust.works Joined: 2024-11-26 |
Interesting, why is that? Like what feature is that?
It's part of the terminal emulator flow control |
||
| 4 | |||
|
Sarcasmo220
lemmy.ml
Sarcasmo220@lemmy.ml Joined: 2022-03-19 |
You can also just do a sudo !! the !! is a shorthand for whatever you tried to run previously.
I learned something new today! |
||
| 16 | |||
printf("%s", name);
piefed.blahaj.zone
akunohana@piefed.blahaj.zoneJoined: 2026-03-30 |
|
||
| 148 | |||
|
neclimdul
lemmy.world
neclimdul@lemmy.world Joined: 2023-07-01 |
Interesting, why is that? Like what feature is that?
Short answer, terminals are built on the same technology as physical terminals from the 60s and 70s when controlling the flow of data from the server was a more useful feature. |
||
| 5 | |||
|
Albbi
piefed.ca
albbi@piefed.ca Joined: 2025-06-25 |
I know alt +. inserts the last argument of previous commands. There must be a good list of alt commands somewhere because they're pretty damn useful. |
||
| 17 | |||
|
yeehaw
lemmy.ca
cyberpunk007@lemmy.ca Joined: 2023-08-09 |
Ah I wasn't clear -- those, I knew. It's alt+S I don't know. I'm at my machine now and it doesn't seem to do anything on Pop_OS.
Ya I haven't tried alt s. Never heard of it before either. |
||
| 3 | |||
|
BCsven
lemmy.ca
BCsven@lemmy.ca Joined: 2023-06-17 |
Oh, !! definitely works. I meant Alt+S shortcut.
Oh, LOL |
||
| 3 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
Interesting, why is that? Like what feature is that?
Same reason there's a ScrollLock key on keyboards. Didn't always have scrollbars and if the application prints more than you can read, you want to pause that... |
||
| 9 | |||
|
unbuckled_easily933
lemmy.ml
unbuckled_easily933@lemmy.ml Joined: 2025-01-22 |
I don't even know what I use anymore. My distro seems to keep changing it when I reinstall.
|
||
| 9 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
Is this a shell thing or a terminal thing? It doesn't work for me on foot.
@Dionysus@leminal.space found out that it's a feature in |
||
| 6 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
Always amused me that |
||
| 31 | |||
|
SkaveRat
discuss.tchncs.de
SkaveRat@discuss.tchncs.de Joined: 2023-07-09 |
Ctrl A is easier to reach than the home key |
||
| 17 | |||
Nilz
sopuli.xyz
Nilz@sopuli.xyzJoined: 2023-06-01 |
Always amused me that sudo !! is actually more keypresses (at least on keyboards where typing ! requires holding Shift).
I use zsh with the sudo plugin. Double tap |
||
| 13 | |||
printf("%s", name);
piefed.blahaj.zone
akunohana@piefed.blahaj.zoneJoined: 2026-03-30 |
Always amused me that sudo !! is actually more keypresses (at least on keyboards where typing ! requires holding Shift).
You just blew my mind. |
||
| 62 | |||
Nilz
sopuli.xyz
Nilz@sopuli.xyzJoined: 2023-06-01 |
alias fuck="sudo !!"
Wait, you don't have The Fuck installed? |
||
| 38 | |||
printf("%s", name);
piefed.blahaj.zone
akunohana@piefed.blahaj.zoneJoined: 2026-03-30 |
I use zsh with the sudo plugin. Double tap esc and your current or last command will be prefixed with sudo.
I don't dabble in black magic. /j It's actually pretty neat. |
||
| 11 | |||
|
muhyb
programming.dev
muhyb@programming.dev Joined: 2023-07-05 |
@Dionysus@leminal.space found out that it's a feature in fish shell, which I can confirm.
Thanks. I think I should check out |
||
| 3 | |||
clif
lemmy.world
clif@lemmy.worldJoined: 2023-06-11 |
Ah I wasn't clear -- those, I knew. It's alt+S I don't know. I'm at my machine now and it doesn't seem to do anything on Pop_OS.
Seem to be a I tested on my good ole trusty EDIT: Clarification : |
||
| 5 | |||
Axolotl
feddit.it
Axolotl_cpp@feddit.itJoined: 2025-10-10 |
Always amused me that sudo !! is actually more keypresses (at least on keyboards where typing ! requires holding Shift).
But it's faster since your hand move less and you can keep |
||
| 19 | |||
|
softotteep
pawb.social
solxix@pawb.social Joined: 2025-12-03 |
!! Just puts in your last typed command. So if you typed rm -rf /etc, you wouldn't have permission. But if you typed in sudo !! Right after, then you're really fucked.
Not if you don't type your password. |
||
| 1 | |||
|
softotteep
pawb.social
solxix@pawb.social Joined: 2025-12-03 |
Same reason there's a ScrollLock key on keyboards. Didn't always have scrollbars and if the application prints more than you can read, you want to pause that...
THAT'S WHAT IT'S FOR?? Now that I think about it, it does seem pretty obvious. |
||
| 13 | |||
|
yeehaw
lemmy.ca
cyberpunk007@lemmy.ca Joined: 2023-08-09 |
But if you typed in sudo !! Right after, then you're really fucked. Not if you don't type your password.
I assume if you are silly enough to type in rm -rf /etc, then you are silly enough to type in your password ๐ |
||
| 2 | |||
|
ClownStatue
piefed.social
ClownStatue@piefed.social Joined: 2025-05-13 |
Ctrl A is easier to reach than the home key
Unless youโre in a default screen session (I always thought ^A was such a dumb default for screen to use). |
||
| 4 | |||
|
ClownStatue
piefed.social
ClownStatue@piefed.social Joined: 2025-05-13 |
But if you typed in sudo !! Right after, then you're really fucked. Not if you don't type your password.
Adding to this, if you notice numbers next to your previous commands when you run history, you can do ! and it will rerun that command. Probably the second cool shell trick I learned back in the olden days or yore (mid-90s?) after โฌ๏ธ |
||
| 3 | |||
softwarist
programming.dev
softwarist@programming.devJoined: 2025-05-29 |
I know alt +. inserts the last argument of previous commands. There must be a good list of alt commands somewhere because they're pretty damn useful.
The manual is a good place to start. It's just GNU Readline under the hood. |
||
| 8 | |||
|
NannerBanner
literature.cafe
NannerBanner@literature.cafe Joined: 2025-12-27 |
echo $SHELL
Lol, thanks. Now I know. |
||
| 5 | |||
| Post Reply |
Page 1 of 3
Goto page
1, 2, 3
Next
Last »
Back to top |