Created: 2017 October 11th
Updated: 2021 January 10th
$PATH
outputUse this to nicely format the $PATH
variable:
Use chsh
utility to change your default shell:
List any process running on port 8000
Output will look similar to this.
Then kill it with kill
.
You may find that commands like ll
are under your ~/.bashrc
file,
if not then add the following as an alias:
If you need to set the permission on a file (with chmod
) but don’t
know what the permissions of similar files are like you can use
stat
, the following command displays the permissions of the contents
of the .ssh/
folder:
Tired of having to enter your SSH password each time you want to do a git operation?
Add the following to your ~/.bashrc
file.
Want to search for an entry in your Bash history?
Use Ctrl+r
then enter your search term.
Accidentally added your password as a bash command?
To remove that from the bash history:
Then take the number from the output:
Then delete the line you want removed:
Check your history
again and gone until you do it again.
This will move everything in the Downloads folder to the Videos folder including any folders inside Downloads.