Bash quick reference
Published on April 8th, 2023 • Updated on May 28th, 2023
- bash_profile - bash configuration settings.
C-r- Search bash history backward.
C-s- Search bash history forward.
C-x C-e- Invoke the
EDITORand execute the result as commands. If using vi mode, hit
vinstead while in command mode. Set vi mode in the .inputrc file.
export EDITOR=vi- in case you get an
emacs: command not foundwhile on an SSH session.
pwd- print the current directory's full path.
<command> | pbcopy- copy the output of the
<command>to the clipboard (macOS only).
pbpaste > <file-path>- output clipboard contents to the