Find the answer to your Linux question:
Results 1 to 3 of 3
Hi- I am taking a linux class at my university and need some help. I am trying to copy a file from my desktop to the /opt directory and keep ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2

    cp command in fedora-PLEASE HELP

    Hi-
    I am taking a linux class at my university and need some help.

    I am trying to copy a file from my desktop to the /opt directory and keep getting "missing destination file operand". I know this is probably really easy but I can't get the syntax of these commands right.

    i've tried:

    cp a/home/tamal/xampp-linux-1.6.2.tar.tar/opt

    cp a/opt/xampp-linux-1.6.2.tar.tar

    and a host of others

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    We don't give answers to homework/classwork questions, but you can try adding the current and new directory locations, such as:

    Code:
    cp /home/current-directory/filename /opt
    You have to have root permissions to write to the the /opt directory.

    If cp doesn't work, try using /sbin/cp as your command.

    Check out man cp for details.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Posts
    2
    First you check your system /opt directory is mounter or not
    Then try following command.

    cp -r a/home/tamal/xampp-linux-1.6.2.tar.tar /opt

    I hope this is helpful to you.

    Regards,
    Sansan

Posting Permissions

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