LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where is my subdirectory (https://www.linuxquestions.org/questions/linux-newbie-8/where-is-my-subdirectory-329313/)

blotch 06-01-2005 04:48 PM

where is my subdirectory
 
Hello All,

I think I've downloaded a Linux printer driver for my Oki B4250 from the Oki.co.uk website. It's only 8kb so the download was over in a flash.

I had to 'find files', using KDE, to locate the download. This was the response: 'ok4200pcl.ppd in subdirectory tmp/kde-jennifer/...'

I imagine that tmp means temporary; and jennifer is the user name of the computer I'm using. I haven't made any directories at all in my newly installed distribution (Libranet) so where the subdirectory could be I have no idea.

How do I find it, please? And what do I do with it when it's found?

Thanks,

shane25119 06-01-2005 04:57 PM

did you look in your home directory? That is where the driver should save by default which would be located at /home/yourname Other than that go into the command line and type whereis drivername.


Hope this helps
Shane

blotch 06-01-2005 05:37 PM

Hi Shane,

This is where I show my newbieness! I opened a Konsole window and typed: '/home/jennifer' and was told that this was a directory. So I typed: 'ls -l /home/jennifer' and got a list of 4 things, none of which were the download.

I then typed in 'whereis ok4200pcl.ppd' and got the answer 'ok4200pcl'. Nothing else.

What does this mean, please?

Thanks,

Tinkster 06-01-2005 05:50 PM

Quote:

tmp/kde-jennifer/.
If that's quoted correctly it should be somewhere in your home,
try
find ~ -iname "*ppd"

More likely (given the kde-jennifer) it's under
/tmp/kde-jennifer


Cheers,
Tink

michaelk 06-01-2005 05:54 PM

Try looking in the /tmp directory. Are you using cups?

shane25119 06-01-2005 08:00 PM

I get that jennifer is the host name, is that your name? the home directory will be /home/name where name is your username that you are currently logged in under


Shane

Tinkster 06-01-2005 08:17 PM

Quote:

Originally posted by shane25119
I get that jennifer is the host name, is that your name? the home directory will be /home/name where name is your username that you are currently logged in under


Shane

You're getting wrong... look at /tmp (if you're a KDE user,
that is) ... you'll find kde-<username> dirs there, not
kde-<hostname>.


Cheers,
Tink

blotch 06-01-2005 10:37 PM

Hi fellas,

Okay, Jennifer is a username - my wife's name.

I've looked in the /tmp directory. This holds 'kde-jennifer', 'ksocket- jennifer', 'mcop-jennifer' and 'ssh -XX5X2rPf'.

ls -l on /tmp/kde-jennifer gives 'konqueror-crash-51lRKa.l', 'ksycoca', and 'ksycocastamp'.

When I typed '~ -iname "*ppd"' I was told that it was a directory. ls -l shows my download isn't there.

I'm not using cups as I don't know how to. However, I've read my download instructions again and I have to copy the PPD to the '/usr/share/cups/model' directory. Can this be done even if we don't know where the download file is?

I take it that I would phrase the command like this: /jennifer/share/cups/ok4200pcl.ppd. Would this be right?

Thanks for your willingness to help

Tinkster 06-01-2005 11:08 PM

Quote:

Originally posted by blotch
Hi fellas,

Okay, Jennifer is a username - my wife's name.

I've looked in the /tmp directory. This holds 'kde-jennifer', 'ksocket- jennifer', 'mcop-jennifer' and 'ssh -XX5X2rPf'.

ls -l on /tmp/kde-jennifer gives 'konqueror-crash-51lRKa.l', 'ksycoca', and 'ksycocastamp'.

When I typed '~ -iname "*ppd"' I was told that it was a directory. ls -l shows my download isn't there.

I'm not using cups as I don't know how to. However, I've read my download instructions again and I have to copy the PPD to the '/usr/share/cups/model' directory. Can this be done even if we don't know where the download file is?

I take it that I would phrase the command like this: /jennifer/share/cups/ok4200pcl.ppd. Would this be right?

Thanks for your willingness to help

Got me wrong ... You're not supposed to type
~ -iname "*ppd"
but
find ~ -iname "*ppd"




Cheers,
Tink

blotch 06-01-2005 11:49 PM

Hi Tinkster,

Sorry about that. I've now typed in the correct command but am just returned to the terminal prompt. I start with 'jennifer@libranet:~$' then type in the request, but just go back to 'jennifer@libranet:~$'

Should I be adding anything else before hitting Enter key?

Cheers,

Tinkster 06-02-2005 01:05 AM

Nuh, that's fine, it's obviously not in the home-dir.

Try a / instead of the ~


Cheers,
Tink

blotch 06-02-2005 03:49 PM

Well, Tink, I don't know whether I'm coming or going! I substituted a / for the ~ and the screen immediately scrolled through what must be all the files in the computer. It went so fast that I couldn't read them.

The files seemed to be in alphabetical order but, unfortunately, I can't scroll backwards from the Windows files, the last of the list. So I don't know if my download is in there or not.

Any ideas?

Thanks,

Tinkster 06-02-2005 03:54 PM

In that case modify it to look like this :}

find / -iname "ok4200pcl.ppd"

blotch 06-02-2005 04:55 PM

Hi again,

Well, the screen still scrolls rapidly to the list end and I still can't scroll backwards. However, there is a line, now, at the bottom of the screen that says 'no such file or directory'. Very nice...

I'm starting to think that the download didn't download, or at least not properly. I think i ought to go back to the Oki uk website and try it again. I didn't see any method of saving the download to a particular file and, as I have an 'empty' Linux installation, there may be no file to download it to, anyway.

This make any sense?

I really appreciate your willingness to help.

Tinkster 06-02-2005 05:19 PM

You must be doing something silly/stupid, sorry.

find /
will tell find to start at the root-directory

-iname "ok4200pcl.ppd"
will only report files back that EXACTLY match
that name. There's no way you're getting screens
full of output unless you've downloaded the file a
gazillion times into varied locations.

A literal (copy & paste it into an xterm, preferably
one in which you're root to avoid ERROR messages
about "permission denied")
find / -iname "ok4200pcl.ppd"
will ONLY report back files of that name,
disregarding capitalisation.


Cheers,
Tink


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