LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-01-2005, 04:48 PM   #1
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Rep: Reputation: 15
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,
 
Old 06-01-2005, 04:57 PM   #2
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Rep: Reputation: 52
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
 
Old 06-01-2005, 05:37 PM   #3
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
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,
 
Old 06-01-2005, 05:50 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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

Last edited by Tinkster; 06-01-2005 at 08:18 PM.
 
Old 06-01-2005, 05:54 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,752

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
Try looking in the /tmp directory. Are you using cups?
 
Old 06-01-2005, 08:00 PM   #6
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Rep: Reputation: 52
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
 
Old 06-01-2005, 08:17 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 06-01-2005, 10:37 PM   #8
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 06-01-2005, 11:08 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 06-01-2005, 11:49 PM   #10
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
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,
 
Old 06-02-2005, 01:05 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Nuh, that's fine, it's obviously not in the home-dir.

Try a / instead of the ~


Cheers,
Tink
 
Old 06-02-2005, 03:49 PM   #12
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
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,
 
Old 06-02-2005, 03:54 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
In that case modify it to look like this :}

find / -iname "ok4200pcl.ppd"
 
Old 06-02-2005, 04:55 PM   #14
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
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.
 
Old 06-02-2005, 05:19 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
  


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
Apache subdirectory problems shane25119 Linux - Software 2 07-13-2005 10:34 AM
Creating new subdirectory for a C++ project Siavash Programming 2 04-10-2005 03:09 PM
javac compiles all subdirectory tuananhbirm Linux - General 2 03-18-2005 03:58 PM
Clam AV subdirectory search RadonicMan Linux - Software 1 09-06-2004 04:06 PM
sftp subdirectory how to ?? x2000koh Linux - General 1 12-16-2002 01:32 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration