lc-shell icon indicating copy to clipboard operation
lc-shell copied to clipboard

A couple suggested small additions (HISTFILESIZE default and "cd -")

Open andrewrs opened this issue 7 years ago • 1 comments

Two additional tidbits that I think students might find valuable:

  • Give an example (probably in "Working with files and folders") of using cd - as kind of like a command line ALT + Tab to cycle back and forth between the current and previous directory
  • Mention (in the "History" section) that Bash defaults to saving a user's last 500 commands. So the command history will be truncated in relative short order if you're a heavy shell user.

andrewrs avatar Dec 12 '18 01:12 andrewrs

I wonder if it would be a bit easier when teaching about history to pipe it into a tail command. This would allow instructors to only show the last ten commands of so. Something like: history | tail -n 10

craigboman avatar Dec 12 '18 22:12 craigboman