The purpose of this doc is to act as a quick lookup guide for me for common tasks instead of having to lookup everything on the net.
Edit in ~/.bashrc
# [ <username>@<hostname> <current directory>] $ <commands.....>
PS1='[\e[1;35m\u\e[m@\e[m\e[1;36m\h\e[m \e[1m\W\e[m] \e[1;35m\$\e\m '
Edit in ~/.bashrc
alias cls='clear'
alias q='exit'
Edit in /etc/default/grub
# To make grub remember last choice
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
# Remove bug/debug messages while bootup or shut down
GRUB_CMDLINE_LINUX_DEFAULT='quiet splash loglevel=3' # loglevel ranges from 0-6, lower loglevel results in a quieter boot
Remember to update grub after editing in the /etc/default/grub
file:
In Ubuntu:
sudo update-grub
To create a virtual environment:
py -m venv /path/to/venv/
To activate a virtual environment:
./venv/Scripts/Activate.ps1
To decative simply type deactivate
in the shell
For authenticity of GitHub error, refer to this