HI,
I am new to Linux.
I can use cp for copying the files 7 directories but I don't know the exact way & what are the things that i must take care while copying files in bulk from 1 place to other.
Please guide me.
Printable View
HI,
I am new to Linux.
I can use cp for copying the files 7 directories but I don't know the exact way & what are the things that i must take care while copying files in bulk from 1 place to other.
Please guide me.
hi,
IF you are new to Linux then I must say please go through this topic.
http://forums.techarena.in/operating...ms/1130583.htm
It consist of all the required basic linux command you need & are useful.
I hope this helps.
cp
Copy file1 to file2, or copy one or more files to the same names under directory. If the destination is an existing file, the file is overwritten; if the destination is an existing directory, the file is copied into the directory (the directory is not overwritten).Code:cp [options] file1 file2 cp [options] files directory
Options
-a, --archive
Preserve attributes of original files where possible. The same as -dpr.
-b, --backup
Back up files that would otherwise be overwritten.
-r, -R, --recursive
Copy directories recursively.
-s, --symbolic-link
Make symbolic links instead of copying. Source filenames must be absolute.
cp command to copy all files and folder.
Cp command with option 'p' is to preserve the mode, ownership and timestamps of the file an the option 'r' is use to copy directory recursively.Code:[root@fedora test]# cd ..
[root@fedora ~]# cp -pr /home/fedoracore5/ test/fedoracore5
[root@fedora ~]# ls test/fedoracore5/
Desktop
[root@fedora ~]# ls /home/fedoracore5/
Desktop
[root@fedora ~]# ls -al /home/fedoracore5/