0 added
0 removed
Original
2026-01-01
Modified
2026-02-21
1
<h3>Important notes</h3>
1
<h3>Important notes</h3>
2
<p>You can also press Ctrl+r and start typing a command you're looking for. You'll get an autocomplete of your past commands. Keep entering symbols and you'll get closer and closer to the thing you're looking for.</p>
2
<p>You can also press Ctrl+r and start typing a command you're looking for. You'll get an autocomplete of your past commands. Keep entering symbols and you'll get closer and closer to the thing you're looking for.</p>
3
<p>Press Ctrl+r to go to the previous occurence of the matching line</p>
3
<p>Press Ctrl+r to go to the previous occurence of the matching line</p>
4
<p>You can "tag" lines with # to find it easier later. E.g.:</p>
4
<p>You can "tag" lines with # to find it easier later. E.g.:</p>
5
<p>and then</p>
5
<p>and then</p>
6
<p>Ctrl+r #report</p>
6
<p>Ctrl+r #report</p>
7
<p>You'll quickly come back to the original line. # creates a comment, and everything after # is ignored, but stays in history.</p>
7
<p>You'll quickly come back to the original line. # creates a comment, and everything after # is ignored, but stays in history.</p>
8
<h3>Lesson notes</h3>
8
<h3>Lesson notes</h3>
9
<ul><li>↑ and ↓ to go to previous/next line in history</li>
9
<ul><li>↑ and ↓ to go to previous/next line in history</li>
10
<li>history to view history</li>
10
<li>history to view history</li>
11
<li>!N to repeat a line from history, where N is a number (e.g. !32)</li>
11
<li>!N to repeat a line from history, where N is a number (e.g. !32)</li>
12
<li>!! to repeat the previous command<ul><li>can also be used with other commands, e.g. !! | grep Doc will repeat the previous command and pipe it with grep Doc</li>
12
<li>!! to repeat the previous command<ul><li>can also be used with other commands, e.g. !! | grep Doc will repeat the previous command and pipe it with grep Doc</li>
13
</ul></li>
13
</ul></li>
14
<li>man to open man-page (help page) (e.g. man wc to open man-page for wc command)<ul><li>opens inside a pager, so same navigation with j, k etc. works.</li>
14
<li>man to open man-page (help page) (e.g. man wc to open man-page for wc command)<ul><li>opens inside a pager, so same navigation with j, k etc. works.</li>
15
</ul></li>
15
</ul></li>
16
</ul>
16
</ul>