Skip to content

Instantly share code, notes, and snippets.

@xavivars
Created September 10, 2014 10:36
Show Gist options
  • Save xavivars/36ab7b0bdb9bb243f916 to your computer and use it in GitHub Desktop.
Save xavivars/36ab7b0bdb9bb243f916 to your computer and use it in GitHub Desktop.
#!/bin/bash
# crea la carpeta video a l'escriptori, si no existeix
mkdir -p /home/felip/Escriptori/video
# copia tot el que hi ha a DVD_RECORDER a la carpeta VIDEO de l'escriptori
sudo cp -r /media/felip/DVD_RECORDER /home/felip/Escriptori/video
# canvia el propietari de tot el contingut de la carpeta video
sudo chown -R felip:felip /home/felip/Escriptori/video
# canvia els permissos de tot el contingut de la carpeta video
chmod -R a+rwx /home/felip/Escriptori/video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment