LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me with correct command in (Terminal) (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-with-correct-command-in-terminal-4175432083/)

shadowkhan 10-13-2012 06:05 PM

Help me with correct command in (Terminal)
 
Respectful Members,

i am using a terminal as.............root@ubuntu

i want to copy a folder from..........user@ubuntu

on single same computer

JaseP 10-13-2012 06:09 PM

You don't need to do it as a root login.

By default you should have either su and/or sudo available. So, open your terminal as the user,... escalate your authority to the root user, and issue a cp command from the start location to the destination location;

sudo cp /home/userdirectory/file.ext /root/

or;

su root
cp /home/userdirectory/file.ext /root/


All times are GMT -5. The time now is 07:29 PM.