[cc lang=”bash” escaped=”true” width=”600″]

# while working on the bash shell you can use those hotkeys

user@host:^> type some word # Alt+Backspace – delete the last word
user@host:^> type some # Alt+Backspace – delete the last word
user@host:^> type # the two last words have been deleted

sleep 30 &; # create job1
sleep 30 &; # create job2
sleep 30; # then hit Ctrl+Z – which will stop the execution of the command
bg # will make the stopped command continue in background
jobs # display all running jobs
fg 1 # bring job 1 into foreground
# Ctrl+C – cancel execution of job1

history; # show your command history

Shift+PageUp/PageDown # scroll look through shell screen output

Ctrl+R # now type some letters… it searches your command-history and tries to find a command that matches your search… thus it is easy and fast to find and re-run commands from history, you can even modify them before you run them.

info somecommand; # get help for that command
man somecommand; # get help for that command
somecommand –help; # get help for that command

TAB, TAB # to show all commands

somecomma.. # hit TAB to autocomplete commands, files, folders

vim somelargefile.txt; # can open really large files, you can navigate with cursor up/down or:

gg # jump to beginning
Shift+gg # to jump end of file

/keyword # hit enter, search for that keyword in the current file

:q # exit vim without saving/changing
:wq # exit with saving

Ctrl+L # clear screen (very fast and good 🙂

Ctrl+D # fastest way to logout

[/cc]

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin