Skip to content

Instantly share code, notes, and snippets.

@thizmo
Last active October 28, 2018 16:19
Show Gist options
  • Save thizmo/11c907d5b2d5129a6341927994ab2768 to your computer and use it in GitHub Desktop.
Save thizmo/11c907d5b2d5129a6341927994ab2768 to your computer and use it in GitHub Desktop.
Show bash history without line numbers
The command
```bash
history
```
will show the entries of last used commands.
With
```bash
history |cut -c 8-
```
you can automatically remove the line-entries with numbers from the output.
Combinded with a grep you can just get what you've done last for that specific command.
Like
```bash
history |cut -c 8- |grep [your command]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment