Results 1 to 9 of 9

Thread: [pc] no work in terminal as command

  1. #1
    Join Date
    Jun 2011
    Beans
    20

    [pc] no work in terminal as command

    this is part of what I was trying to do: sudo cp -r $home [problem is I know very little aboutr ubuntu]
    thank you for any help

    auspot

  2. #2
    Join Date
    Feb 2011
    Beans
    9

    Re: [pc] no work in terminal as command

    If your intention is to copy your home directory you should provide a destination where to copy the files. You should run -
    sudo cp -r $HOME destination_directory

    For any command, you can see the usage from the manpages. To do that, run
    man command
    For example: man cp

    Arun
    http://oldpapyrus.wordpress.com/

  3. #3
    Join Date
    Jun 2011
    Beans
    20

    Re: [pc] no work in terminal as command

    Quote Originally Posted by auspot View Post
    this is part of what I was trying to do: sudo cp -r $home [problem is I know very little aboutr ubuntu]
    thank you for any help

    auspot
    this is what is happening when I try to use the cp

    bill@bill-ET1831:~$ sudo cp-r $home/desktop/SlicknesS-black/usr/share/themes
    [sudo] password for bill:
    sudo: cp-r: command not found
    bill@bill-ET1831:~$

  4. #4
    Join Date
    Jan 2013
    Beans
    525

    Re: [pc] no work in terminal as command

    There has to be spaces in there seperating the two locations.
    So it's actually "sudo cp -r /desktop/SlicknesS-black /usr/share/themes" $home isn't needed.

  5. #5
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: [pc] no work in terminal as command

    Quote Originally Posted by ManamiVixen View Post
    There has to be spaces in there seperating the two locations.
    So it's actually "sudo cp -r /desktop/SlicknesS-black /usr/share/themes" $home isn't needed.
    That slash in front of "desktop" is an error unless you've created a non-standard directory tree. The usual desktop location is within $HOME (aka ~) and the directory name is capitalized, so it should be "~/Desktop/SlicknesS-black" or alternatively "Desktop/SlicknesS-black" if you have a standard system and are working in your home directory...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  6. #6
    Join Date
    Jun 2011
    Beans
    20

    Re: [pc] no work in terminal as command

    sudo cp-r $home/desktop/SlicknesS-black/usr/share/themes
    sudo chmod 755 /usr/share/themes/SlicknesS-black/SslicknesS-black.jpg

    This is what I was trying to do. Copy from you tube video

    Thanks for the info but nothing has worked so far.

    my system does not reconize the cp command. Is there a way to get system to work with the
    cp commnad?

    auspot

  7. #7
    Join Date
    Jun 2011
    Beans
    20

    Re: [pc] no work in terminal as command

    os is ubuntu 12.04

  8. #8
    Join Date
    Jan 2013
    Beans
    525

    Re: [pc] no work in terminal as command

    sudo (SPACE) cp (SPACE) -r (SPACE) /home/(your user name)/Desktop/SlicknesS-black (SPACE) /usr/share/themes
    sudo (SPACE) chmod (SPACE) 755 (SPACE) /usr/share/themes/SlicknesS-black/SslicknesS-black.jpg

  9. #9
    Join Date
    Jun 2011
    Beans
    20

    Re: [pc] no work in terminal as command

    Thanks for all the info.
    I was copying from a video on youtube for the 4 or 5 things you want to do when you install ubuntu 12.04
    I did not have any problems downloading 12.04 and copying to a disc and then loading to computer, worked fine.

    Thanks
    auspot

Bookmarks

Posting Permissions

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