View Single Post

   
  #4 (permalink)  
Old 01-12-2008, 05:31 AM
cljlk
 
Posts: n/a
Default Re: copy files, the mode is crw-rw-rw-

Thanks!!

gurg wrote:

> In article <bk06a7$mks$1@bob.news.rcn.net>, cljlk@hotmail.com says...
>
>>Is it possible that I can copy files their mode is crw-rw-rw-, the file
>>is in /dev directory. Thanks.

>
>
> The "c" stands for "character". Those aren't normal files. Those are
> special files that represent system devices, specifically the devices
> that process one byte/character at a time, like terminals and modems.
> You'll see "b" (for "block") files, too. Those are devices that process
> blocks of bytes at a time, like disk partitions. (Remember: In Unix,
> pretty much everything is a file.)
>
> You can't use cp to copy those. If you try to cp a special file, cp
> will attempt to copy to or from the device the file represents, not the
> actual file itself.
>
> I believe you can tar them up and then untar them somewhere else. Check
> the tar options, though.


Reply With Quote