[Linux Hacking] Terminal : .bash_history and .bashrc
Channel:
Subscribers:
17,500
Published on ● Video Link: https://www.youtube.com/watch?v=t5ZTOQg4rJs
/*--GOODLUCK--*/
/*Get(Free,Donate)*/
//
$history : View history of commands ran in terminal.
$history -w [file.txt]: save/export to a file txt.
$history [Angle brackets] [file.txt]: save/export to a file txt, with line number.
//
Note: Your history of commands ran in terminal
stored in file /home/user/.bash_history
.bash_history
and defaults(/home/user/.bashrc):
.bashrc
max commands reused = 1000 commands
max line = 2000 lines
code:
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
//
You can change it.
unlimited
HISTSIZE=
HISTFILESIZE=
//test with HISTSIZE= 2(max reused is 2 last )
Other Videos By 1OP10
Tags:
ubuntu os
linux os
gimp photo editor
inkscape vector editor
blender 3D editor
qt creator
.bash_history
.bashrc