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

14 lines
530 B
HTML
Raw Normal View History

2021-10-04 11:59:52 +00:00
<article id="tips">
2021-09-30 19:30:03 +00:00
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
2021-10-04 18:04:55 +00:00
<h2>Shell tips</h2>
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>
2021-10-04 11:59:52 +00:00
</article>