Last active
October 28, 2018 16:19
-
-
Save thizmo/11c907d5b2d5129a6341927994ab2768 to your computer and use it in GitHub Desktop.
Show bash history without line numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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