History can be reset with some command but after the operation, if you logout and login in your shell, you will see the same history a. home/franhesco/.bash_history 1) Remove Linux history command When echoed, it returns the full path and name of the user’s history file, like so: $ echo $HISTFILE bash_history file (located in the user’s home directory). Bash's history featureīash’s history function depends on a variable called HISTFILE, normally set to the current user’s. The default file is ~/.history or ~/.bash_history. Bash and other shells may use this history library. The GNU history library is able to keep track of those lines, associate arbitrary data with each line, and utilize information from previous lines in composing new ones. Many programs read input as a single line at a time. Some Linux distributions may clear the screen when you logout but others do not. You may want to clear the history file and the screen for security reasons.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |