How do I view a script in Linux?

How do I view a script in Linux?
Answer
2 Answers
  1. Use the find command for it in your home: find ~ -name script.sh.
  2. If you didn’t find anything with the above, then use the find command for it on the whole F/S: find / -name script.sh 2>/dev/null. ( 2>/dev/null will avoid unnecessary errors to be displayed) .
  3. Launch it: /<whatever_the_path_was>/script.sh.
22 февр. 2017 г.
 

Tìm kiếm

Back
Top