LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2005, 04:48 PM   #1
shokora
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
[ubuntu] how to run files?


I downloaded the battlefield 2 server software but i dont know how to run it, ive tried this:

Quote:
headhunter@headhunter:~$ sudo ./home/headhunter/ati-driver-installer-8.16.20-i386.run
sudo: ./home/headhunter/ati-driver-installer-8.16.20-i386.run: command not foundheadhunter@headhunter:~$
but as you can see, that doesnt really work

can somebody please help me?

Last edited by shokora; 09-22-2005 at 04:49 PM.
 
Old 09-22-2005, 05:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
"./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 "."
 
Old 09-22-2005, 05:09 PM   #3
shokora
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
headhunter@headhunter:~$ sudo /home/headhunter/ati-driver-installer-8.16.20-i386.run
sudo: /home/headhunter/ati-driver-installer-8.16.20-i386.run: command not found
same thing
 
Old 09-22-2005, 07:01 PM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Are you sure that's where the file is? Post the output of

Code:
ls -l /home/headhunter
 
Old 09-23-2005, 03:51 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 09-23-2005, 04:11 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Also, make sure it's executable.
Code:
chmod 755 /path/to/file/you/want/to/run
 
Old 09-23-2005, 04:20 AM   #7
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
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.
 
Old 09-23-2005, 06:14 PM   #8
shokora
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
thank you all very much for helping me
it worked now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu How to run Python script on Login? warnetgm Linux - General 14 03-13-2012 07:11 PM
ubuntu files (dont know what im doing) boxerboy Linux - Newbie 9 08-17-2005 10:41 AM
View/Run and/or Transfer between Ubuntu and XP Tristan9669 Linux - Newbie 1 08-09-2005 05:34 PM
Ubuntu cant run X on my lappy munkymonkjr Linux - Laptop and Netbook 1 12-18-2004 01:33 AM
How do you decompress files, or run files such as the Netscape 6 Uninstaller in RH7.2 oudent Linux - Newbie 1 11-19-2001 01:11 AM


All times are GMT -5. The time now is 04:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration