Linux: mudanças entre as edições

De Wiki Doth
Ir para navegação Ir para pesquisar
Sem resumo de edição
Linha 1: Linha 1:


comandos uteis linux
comandos uteis linux
= Geral =
verificar espaço
<code>du -shc *</code>


= Crontab =  
= Crontab =  

Edição das 16h55min de 17 de abril de 2020

comandos uteis linux

Geral

verificar espaço du -shc *

Crontab

  • ver log: /var/mail/

Find

Dentro do ditetorio

<code find . </ode>

Somente diretorios

-type d

Somente arquivos

-type f

com permissoes diferentes

find / -type f ! -perm 777

Arquivos acessados nas ultimas 12 horas find . -type f -ctime -0.5 -exec ls -l {} \;

Rocket Chat

Programa de chat empresarial

https://github.com/RocketChat


Certficado SSL

Atualização de certificado ssl https:

  1. stop ngix

/etc/init.d/ngix stop

  1. renew certificate

certbot renew

  1. start

/etc/init.d/ngix start

Atualizar/Manutenção

Documentação:

https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/

https://snapcraft.io/rocketchat-server

Checar versão do snap:

snap --version

Checar versão programas instalados

snap list

Ver informações

snap info rocketchat-server

How do I manually update to a new release?

While updates happen automatically usually within 6 hours from time of release, you can update manually by issuing this command:

sudo snap refresh rocketchat-server

How do I tell if Rocket.Chat is actually running?

You can check on the status of Rocket.Chat with:

sudo service snap.rocketchat-server.rocketchat-server status


To restart Rocket.Chat:

sudo service snap.rocketchat-server.rocketchat-server restart