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.- Requires
stty -ixon
.
- Requires
C-x C-e
- Invoke theEDITOR
and execute the result as commands. If using vi mode, hitv
instead while in command mode. Set vi mode in the .inputrc file.export EDITOR=vi
- in case you get anemacs: command not found
while 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<file-path>
(macOS only).