|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How to copy all content of a directory
Okei guys
I'm pretty new to linux. I know I use cp to copy files, but how can I copy all files from one directory to another? Also, how can I create a sysbolic link? Like I said, I'm new to this. Be gentle with me ![]()
__________________
-- Tomi Kaistila -- Developer's Journal The more you learn, the more you know. The more you know, the more you forget. The more you forget, the less you know. |
|
#2
|
||||
|
||||
|
Instead of typing all possible options you have for using cp and ln, I'll let you in on a little secret... To almost every 'program' you have in Linux, you can view the manpage for that 'program'. It's as easy as entering 'man cp' in your favourite shell. Or maybe even 'cp --help'. That'll give you lots of information on how to use it...
So use the wildcard with cp * or some option to copy multiple files, and ln-s to create symbolic links. Happy reading... ![]() //NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#3
|
||||
|
||||
|
Great! The last time I did did a smart manpage overview I received over 1000 lines of reading...
![]() |
|
#4
|
|||
|
|||
|
Make sure you check out cp -r and ln -s
__________________
Is it just me or is it cold in here? |
|
#5
|
|||
|
|||
|
>> check out cp -r
Should it be cp -R? |
|
#6
|
||||
|
||||
|
Yes, it should be cp -R
What you want is: cp * destination_path or if it has directories within to copy too: cp -R * desination_path |
|
#7
|
|||
|
|||
|
Quote:
Ugh, sorry, typo. |
|
#8
|
|||
|
|||
|
RE: how to copy files (all files in a directory and not changing a thingH
I would suggest the
cp -a command to do coping if you need a real copy (symlinks stay symlinks - won't happen with cp -R !!! ![]() |
|
#9
|
||||
|
||||
|
Thanks people, I got it.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > How to copy all content of a directory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|