Portál AbcLinuxu, 6. května 2025 14:52
Seznam zkratek:
CTRL-CThis is the most commonly used sequence. In the bash shell, CTRL-C will terminate any currently running process and return you to the bash prompt. For example, if you accidentally run a command that does not stop, use CTRL-C to cancel the command.
CTRL-DMany Unix commands read their input directly from the keyboard. An example is the WC command. WC counts the number of lines, words and characters that a user types in from the keyboard. So if you tpye WC at the command prompt, the command will wait for your input till you use CTRL-D to signal the end of transmission.
CTRL-ZMeans to suspend a program. For example, you are working with a command and you want to stop it temporary as it is taking too long. To do that, you can use CTRL-Z. You can later restore back the command using the fg command.
CTRL-UIf you have messed up a certain command and you want to start all over, instead of using backspace, you can use CTRL-U. CTRL-U resets the current line.
CTRL-HInstead of using the backspace key, you can use CTRL-H to function the same way. Unless the backspace key is malfunctioned or mapped wrongly, this sequence serves very little purpose.
CTRL-LIf your screen is too cluttered with unwanted information, you can clear the screen using CTRL-L.
CTRL-SFreeze your screen. This is a good command to use if you decide to go for a coffee break and do not want any process to run till you are back.
CTRL-QThis sequence is exactly the opposite to CTRL-S. If you have freezed the screen before, you use this command to unfreeze it.
CTRL-JFunctions the same way as the RETURN key.
CTRL-GMakes a terminal beep sound for fun and entertainment.
edit: Doplnek z diskuse - zbytek prikazu v man bash
pod nadpisem Commands for Moving
Tiskni
Sdílej:
ctrl+a (= Home) ctrl+e (= End) alt+f (= forward, 1 word) alt+b (= backward, 1 word)Misto
ctrl+l
jde taky napsat prikaz clear
:)
Ctrl-C: "will terminate any currently running process" - no, to rozhodně ne. Ukončí nanejvýš proces, který na daném terminálu momentálně běží na popředí. A ani to ne vždy, spíš mu jen řekne, aby skončil, ale co ten proces opravdu udělá, to je jen a jen na něm.
Ctrl-D: proces čtoucí z terminálu dostane EOF, ale jen pokud tuto kombinaci použijete na začátku řádku. Jinak chování závisí na shellu (a také na jeho nastavení).
Ctrl-S: zablokuje terminál, ale že by zastavil všechny procesy, to určitě ne. Když jdete na kafe, použijte podle potřeby lock, vlock, xlock nebo funkci uzamknutí ve vašem desktopovém prostředí, ale rozhodně ne Ctrl-S. Navíc bývá tato klávesová zkratka často potlačena.
Ctrl+S totiz vobec nie je ziadne zamykanie shellu, ale pozdrzanie vypisu.Což může zastavit běžící program, pokud nemá vypisování nastavené s NONBLOCK
Melo by to uplne pohlcovat klavesnici mimo akce odemknuti.
Víte o nějakém dokumentu, který by tvrdil, že se to tak má chovat? Co si pamatuji, chovalo se to vždy takto.
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.