Simple Unix Question ...
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Simple Unix Question ...

  1. #1
    Join Date
    Oct 2002
    Posts
    284

    Simple Unix Question ...

    Hello all..
    i need to copy a file from CD to Hard Disk on sun 5.8.

    The Equvilent in DOS is
    D:\> copy *.* c:\test\

    What is the Equvilent command in Unix ?...

    any help is appreciated.

    Thanks
    Ron

  2. #2
    Join Date
    Jan 2002
    Location
    Up s**t creek
    Posts
    1,525
    cp -r target destination

    eg.

    cp -r * /vol/disk/.
    Jim
    Oracle Certified Professional
    "Build your reputation by helping other people build theirs."

    "Sarcasm may be the lowest form of wit but its still funny"

    Click HERE to vist my website!

  3. #3
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    Hi Ron,

    Before you copy you need to mount cdrom, after mounting use the following command to copy files from cdrom to root(/) filesystem under cdrom_files directory.


    # mkdir cdrom_files
    #cd /cdrom
    # cp * /cdrom_files/.

    regards
    anandkl
    anandkl

  4. #4
    Join Date
    May 2002
    Posts
    2,645
    Originally posted by anandkl
    Before you copy you need to mount cdrom, after mounting use the following command to copy files from cdrom to root(/) filesystem under cdrom_files directory.
    # mkdir cdrom_files
    #cd /cdrom
    # cp * /cdrom_files/.
    Mount the cdrom? That is true in the RARE instance Solaris Volume Management does not automatically mount the cdrom for you. Now, if the original poster does not know how to do a simple copy, what you makes you think he knows how to mount a file system? Your answer, although technically correct, is useless.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width