Skip to content

Instantly share code, notes, and snippets.

@gardnervickers
Created September 25, 2015 12:11
Show Gist options
  • Save gardnervickers/dddfd447016d03a3edf6 to your computer and use it in GitHub Desktop.
Save gardnervickers/dddfd447016d03a3edf6 to your computer and use it in GitHub Desktop.
mv lib lib2 // Moved the symlink
cp lib2 ~/jars // copied the jars from lib2 to ~/jars
cp -r lib2 ~/jars // recursive copy ^^
cp -r lib2 ~/jars // recursive copy ^^
sudo cp -r lib2 ~/jars // recursive copy ^^ sudo
find lib2 -user root -exec cp {} ~/lib/{} \; // copy jars owned by root to ~/lib in my local
find lib2/ -user root -exec cp {} ~/lib/{} \; // sudo copy jars owned by root to ~/lib in my local
ls lib2
mv lib2 lib // reset lib2 to lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment