Skip to content

Instantly share code, notes, and snippets.

@DianaDias
Forked from robertopc/shell-commands.sh
Created June 22, 2016 14:39
Show Gist options
  • Save DianaDias/ce55622406446264f99222a04c16fd21 to your computer and use it in GitHub Desktop.
Save DianaDias/ce55622406446264f99222a04c16fd21 to your computer and use it in GitHub Desktop.
Linux Shell Commands CheatSheet
# Permissão 644 em lote para arquivos
$ find pasta-onde-estao-os-arquivos -type f -exec chmod 644 {} \;
# Permissão 755 em lote para pastas
$ find pasta-onde-estao-os-arquivos -type d -exec chmod 755 {} \;
# Recupera pasta encriptada
$ sudo ecryptfs-recover-private
# Adicionar usuário ao grupo
$ sudo addgroup user group
# Criar symlink
$ ln -s /path-source/ /path-destino/
# Remover symlink
$ unlink name
# Pegar id das unidades de disco
$ sudo blkid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment