Linux terminal commands replaced with harry potter spells
To use new commands in every terminal and in different terminal sessions type this row into your ~/.bashrc or ~/.zshrc
. PATH_TO_SPELLS_SCRIPT
For example, if I downloaded this project to my home/ folder, the command to put into bashrc would be:
. /home/spellcmds/.spells.sh
If you want to run the script in a single terminal session you just have to go to the location where you've downloaded the project and run
. PATH_TO_PROJECT/.spells.sh
The same way like above one, if I downloaded the project to my home/ folder, I have to type:
. /home/spellcmds/.spells.sh
or
. ~/spellcmds/.spells.sh
You can use source command as well so:
source ~/spellcmds/.spells.sh
- To xkill process:
avadakedavra
- To clear screen:
obliviate
- To change directories:
apparate $1
- To exit terminal:
nox
- To copy files:
horcrux $1 $2
- To list files:
lumos
- To view a single file:
revelio $1
- Create directory
accio $1
- Move file
wingardium_leviosa $1 $2
- To add universal file access:
alohomora $1
- To tail a file:
telehanda $1
- To go up one level of the directory tree:
ascendio
- Sleep terminal
stupefy $1