how to copy
Is it possible to copy files from directory of one user to directory of another user in linux????if so how do i do it??.i am new to linux....please help me out. thank u in advance.
|
Welcome to LQ
You can do this as root. Once copied, just chown the files to the user. Code:
man chown Or you can create a group containing all the users which are allowed to share files with each other. http://www.cyberciti.biz/faq/linux-s...red-directory/ Kind regards |
If the destination user has permission to read the source file, then you don't need to be root and you don't need chown. Just log in as the destination user and use the cp command as usual to copy the files you want.
|
cp is your friend here.
$ man cp easy to learn just read up on it. |
You might want to preserve the timestamps of the files (especially the last modified times); cp has an option for that.
|
reply
thanks alot...........
that was very useful. |
And the actual solution to your question:
Code:
cp -v /home/username/* /home/otheruser If the manual is too much of a nerd-literate assault to the brain, try searching a relevant 'howto' in a search engine ('howto cp'), or ask back here. Welcome and good luck! |
Quote:
|
All times are GMT -5. The time now is 04:16 AM. |