Unix File Snooping

Vard

Looking for progress
Hey everyone...here's another ?

So I have been reading "OS X Unleashed" at home---I think it is an
older version, pre Jag, but the Unix stuff is still pretty interesting.

I was reading about commands that let you see inside a file, so I
wanted to try something and I need a bit of help.

I am at work (on a PC) and am using SSH to log into my Mac at
home. I am trying to see the contents of my address book at home to
read a phone number that I need---is this even possible?

I tried more, but kept getting an error....

I navigated to my address book directory and did the 'ls' command and
it looks like there is only one, but maybe 2 files in there. ls sends
back:

Address Book.addressbook

is that one or two? and can the more command look inside those?

Or am I just hoping for the impossible.

Thanks.

Later,
Eddie
 
Sure, you can see the bytes of the file by issuing the command "cat [filename]". "Cat" is "concatenate" for short. You're only going to see a bunch of gibberish, though, since the address book file is NOT a plain text, readable file.

And yes, that's one file there, not two.

It would be the same as if you tried to look at a Microsoft Word document with the "type" command way back in the days of DOS. Usually, only the application that created the file can view the file in any sort of legible manner.
 
Thanks EDCC

It has been noted in my head that I need to keep reading my Unix book before I ask goofy things.

Also, the hard drive is working great. You were right. It was taking too long. So I just stop it, restarted and tried it again...took about 1/2 a sec and everything worked perfectly.

It was way easier than I was ready for. Now I have three times the drive space I started with and everything is working great. The coolest part of this is I now have ample space on the two Macs for doing a full clean install of Panther when I get it. That 40 gig drive is going to be put to use as a Carbon Copy Cloner holding place while I format and install.

Thanks for the help with that one.

later,
Eddie
 
Hey, no problem -- just don't get hooked on new hard drives like I did at one point. I added a second hard drive a few years ago, loved it, and wanted more more more... hehe... so I went out and bought an add-on PCI card from Sonnet (the Sonnet Tempo ATA/100) and added TWO MORE drives after that! Between four hard drives, I've got 130GB of space... hehe... and the card will let me add two more drives, I just don't have anywhere else in the computer to put them!
 
Back
Top