Code: Select all
history > "worth learning from.txt"
Wade
Code: Select all
history > "worth learning from.txt"
I keep telling myself that I'm not a computer nerd Never took computer classes in school (my high school did not even have a computer). My college department got a single Apple II the semester I graduated.
Okay, it wouldn't do much for me, as I avoid the terminal most of the time. But thanks for letting me know what that command does.
Yes, it does.
The only class I took in school that prepared me for life was a typing class 52 years ago. I was the first male, and only male ever permitted into the class at that time. I told the principal I planned on going into business and figured I needed typing. The actual reason is it was where all the girls were and I was the only boy there. I took two years of typing and later when I entered the military, I was probably the only male that could type, so, they stuck me on the keyboard of all the mainframe systems KSR. That is how I began my education in computers.
Frankly Moem I am with you, I do not get it either ? Specifically because, history is already, and automatically stored in ~/.bash_history, so the above command is redundant, and at least IMO pretty much unnecessary. No tip at all.
#
to the beginning, press enter and then it's easily found with e.g. history | grep '#'
. (The command won't actually be executed when you press Enter, with the #
).export HISTSIZE=10000
to your ~/.bashrc otherwise you'll quickly start losing the old commands off the top of the list. I think the default is 500 or something. Some people have no desire to use the terminal and have nothing to learn from it. I knew the history command. Forgot the location of the file. Knowing that, I can go to Nemo, show invisible, and do the whole thing without the terminal LOL!
Thanks for the tip! BTW, I think you actually want to modify the HISTFILESIZE. The HISTSIZE is the casche that is stored if I understand it correctly.BG405 wrote: ⤴Wed Mar 06, 2024 10:25 pm One thing I've done when I want to "remember" a command which is rarely used but when it is, it's essential for something, is to repeat it but add a#
to the beginning, press enter and then it's easily found with e.g.history | grep '#'
. (The command won't actually be executed when you press Enter, with the#
).
It's also worth appending e.g.export HISTSIZE=10000
to your ~/.bashrc otherwise you'll quickly start losing the old commands off the top of the list. I think the default is 500 or something.