[ubuntu] how to run files?
I downloaded the battlefield 2 server software but i dont know how to run it, ive tried this:
Quote:
can somebody please help me? |
"./home/whatever" means that you're running a RELATIVE path, i.e. the . means "from here". so if you are in say /home/dave and you run it, you're actually telling it to run /home/dave/home/whatever which you can see is clearly wrong. this is a great time to tell you about tab completion too... if you start typing a filename nad hit tab it will fill it in for you, or give you all possible completions. in this case you'd have seen that there was no possible completion as the file would not have existed therem and you'd have been saved typing all that junk out manually.
so basically... just drop the "." |
Quote:
|
Are you sure that's where the file is? Post the output of
Code:
ls -l /home/headhunter |
like i said, use tab completion, you can easily fit a typo in there.... and if you can't find it, it's not there... simple as that.
|
Also, make sure it's executable.
Code:
chmod 755 /path/to/file/you/want/to/run |
besides the 755 rights on this file.. i would in general advise to use the ~ sign.
~ = home dir for the user you are now. so your command should be: sudo ~/ati-driver-installer-8.16.20-i386.run (if that is the name of the file..) or you could do (as suggested here) tab (the key on the keyboard not the word) completion: sudo ~/ati-driver [tab] it will show the right name of the file... then press the enter key to use it. |
thank you all very much for helping me :)
it worked now |
All times are GMT -5. The time now is 10:54 AM. |