spabloramirez
3/16/2017 - 9:54 AM

[Resumen linux] #linux

[Resumen linux] #linux

systemctl <reload|start> <service>
  • httpd apache
-c: create
-z: hight compression 
-f <fileName>: file

Create compress files of folders:

tar -czf <file.tar.gz> <origin>
tar -czf <file.tar.gz> <origin1> [origin2] [origin3]...

Extract

tar -xzf <file.tar.gz> [-C ./folder]

Copia remota

scp <file> <user>@<ip>:<path>
scp ./compress.tar root@46.24.40.51:/var/www/
  • /etc
    • /httpd
      • /conf.d Virtual host
      • /logs Logs de apache
  • /usr
    • /local
      • /bin Scripts publicos
mount \\172.21.1.216\var\www S: