mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Jump To The Ends Of Your Shell History as a unix til
This commit is contained in:
@@ -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)
|
||||
|
||||
15
unix/jump-to-the-ends-of-your-shell-history.md
Normal file
15
unix/jump-to-the-ends-of-your-shell-history.md
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user