[
143
]
So, you might be wondering, where
is this history information actually stored?
Check out the
.bash_history
file, which is found in your home directory (or
/root
for the
root
user). When you exit your shell, your history is copied to that file. If you
remove that file, you're effectively clearing your history. I don't recommend you
make a habit of that, though. Having a history of commands is very useful, especially
when you may not remember how you solved a problem last time. History in Bash
can save you from looking up a command again. To find out more about what the
history
command can do, check out its man page with
man history
.
Learning new tricks with the command line that allow me to work more efficiently is
a great feeling, at least for me. In the next section, we'll explore some useful tricks we
can utilize while working with the shell.
Do'stlaringiz bilan baham: |