LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mv: cannot stay 'firefox': No such file or directory ??? (https://www.linuxquestions.org/questions/linux-newbie-8/mv-cannot-stay-firefox-no-such-file-or-directory-4175530669/)

Radicus 01-11-2015 02:21 AM

mv: cannot stay 'firefox': No such file or directory ???
 
I'm trying to move a new version of Linux into the opt file through sudo but by putting "sudo mv Firefox /opt/firefox34" AND without the 34 at the end but all its saying is "sudo: unable to resolve host name --minty fresh-- mv: cannot stay 'firefox': No such file or directory" but I'm sure I downloaded the new version of Firefox! Now I can't use the Internet!

lemon09 01-11-2015 03:24 AM

I think it should have been "mv" instead of "my"

Radicus 01-11-2015 03:35 AM

thats what I meant.

lemon09 01-11-2015 03:37 AM

Within the firefox directory you can directly click on that firefox/firefox-bin icon to start firefox locally. The only difference is other users won't be able to access the firefox in this way.

Radicus 01-11-2015 03:43 AM

How do I get to the firefox directory? I tried finding firefox in my bin but it wasn't there. I tried moving firefox to my bin and it said I didn't have permission to do that! (really dumb person here, can't figure it out)

lemon09 01-11-2015 04:25 AM

Quote:

Originally Posted by Radicus (Post 5299010)
How do I get to the firefox directory? I tried finding firefox in my bin but it wasn't there. I tried moving firefox to my bin and it said I didn't have permission to do that! (really dumb person here, can't figure it out)

If you have downloaded firefox from the internet then it should have been in the Downloads directory (I hope you have that directory), though its not the same with all the distros. To move the firefox application to /bin you need to be the root user.

If you have locate command installed in your system then use the code
Code:

$ locate firefox
to find out where it is.

I would suggest to give us the following information:
Code:

$ which firefox
$ locate firefox

Just go to a terminal and type the commands one by one. Then just post the output.

average_user 01-11-2015 07:32 AM

Quote:

Originally Posted by lemon09 (Post 5299014)
I would suggest to give us the following information:
Code:

$ which firefox
$ locate firefox

Just go to a terminal and type the commands one by one. Then just post the output.

Sure which command will do the job here but I prefer type builtin to check for executable location. The first reason is that type can also say whether a command in question is a shell builtin. Compare:

Code:

$ type -a [
[ is a shell builtin
[ is /usr/bin/[
[ is /bin/[
$ which -a [
/usr/bin/[
/bin/[

The second reason is that which
Quote:

is a broken heritage from the C-Shell
See this post if you're interested why.

273 01-11-2015 07:37 AM

Quote:

Originally Posted by Radicus (Post 5298988)
I'm trying to move a new version of Linux into the opt file through sudo but by putting "sudo mv Firefox /opt/firefox34" AND without the 34 at the end but all its saying is "sudo: unable to resolve host name --minty fresh-- mv: cannot stay 'firefox': No such file or directory" but I'm sure I downloaded the new version of Firefox! Now I can't use the Internet!

I am sorry but this is just plain confusion.
Do you mean you are trying to use a new version of Firefox? If so then why? Which distribution are you using? The best way to keep your Linux system functional and up to date is to use packages from the distribution rather than downloading them separately. So is there a specific reason you need or want a version of Firefox not available to your distribution?


All times are GMT -5. The time now is 10:43 PM.