openbsd-webzine/issues/issue-1/50_TIPS.html

13 lines
516 B
HTML
Raw Normal View History

2021-09-26 19:28:07 +00:00
<!-- SECTION -->
2021-09-30 19:30:03 +00:00
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
2021-09-29 21:44:02 +00:00
<h1>Shell tips</h1>
2021-09-26 19:28:07 +00:00
<p>
With the default shell ksh, you may have noticed typing
<code>history</code> would only display the last 10 lines of the
history. This happens because history is an alias for the command
2021-09-30 16:37:57 +00:00
<code>fc -l</code> which by default only displays the last 10 lines.
2021-09-26 19:28:07 +00:00
Giving a number as a parameter to this alias will display the
history from that number. Use <code>history 1</code> to display
2021-09-30 16:37:57 +00:00
the complete history.
2021-09-26 19:28:07 +00:00
</p>