LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't "see" .tar.gz files on desktop from terminal (https://www.linuxquestions.org/questions/linux-newbie-8/can%27t-see-tar-gz-files-on-desktop-from-terminal-745935/)

runfast789 08-07-2009 08:02 PM

can't "see" .tar.gz files on desktop from terminal
 
Hello. I'm pretty sure this is a linux question and not specific to Ubuntu 9.04 which I am currently running.
I've downloaded potential printer drivers for my printer (saved to myname/desktop). The installation instructions have me create a directory and move the .tar.gz file into it using terminal. The error I get says

myname@myname-desktop:~$ mkdir lexmark
myname@myname-desktop:~$ mv CJLZ600LE-CUPS-1.0-1.TAR.gz lexmark
mv: cannot stat `CJLZ600LE-CUPS-1.0-1.TAR.gz': No such file or directory

I can see the .tar file and the lexmark folder on my desktop. Am I in the wrong place in the terminal? If I run "dir" in the terminal it lists all the files on my desktop except all of the .tar.gz.


Any help would be appreciated to clear up my error message.

weibullguy 08-07-2009 08:19 PM

Your desktop is generally a directory named Desktop (case sensitive), not myname-desktop.

sandbish 08-07-2009 11:59 PM

One more thing u can do...jst uncompress the .tar.gz file from gui..and after that try to move ionto that folder...wish u all d best

jdkaye 08-08-2009 12:07 AM

Quote:

Originally Posted by runfast789 (Post 3635294)
Hello. I'm pretty sure this is a linux question and not specific to Ubuntu 9.04 which I am currently running.
I've downloaded potential printer drivers for my printer (saved to myname/desktop). The installation instructions have me create a directory and move the .tar.gz file into it using terminal. The error I get says

myname@myname-desktop:~$ mkdir lexmark
myname@myname-desktop:~$ mv CJLZ600LE-CUPS-1.0-1.TAR.gz lexmark
mv: cannot stat `CJLZ600LE-CUPS-1.0-1.TAR.gz': No such file or directory

I can see the .tar file and the lexmark folder on my desktop. Am I in the wrong place in the terminal? If I run "dir" in the terminal it lists all the files on my desktop except all of the .tar.gz.


Any help would be appreciated to clear up my error message.

Is your machine called myname-desktop???? In any event you ran the mv command from your home directory (that's what the "~" means so if the tarball is on your desktop then this command will fail.
Code:

myname@myname-desktop:~$ mv CJLZ600LE-CUPS-1.0-1.TAR.gz lexmark
instead the command should be
Code:

myname@myname-desktop:~$ mv ~/Desktop/CJLZ600LE-CUPS-1.0-1.TAR.gz lexmark
and you need to run that command from your home directory. OTOH, if you run this command
Code:

myname@myname-desktop:~$ mv ~/Desktop/CJLZ600LE-CUPS-1.0-1.TAR.gz ~/lexmark
then it doesn't matter what folder you run it from.
cheers,
jdk

runfast789 08-18-2009 09:24 AM

Thanks everyone. I used jdk's suggestions and got everything to work (well the printer still isn't working but that's another story). Context sensitive was the solution. Thanks again for the quick responses.


All times are GMT -5. The time now is 02:46 PM.