Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running avg anti virus on linux and I'm using only the terminal. So sudo avgscan / -a -H -c scans the whole disk, is there a way to scan just a specified folder (also scans for the folders within said folder)?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

To launch The AVG Anti-Virus on Ubuntu, run this command from the terminal:

sudo avgctl --start

Here are some useful scanning commands:

To scan a specific folder, use this command by replacing "folder_name" with the folder you want to scan with AVG:

sudo avgscan -H /folder_name

To download an update:

sudo avgupdate -d

To update the current virus database, use one of these commands:

sudo avgupdate --priority 1 sudo avgupdate --priority 2 sudo avgupdate --priority 3 sudo avgupdate --priority 4 sudo avgupdate --priority 5

1 - Critical update

2 - Virus update

3 - Recommended update

4 - Program update (default)

5 - Optional update

To download an update:

sudo avgupdate -d

For more help about using AVG, run this command:

sudo avgscan -h

Note: To stop the scan process, press Ctrl + C in the terminal.

share|improve this answer

is there a way to scan just a specified folder

Yes, simply give it the folder path instead of the / you are using now.

For example:

sudo avgscan /home/shelby -a -H -c
share|improve this answer
+1 for mentioning that the full system scan was done using /, I was looking for some sort of specific command –  Jaime Hablutzel Jan 23 at 22:25

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.