Last active
January 28, 2021 16:38
-
-
Save leonardoAlonso/a680569b1cb1cd9747790bb2b0d1223c to your computer and use it in GitHub Desktop.
Comandos utilies linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Eliminar usando regex | |
| ls | grep -P "regex" | xargs -d"\n" rm | |
| Descomprimir tat.bz2 | |
| tar -xjvf example.tar.bz2 | |
| restore postgresql database with dump file | |
| pg_restore -j NWORKERS -n -F d THE_BACKUP_DIR -d DATABASE_NAME -x -O -n public | |
| login on postgresql | |
| sudo -u postgres psql postgres | |
| sudo -u postgres psql | |
| rsync --verbose --progress --stats --recursive --times --perms --links -z filestore/* ~/.local/share/Odoo/filestore/benandfrank/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment