- Create /bin folder in /home directory - Go to /home/user directory - Open terminal and type the following command vim .bashrc Note: You can open .bashrc file in any editor. - Add the following line in .bashrc file export PATH=$PATH:~/bin - Save the changes in .bashrc file - Go to ~/bin folder and create any file Ex: touch uiautomatorviewer Format : touch filename - Open file and enter the following code Ex: #!/bin/bash echo "Message"; /home/user/tools/uiautomatorviewer - Save the file and change it to executable format chmod +x filename - Restart the terminal - Now enter the filename in any directory Enjoy !!!!!!!! Regards and Thanks, Gokul Karthik M Software QA Engineer Email : gokul.hotspot@gmail.com Phone : +91 99441 70730
I am posting here that what I have experienced in Industry Life and Personal life. I hope it will help you in some moment where you struggle with something like I was.