Ubuntu noob here. How do I open a file in a working directory? I have already tried
./MyFile.jpg
And it replies with
bash: ./MyFile.jpg: Permission denied
Now, that got me thinking that I had to go and change the permissions. So I used chmod to make the file permission "rwx" (I'm not sure if making executable permissible is going to do what I want, it just seemed logical) and tried
./MyFile.jpg
But this returned
bash: ./MyFile.jpg: cannot execute binary file
Which makes me think the chmod was not the right way to go. So I changed the permission back so that it was not "rwx", but just "rw-". Now I'm stuck feeling pretty foolish because I can't open a simple file in Terminal. I can open it by not using Terminal and double clicking on the file while on the Desktop, but I want to teach myself how to navigate using the Terminal. I also tried
sudo ./MyFile.jpg
but that didn't work either. Any help?
eog Myfile.jpg
. – Uri Herrera Jan 05 '13 at 17:29.jpg
file? you want to execute an image file? no you cannot. – nickanor Jan 05 '13 at 17:30How would I discover that "eog" is the program I need to open this file?
– Izkata Jan 06 '13 at 02:50file MyFile.jpg
returns useful information to search for a program that could handle this sort of file. – math Jul 17 '13 at 14:07