skip to Main Content

I’m in a mac trying to learn terminal and i tried many deferent ways to copy my files and i just get the usual usage: cp [-R [-H | blablabla.

I’m proficient on windows and is super similar to terminal but i’m new here so please help.

I’m trying:
cp /Users/l3ny/OneDrive/PS Settings/Keyboard/l3ny.kys … /Users/l3ny/Library/Application Support/Adobe/Adobe Photoshop CC 2017/Presets/Keyboard Shortcuts

I did tried with ~ at the beginning of source and destination but failed, also without the …. in between src and des and failed too.

I accomplish this task on windows like this:
Copy-Item “$SDKeyboar” “$CPhKeys” -recurse -force #with the path in a variable obviously.

also do you set var on terminal like this? my_var=longUrlVar . without spaces?

thank you guys.
enter image description here

2

Answers


  1. Try this… first set up the source where you are copying from:

    src="/Users/l3ny/OneDrive/PS Settings/Keyboard/l3ny.kys"
    

    then run:

    ls -l "$src"
    

    And it should give you some sensible output. Stop if it doesn’t.

    Now set up the destination:

    dst="/Users/l3ny/Library/Application Support/Adobe/Adobe Photoshop CC 2017/Presets/Keyboard Shortcuts"
    

    then run:

    ls -ld "$dst"
    

    and it should give you some sensible output. If it doesn’t, it probably means the destination directory doesn’t exist, in which case, create it with:

    mkdir -p "$dst"
    

    Then you should be able to do:

    cp "$src" "$dst"
    
    Login or Signup to reply.
  2. This worked for me

    mv ~/Desktop/GloryHub.xcodeproj ~/AppleXcodeProjects/pjdigitalpool_ios/GloryHub.xcodeproj
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search