Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following is an extract of an instruction manual:

If Java is reconfigured after SAV for Linux has already been installed, the JAVA_HOME value in /etc/Symantec.conf must be updated.
This can be done manually, or automatically by running /opt/Symantec/symantec_antivirus/

How do I run What specific commands must I issue? What does the file extension .sh mean?

I am new to Linux and Ubuntu and would welcome detailed instructions on how to run

share|improve this question
up vote 0 down vote accepted

The file extension .sh means it is a shell script. If you dont know what a shell is you can read about it here. Any shell script file can be executed by typing its path (complete or relative) in shell and pressing enter:


In your case the error is giving you complete path to the file So just open Bash and write the following line

share|improve this answer
@ binW: Thanks. What is "complete path"? "relative path"? Examples would be appreciated. – n00b Dec 27 '12 at 14:51

.sh is an extension for a shell script. A shell script is a file that is executed directly run by the "shell". For example, a .c file is compiled by the C compiler like gcc, Turbo C, etc. Similarly there are shells like bash, Bourne shell, etc which are also called as command-line interpreters which execute this .sh file. So, in order to run a .sh file, you can try any of the following at the terminal (the command-line interface) by first going to the directory in which the file is located:

1) For executing using a particular shell:


which is in your case:


If you have installed Ubuntu, you should have bash by default.

2) For executing using the default shell:

chmod +x

which is in your case

chmod +x

Here, chmod is a command to change the file permissions. +x gives executable rights to the user logged in, if permissible, upon the file given as and then


Here, a . indicates the path is the current directory and asks the shell to execute the file gives as filename. These are perhaps the most common methods used to execute shell scripts. There may be other methods too.

share|improve this answer
Great answer, +1 from me. I will only add that if .sh file exports some environment variables, they should be run like this: . or source if you want to export them for your session. I thought I should add this, may be useful. – Milan Todorovic Dec 27 '12 at 15:47
Oh yes, I forgot to mention about those, but anyways, the @n00b seems to just know about executing his file, so I am not editing it now. Thanks for the upvote :) – i08in Dec 27 '12 at 15:50
@ Milan Todorovic and Jobin: Thanks guys for the awesome explanation :) You are both awesome. – n00b Dec 27 '12 at 20:13
@ Milan Todorovic and Jobin: Just to let you know that I had to add the word "sudo" (without quotes) to the command "bash" (without quotes). – n00b Dec 28 '12 at 3:38
Oh yes, if the file is located anywhere other than your /home/adnan path, you would need to add sudo, ie. superuser priviledge, to modify files(assuming your username is adnan) – i08in Dec 28 '12 at 3:58

Open a terminal and do the following.

To mark the file executable if it isn't already

chmod +x /opt/Symantec/symantec_antivirus/

then simply:


share|improve this answer
@ Stephen Martin: Thanks. I shall try it and report back. – n00b Dec 27 '12 at 14:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.