Posted by: binny88 | September 18, 2009

How to run .sh files in LInux

If you have ever encountered those strange files with a .sh tag and didn’t know what they were meant for, you have come to the right place.

A .sh file is a script files similar to a batch file in Windows. They are used to execute programs or start the execution of programs.

To run them simply fire up a terminal (Applications->Accessories-> Terminal). Remember you have to be root to execute these files.

  1. Change to the directory in which the file is situated (cd /home/myfoldername/folder/)
  2. Type sudo ./pkgename.sh wher pkgename is the name of the file.
  3. Type the password and you are ready to go.

Note: sudo is used only  for Ubuntu based distros  for others use su.


Leave a response

Your response:

Categories