![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| copy contents of one column in another | raman1605 | Shell Programming and Scripting | 4 | 05-12-2008 05:58 AM |
| Script that can Copy a Range of files from Tape to Hard disk | msjazzie | Shell Programming and Scripting | 0 | 08-13-2007 12:47 PM |
| Automatic Copy of File Contents to Clipboard | ilak1008 | Shell Programming and Scripting | 5 | 10-10-2006 08:43 AM |
| Copy selected contents from file | misenkiser | Shell Programming and Scripting | 4 | 10-05-2006 08:12 AM |
| copy folder contents | robsk8_99 | UNIX for Dummies Questions & Answers | 1 | 02-22-2005 03:54 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to Copy Contents from CD to Hard disk
Hello all..
Iam New to Unix Environment. I need to copy .cpio file from CD to a Folder on Sun 5.8 Box. Can anyone give me the commands to execute this ?.. Thanks in advance Ron |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
mount the cd then
cp <location/of/file> <destination/of/file>
__________________
FreeBSD - Opening computers from closed Windows |
|
#3
|
|||
|
|||
|
How to tell the Location of the File ?...
In PC's, we say like d:\ ..... What is the equalent command on Unix ?... thanks Ron |
|
#4
|
||||
|
||||
|
On unix when you mount a disk, you specify a mount point. For example, if I mount /dev/md/dsk/d6 on /opt, then the files would all be under /opt.
Cdrom's under SunOS are usually handled by the volume manager. By default the volume manager will mount under /cdrom/<something> where <something> is a string that it got from the cd. Try the command: df -k and see if you see anything with a "cdrom" in it. |
|
#5
|
|||
|
|||
|
somethign that migrants from windows to (unix
)'s might find confusing is the concept of one single file system hierarchy ( dont mind the spelling, its late). the different drives in windows, C: D: E:, etc etc, is a mistake left over from something never fixed in earlier versions of DOS. DOS has a merge command that will put and E: drive in a C:\somefolder\E which is similar to the UNIX filesystem. every single device in UNIX, be it the monitor or hardrive in unix will be located in the /dev/ directory. so lets say the first IDE drive which would have been C: in windows is mounted as /. this drive is really /dev/hda. probably /dev/hda2 and /dev/hda1 is the boot partition. anyway, if you wanted to copy a file from a cdrom, well, if I wanted to, i would put it in my home directory. so after executing the command mount /dev/cdrom (that should be in your /etc/fstab for convienience) i would execute, cp /cdrom/myfile /home/user1/myfile the file located on your cdrom would then be copied to user1's home directory as 'myfile'. i hope that was clear and understandable. i just re read that and it looks alright. i will read it again and fix anything that dosnt make any sense tomorrow. hope that helped! Last edited by norsk hedensk; 07-06-2003 at 08:02 AM. |
|||
| Google The UNIX and Linux Forums |