Script to display a random unix command along with a short description
command-info.sh file is a bash script that extract the name of the command files from /usr/bin,
prints the name section and first two lines of description section from man page.
The purpose of the script is to teach me a new unix command everytime I press Ctrl+Alt+T or run the terminal
If you want to use the script for the similar reason, please follow the below steps
- Clone or download this repository
- Navigate to the downloaded repo in terminal
- Add execute permission - run command
chmod +x command-info.sh
- Return to home directory and open .bashrc file using vim or some other text editor
- Add complete path of the script command-info.sh at the end of the file
- Run the command
source ~/.bashrc
Tadaa!
Learn a new command everytime you press Ctrl+Alt+T