![]() if last command is ‘ cat tecmint.txt’, then !$ would try to run ‘ tecmint.txt’). !$ – execute the last word of the previous command (same as Alt +., e.g.!top:p – displays the command that !top would run (also adds it as the latest command in the command history).!top – execute the most recent command that starts with ‘top’ (e.g.In the final part of this article, we will explain some useful ! (bang) operations: Learn more about: All You Need To Know About Processes in Linux Bash Bang (!) Commands Ctrl+D – exit the bash shell (same as running the exit command).The default behavior is to terminate a process gracefully, but the process can either honor or ignore it. Ctrl+C – interrupt the current foreground process, by sending the SIGINT signal to it.You can get the process back to the foreground later using the fg process_name (or %bgprocess_number like %1, %2 and so on) command. This sends the SIGTSTP signal to the process. Ctrl+Z – suspend the current foreground process.The following shortcuts help you to control running Linux processes. Esc and then C – changes the letter under the cursor (or the first letter of the next word) to uppercase, leaving the rest of the word unchanged.Esc and then L – transforms the text from the cursor to the end of the word to lowercase.Esc and then U – transforms the text from the cursor to the end of the word to uppercase. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |