Clonar Base de Datos Postgres/ Cloning Postgres Database
/* KILL ALL EXISTING CONNECTION FROM ORIGINAL DB (sourcedb)*/
SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'SOURCE_DB' AND pid <> pg_backend_pid();
/* CLONE DATABASE TO NEW ONE(TARGET_DB) */
CREATE DATABASE TARGET_DB WITH TEMPLATE SOURCE_DB OWNER USER_DB;
Switch USB Modem ZTE from USB DISK/FLASH to MODEM
- Connect modem to Windows machine
- Connect to modem (COM port) with terminal (PuTTY or other) (115200bps, Data bits: 8, Parity: None, Stop bits: 1, Flow Control: None).
- Send AT commands:
AT+ZOPRT=5 AT+ZCDRUN=8
Cambiar el grupo de usuario en *unix en una sola linea
Bueno tenia que cambiar el grupo de los usuarios pero no lo queria hacer uno por uno y encontré esto en stackexchange.
for user in userA userB userC; do sudo usermod -a -G mygroup $user; done
Centos - “locate” command doesn't work / "locate" comando no funciona
To install the locate package, use yum:
$ yum install mlocate
To update it’s "internal database", run following command.
$ updatedb
stackoverflow$ yum install mlocate
Suscribirse a:
Entradas (Atom)