Comando Unix
Ensaios: Comando Unix. Pesquise 862.000+ trabalhos acadêmicosPor: GleicaFonseca • 20/10/2013 • 1.875 Palavras (8 Páginas) • 777 Visualizações
find . -size +1000000 -exec ls -l {} \;
find . -size +100000 -exec ls -l {} \;
find . -xdev -size +100000 -exec ls -l {} \;
du -sk *| sort -n
gusg02:/# cmviewcl *******(CLUSTER STATUS)
du -sk * | sort -n
ls -l /caminho/arquivo* | grep -v .gz - retira .gz
tail -f /var/adm/messages - Descrição: String ERROR ocorreu no log de eventos do S.O. /var/adm/messages
gzip -9 Nomedoprocesso
./xxxxxx -status >>>>Descrição: Agente OpenView do servidor priprdc4 com problemas. Verifique as instrucoes no alerta.
while true;do df -k .;sleep 1;clear;done
passwd login efetua a troca da SENHA QND LOGADO COMO ROOT
watch -n1 "df -k"
bdf - HP-UX.
find . / -name
showmount -e
grep -i (servidor) /etc/hosts
more messages - /var/adm/messages - Descrição: String ERROR ocorreu no log de eventos do S.O.
tail -f lista as ultimas 10 linhas.
cat more | grep -i error
Verifica os arquivos montados,/var/opt/OV
dentro do filesystem maiores que 100Megas
swapinfo -tam - HP-UX
ifconfig -a / lanscan / netstat -n
ps -ef | grep +Nomedoprocesso+*
find . -name "Nomedoprocesso" -exec ls -l {} \;
scstat -g |grep mqseries-rg //// Descrição: O MQ nao esta ativo neste servidor. Favor verificar com urgencia.
scstat -g | more
AIX - topas sar 2 10
###################################################################################
Descrição: O Agente do Servidor pr-db-02 esta em modulo Buffer de Mensagens
root@solsro3db1 # cd /opt/OV/bin (Outros)
eai-db-01:/usr/lpp/OV/bin/OpC>./opcagt -status (AIX)
coda OV Performance Core AGENT,CODA (565412) Running
opcacta OVO Action Agent AGENT,EA (454708) Running
opcmsga OVO Message Agent AGENT,EA (1548294) Running
opcmsgi OVO Message Interceptor AGENT,EA (1491072) Running
opcmona OVO Monitor Agent AGENT,EA (573496) Running
Message Agent is not buffering.
eai-db-01:/usr/lpp/OV/bin/OpC>
Comando para verificar portas
netstat -na|grep : <numero da porta>
####################################################################################
Consultar os ultimos acessos de usuários
last|more
###################################################################################
Consultar processos
ps -ef|grep <nome do processo>
###################################################################################
Lista o tamanho dos diretorios
du -sk *|sort -n
###################################################################################
Copiar arquivos de um equipamento para outro
scp -pr <nome do arquivo> root@<nome do equipamento de destino>:<caminho da pasta>
###################################################################################
Editar nomes de arquivos
cp -p <nome do arquivo> <nome que irá ficar>
#################################################################################
Verifica porcentagem do file system
df -k .
df -kh .
#################################################################################
Acessar a base de dados do mysql - Telesp Portal Intragov
Comando: mysql -p
senha: sic7002 ou root
############################################################################################
Comandos de Controlo e Acesso
############################################################################################
exit Terminar a sessão, ou seja, a shell (mais ajuda digitando man sh ou man csh)
logout Deslogar, ou seja, terminar a sessão actual, mas apenas na C shell e na bash shell
passwd Mudar a password do nosso utilizador
rlogin Logar de forma segura noutro sistema Unix/Linux
ssh Sessão segura, vem de secure shell, e permite-nos logar num servidor através do protocolo ssh
slogin Versão segura do rlogin
...