Find the answer to your Linux question:
Results 1 to 3 of 3
hi, 1. i av linux O.S on my pc at home please how do i go about copying a file from my root home desktop and pasting it in my ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    1

    copy command

    hi,
    1.
    i av linux O.S on my pc at home please how do i go about copying a file from my root home desktop and pasting it in my user account(desktop)..
    (note both root and user are on the same comp) what commands do i use. i had tried using the cp command but didn't succeed.

    2.
    which command do i use to transfer a file from one user to another user on different computers but on a network.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Have you tried to login as root user or executed su command to gain root privileges?
    Code:
    su 
    cd /home/root/Desktop
    cp filename /home/user_name/Desktop
    I would suggest you to check linuxcommand.org.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    In most distros, /root is root's home directory, so:
    Code:
    su -
    cp /root/Desktop/file /home/user/Desktop
    is probably what you're looking for.
    2.
    which command do i use to transfer a file from one user to another user on different computers but on a network.
    There are a few options for this including rsync and scp.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...