diff --git a/README.md b/README.md index cae19b7..84f39c1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_451 TILs and counting..._ +_452 TILs and counting..._ --- @@ -399,6 +399,7 @@ _451 TILs and counting..._ - [Grep For Files Without A Match](unix/grep-for-files-without-a-match.md) - [Grep For Multiple Patterns](unix/grep-for-multiple-patterns.md) - [Hexdump A Compiled File](unix/hexdump-a-compiled-file.md) +- [Jump To The Ends Of Your Shell History](unix/jump-to-the-ends-of-your-shell-history.md) - [Kill Everything Running On A Certain Port](unix/kill-everything-running-on-a-certain-port.md) - [Killing A Frozen SSH Session](unix/killing-a-frozen-ssh-session.md) - [Last Argument Of The Last Command](unix/last-argument-of-the-last-command.md) diff --git a/unix/jump-to-the-ends-of-your-shell-history.md b/unix/jump-to-the-ends-of-your-shell-history.md new file mode 100644 index 0000000..f7145bc --- /dev/null +++ b/unix/jump-to-the-ends-of-your-shell-history.md @@ -0,0 +1,15 @@ +# Jump To The Ends Of Your Shell History + +There are all sorts of ways to do things in your shell environment without +reaching for the arrow keys. For instance, if you want to move _up_ to the +previous command, you can hit `Ctrl-p`. To move _down_ to the next +command in your shell history, you can hit `Ctrl-n`. + +But what if you want to move to the beginning and end of your entire shell +history? + +Find your meta key (probably the one labeled `alt`) and hit `META-<` and +`META->` to move to the end and beginning of your shell history, +respectively. + +[source](https://www.gnu.org/software/bash/manual/html_node/Commands-For-History.html)