If you want to open any file from terminal, you should issue command like
photos.rar is file I want to open in the directory
~is used for user's home directory.
~/Downloads/photo.rar will be interpreted like
if you are trying to install
.deb file, you should issue
sudo dpkg -i /home/ravi/avast4workstation_1.3.0-2_i386.deb
also, this can be done like this,
sudo dpkg -i avast4workstation_1.3.0-2_i386.deb
remember you can use
cd ~ instead
FILE_NAME.sh can be any executable file.
Note: if path contains special characters like, spaces you should put it between single quote like
'/home/ravi/avast4workstation 1.3.0-2 i386.deb' or you should escape special characters like
/home/ravi/avast4workstation\ 1.3.0-2\ i386.deb
Hope I haven't confused you.