LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-13-2004, 09:37 AM   #1
Frybyte
Member
 
Registered: Nov 2003
Location: Seattle in a hut
Distribution: Simply mepis and it's soooo nice !!!
Posts: 71

Rep: Reputation: 15
Backwards command book recommendation


There are alot of threads similar to this but none exactly what I am looking for.

I have a few linux books - I am not a computering person.

When I want to do something I try to look it up in one of the books [linux summary commands one of the dummies books etc....]

But none of these works when I don't know what the verbage is.

What I need is a way to find example:

I want to rename a file or files. For me the important word is "rename" but all the books so far do not index the commands that way so I have to spend 5+ minutes logging on looking through this site or others and sometimes I find the answer.

There has to be a book that simply says Rename= and gives the various ways to do it and WHY each one is different.

BTW the man pages are useless in this regard.

Help appreciated- thanks
j
 
Old 03-13-2004, 10:38 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Code:
~
1006>> man -k rename                                                           
Tcl_CommandTraceInfo [TraceCmd] (3)  - monitor renames and deletes of a command
Tcl_FSRenameFile [FileSystem] (3)  - procedures to interact with any filesystem
Tcl_TraceCommand [TraceCmd] (3)  - monitor renames and deletes of a command
Tcl_UntraceCommand [TraceCmd] (3)  - monitor renames and deletes of a command
hrename              (1)  - rename or move an HFS file or directory
lvrename             (8)  - rename a logical volume
mmove                (1)  - move or rename an MSDOS file or subdirectory
mren                 (1)  - rename an existing MSDOS file
mv                   (1)  - move (rename) files
rename               (1)  - Rename files
rename               (2)  - change the name or location of a file
rename               (n)  - Rename or delete a command
vgrename             (8)  - rename a volume group
No, I don't know of a specific thing like what you're talking about, though. Still, those books must not be very well indexed.
 
Old 03-16-2004, 10:39 PM   #3
Frybyte
Member
 
Registered: Nov 2003
Location: Seattle in a hut
Distribution: Simply mepis and it's soooo nice !!!
Posts: 71

Original Poster
Rep: Reputation: 15
Actually this is a perfect example of the not very usefulness of man pages for someone not in computer languages.
You have listed two rename[s]
but type rename into my terminal and the command is not recognized
You may feel that I should know what a logical volume is but I don't have a clue to even begin- AND I have read some of the recommended linux books and own a number of them.

It's why I was hoping there was a backwards books even O'reilly's books don't really work for someone who only speaks American English and not a computer language.

thanks for the try
j
 
Old 03-16-2004, 10:53 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah, I know what you mean. Keep reading them though and they start to turn into something that seems almost like English. It's possible you simply don't have the rename command on your system, I guess. If 'which rename' turns up nothing, it's not on your path and if 'locate rename' doesn't turn up anything, it's not there at all. I've said elsewhere - I hate rename. For ordinary renames, you can just use 'mv'.

And there may be a book like you're looking for - I just don't know it.

I mean, for basic file operations, most any tutorial will give you the basics in a pretty understandable form. Then you just pick up stuff as you go, I guess. Seems like searching here or google would turn up some stuff. Like the 4th hit of searching for 'rename file' turned up this which includes 'mv'. So you could just backwards search, sort of.
 
Old 03-16-2004, 11:07 PM   #5
Nytehawk
LQ Newbie
 
Registered: Mar 2004
Location: Northern Virginia
Distribution: Fedora Core 2
Posts: 29

Rep: Reputation: 15
Try the O'Reilly book, "Linux in a Nutshell". I took your example of rename, looked it up and it was indexed as being on page 362. In fact it is the first entry on that page.

I believe what digiot was trying to show you is that you can use the man command with the -k switch to do an apropos search for the word you know or key off of to find the command you need. In your case, rename, it returned all of those commands that have something to do with performing a "rename".

Anyway, try that book. It might be just what you are looking for. It may not fit every time you need to "reverse lookup" a command, but it does have some good information.

Last edited by Nytehawk; 03-16-2004 at 11:09 PM.
 
Old 03-22-2004, 08:37 PM   #6
Frybyte
Member
 
Registered: Nov 2003
Location: Seattle in a hut
Distribution: Simply mepis and it's soooo nice !!!
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks- I bought the recommended book - it's still in a format that is difficult [mainly what it never explains is WHY you would want to do some of the things it tells you, you can do] but when I look at the pile it's probably the one I'll go to first.
Thanks also for the explanation of the man -k thing which was not clear to me even though I could read the english parts.
So onward.
I've got a different question coming but it doesn't go here.
Thanks again to all.
j
 
Old 03-22-2004, 11:25 PM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by Frybyte
...Thanks also for the explanation of the man -k thing which was not clear to me...
Sorry, I didn't realize I wasn't making sense. But apparently I don't make sense a lot. Thanks, Nytehawk.

As far as why, I have more trouble with the 'which'. There's a thousand ways to do everything and I'm often not sure which is best or what subtle things I'm missing.

I was looking through my bookmarks and some the why-iest things I could find were

What's a computer, UNIX, the net?
Why's 'rm -i' an option and not a default? Hole Hawg, baby!
Why do I have to learn to speak Linux?
Why's the filesystem arranged like it is?
Why's UNIX/Linux designed like it is?

I know you said you've done a lot of reading so maybe more isn't the ticket and maybe you've already seen that stuff anyhow, but maybe it'd be helpful. And if you have specific whys, post them up. I'd really like to see more 'Why' type stuff or 'No, c'mon, really, what IS this?' and less 'My scroll wheel doesn't work'.

Glad you like the book Nytehawk recommended, anyway.
 
Old 03-24-2004, 04:51 AM   #8
steely
Member
 
Registered: Aug 2003
Location: Phoenix AZ
Distribution: Ubuntu 6.06, Suse 10.1
Posts: 37

Rep: Reputation: 15
I looked for a while for this same type of book, and found a great one that I use everyday. It's called the "Linux Command Instant Reference" from Sybex. The ISBN # is 0-7821-2748-7. Do a search at amazon for that number, and you'll find it. I highly recommend it. It lists commands in chapters based on their function. For example, all commands related to dealing with hard disks, tape drive, floppy drives etc are in one chapter. One chapter for networking...etc. It makes it really easy to lookup the command you need without knowing the name.
 
  


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
Book recommendation? cmackay Linux - Newbie 3 01-08-2004 12:25 AM
Book Recommendation jasonmantey Linux - General 9 12-14-2003 02:06 PM
Book Recommendation jasonmantey Linux - Newbie 4 12-14-2003 08:19 AM
book recommendation? mark_2811 Linux - Newbie 3 09-24-2003 06:39 PM
Book Recommendation yyaron Linux - Networking 1 04-28-2001 03:50 AM


All times are GMT -5. The time now is 01:34 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