2.0 KiB
2.0 KiB
101
Get Time and Date for History command
Send:
HISTTIMEFORMAT='%Y-%m-%d %T " && history
Or make it permanent:
nano ~/.bashrc
search for HISTCONTROL
and under it enter:
HISTTIMEFORMAT='%Y-%m-%d %T "
save and should now be permanent
See Matrix
Install:
sudo apt-get install -y cmatrix
Run:
cmatrix
To Uninstall run:
sudo apt-get purge -y cmatrix
GNOME Terminal Hide/Unhide MenuBar
to Hide send and restart the terminal:
gsettings set org.gnome.Terminal.Legacy.Settings headerbar true
to Unhide send and restart the terminal:
gsettings set org.gnome.Terminal.Legacy.Settings headerbar false
Shotcuts
Go to the end of the line | CTRL + I
Go to the begining of the line | CTRL + A
Delete all line | CTRL + U
sort results in columns | cmnd | column -t
Add Custom Folder to .bashrc
Edit bashrc:
nano ~/.bashrc
at the end of the file add:
if [ -f ~/.sthope_scripts/.bash_aliases ]; then
. ~/.sthope_scripts/.bash_aliases
fi
export PATH=$PATH:~/.sthope_scripts/commands/
Save and reboot