Have list of paths to your frequently using directories for quick access in your linux terminal.
-
Add a
alias
which runs the bash script with source in your startup file. -
You can find your startup file in your
root ~
.- Startup file for bash shell
./bashrc or ./bash_profile
- If u use zsh
./zshrc
- Startup file for bash shell
-
Add this alias to your startup file
alias dl="source <path to bash script>"
- sample :
alias dl="source /mnt/d/ashwi/College/tools/Dlists.sh"
- sample :
-
In the Dlists.sh file
- Change the path to the txt file where the paths are stored ie
filename=<full path to List.txt file>
- Change the path to the txt file where the paths are stored ie