QUOTE(Fantasia @ Jul 31 2010, 10:29 AM)
Thanks a lot!!!!
Added on July 31, 2010, 2:36 pmI still got problem XD
I'm learning about copy, move and remove file from
hereCan you explain or give me a more specific example instead of the general example shown in the guide?
The command that I don't understand are listed below.
1. cp file1 file2 file3 directory
2. cp file1 dir1 (what's the difference between this and cp file1 file 2?)
3. cp -R dir1 dir2 (what's the difference between between this and cp file1 file 2?)
4. mv file1 file2 file3 dir1
5. mv dir1 dir2 (what's the difference between this and mv file1 file2?)
6. rm -r dir1 dir2 (what's the difference between this and rm file1 file2?)
Thank you.
1. Copy file1, file2, file3 from your working directory into destination directory
2. Copy file1 into dir1. Difference with "cp file1 file2" is that it copies file1 and file2 within the same directory
3. copies directories along with its contents. not the same with cp file1, file2 because it copies whole folders instead of single files
4. Moves files file1, file2, and file3 into dir1
5. command not valid because for this you have to use mvdir instead of mv. mv only for files
6. deletes contents of folders dir1 and dir2 recursively, which means deletes the directory itself along with contents. "rm file1 file2" only deletes file1 and file2 within your working directory.