Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreruffert/command-line-shortcuts
:rocket: Time-saving bash command line shortcuts.
https://github.com/andreruffert/command-line-shortcuts
Last synced: 4 days ago
JSON representation
:rocket: Time-saving bash command line shortcuts.
- Host: GitHub
- URL: https://github.com/andreruffert/command-line-shortcuts
- Owner: andreruffert
- Created: 2015-04-20T13:16:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-20T13:24:28.000Z (over 9 years ago)
- Last Synced: 2024-10-24T02:16:40.429Z (about 2 months ago)
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Command line shortcuts
> Some time-saving bash command line shortcuts for more productivity.
## Directory moving
`cd` (with no arguments) takes you back to your `/~` (home) directory.
`cd -` takes you back to the previous directory you were in.
## Moving the cursor
`` move your cursor to the beginning of the line. Faster than holding down left arrow.
`` move your cursor to the end of the line. Faster than holding down right arrow.
## Editing
`` clears the entire line so you can type in a completely new command.
`` deletes the line from the position of the cursor to the end of the line.
`` remove the previous word on the command line (before the cursor). This is highly useful when reusing old commands.
`` clear the Screen, similar to the `clear`. It's usually quicker and doesn't leave the command in your history.
## History
`string` reverse search through your command history for `string`. Press `` again to continue searching backwards. ESC when done.
`!!` run the last command
`!string` run the most recent command that starts with `string` (e.g. !ls -la)`
`!string:p` Print last command in history beginning with `string` (also adds it as the latest command in the command history)
`` undo