Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 988 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 988 Bytes

command-tutor

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

Steps:

  1. Clone or download this repository
  2. Navigate to the downloaded repo in terminal
  3. Add execute permission - run command chmod +x command-info.sh
  4. Return to home directory and open .bashrc file using vim or some other text editor
  5. Add complete path of the script command-info.sh at the end of the file
  6. Run the command source ~/.bashrc

Tadaa!
Learn a new command everytime you press Ctrl+Alt+T