Linux: Difference between revisions

From Wiki
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Dicas e Scripts ==
= AIX =


[[AIX: Memória Livre no AIX]]


=== Comandos ===
[[AIX: Listar arquivos por tamanho ou Human-Readable no AIX]]
*[[Linux:Comando Find]]


*[[Linux:Comando Awk]]
[[AIX:Configurar ips adicionais no AIX]]
 
[[AIX:Erro "File too large" ao realizar scp de um arquivo para o AIX]]
 
[[AIX: Executar um programa X11 após um sudo]]
 
= Comandos =
 
{|
|-
||
* [[:Category:awk|awk]]
* [[:Category:curl|curl]]
* [[:Category:find|find]]
* [[:Category:iostat|iostat]]
||
* [[:Category:ldapsearch|ldapsearch]]
* [[:Category:lsof|lsof]]
* [[:Category:ncat|ncat]]
* [[:Category:nmap|nmap]]
||
* [[:Category:netstat|netstat]]
* [[:Category:nmon|nmon]]
* [[:Category:rar|rar]]
* [[:Category:rpm|rpm]]
||
* [[:Category:tar|tar]]
* [[:Category:top|top]]
* [[:Category:tcpdump|tcpdump]]
* [[:Category:vmstat|vmstat]]
||
* [[:Category:yum|yum]]
|}


*[[Linux:Dicas sobre RPM]]
'''Comparativo entre Unix/Linux:'''


*[[Linux:Comando Xargs]]
{|border="1" class="wikitable sortable" style="font-size: smaller; text-align: center; width: auto; table-layout: fixed;"
|-
!Purpose of command
!Linux  
!AIX
!PowerShell
|-
!List contents of current directory
|
ls -la
|
ls -la
|
ls
|-
!List contents of an ASCII file
|
cat /etc/passwd


*[[Linux:Rar no Linux|Rar no Linux]]
cat /etc/hosts
|
cat /etc/passwd


=== Shell ===
cat /etc/hosts
|
Get-Content *
|-
! Determine file type
|
file /etc/passwd
 
file /usr
 
file /usr/sbin/mount
|
file /etc/passwd
 
file /usr
 
file /usr/sbin/mount
|
 
|-
! Seleciona uma String
|
cat * | grep "string"
|
cat * | grep "string"
|
Get-Content * | Select-String "string"
|-
! Conta linhas
|
<nowiki>ls | wc -l</nowiki>
|
<nowiki>ls | wc -l</nowiki>
|
ls | Measure-Object -line
|-
|}
 
mais comandos: http://www.unixguide.net/cgi-bin/unixguide.cgi
 
= Dicas e Scripts =
 
== Comandos e Shell Scripts ==
 
*[[Linux: Limpeza de diretórios e zerando arquivos]]
 
*[[Linux:Script para Monitorar um aquivo e Executar um Comando]]


*[[Linux:Pegando o endereço IP via shell]]
*[[Linux:Pegando o endereço IP via shell]]
Line 20: Line 117:


*[[Balanceador de Serviços de Rede]]
*[[Balanceador de Serviços de Rede]]
*[[Linux:Convertendo de Ext3 para Ext4|Convertendo de Ext3 para Ext4]]


*[[Linux e Unix: Ferramentas de Monitoracao e Performance]]
*[[Linux e Unix: Ferramentas de Monitoracao e Performance]]
Line 29: Line 124:
*[[Linux:Como corrigir erro de GPG do apt-get no Ubuntu|Como corrigir erro de GPG do apt-get no Ubuntu]]
*[[Linux:Como corrigir erro de GPG do apt-get no Ubuntu|Como corrigir erro de GPG do apt-get no Ubuntu]]


*[[Linux:Calculando a quantidade de acessos por hora em um servidor Apache]]


*[[Linux:Usando YUM apenas com o DVD ou CD|Usando YUM apenas com o DVD ou CD]]
*[[Linux:Gerando arquivos aleatórios para teste de carga]]


*[[Linux:Calculando a quantidade de acessos por hora em um servidor Apache]]
*[[Linux:Convertendo de Ext3 para Ext4|Convertendo de Ext3 para Ext4]]


=== Listando o Hardware ===
== Listando o Hardware ==


*[[Linux:Comando lshw]]
*[[Linux:Comando lshw]]
Line 40: Line 136:
*[[Linux:Comando dmidecode]]
*[[Linux:Comando dmidecode]]


=== Backup em Linux ===
== Distribuições: CentOS / Fedora ==
 
[[Linux:Backup em Linux|Backup em Linux]]
 
=== CentOS ===
 
[[CentOS:Ajustes iniciais no CentOS]]


=== YUM ===
* [[CentOS:Ajustes iniciais no CentOS]]


[[Yum:Configurando repositorios]]
* [[Linux: Fedora não inicia]]


== Alternatives ==


[[Java:Install IBM Java on Fedora and config plugin at Firefox|Install IBM Java on Fedora and config plugin at Firefox]]


== Tecnologias ==  
= Tecnologias =  


=== Configurações ===  
== Configurações ==  
*[[Linux: Configurando DHCP e BIND com DNS Dinamico]]
*[[Linux: Configurando DHCP e BIND com DNS Dinamico]]


Line 65: Line 157:
*[[Linux: Configurando servicos utilizando o systemctl|Linux: Configurando serviços utilizando o systemctl]]
*[[Linux: Configurando servicos utilizando o systemctl|Linux: Configurando serviços utilizando o systemctl]]


=== Apache HTTP Server ===
*[[Linux: Configurando um compartilhamento de rede entre servidores Linux]]
 
== Apache HTTP Server ==


[[Apache HTTP Server| Artigos sobre o Apache HTTP Server]]
[[Apache HTTP Server| Artigos sobre o Apache HTTP Server]]


=== Apache Tomcat Server ===
== Apache Tomcat Server ==


[[Tomcat:Script que checa se o Tomcat está no Ar|Script que checa se o Tomcat está no Ar]]
[[Tomcat:Script que checa se o Tomcat está no Ar|Script que checa se o Tomcat está no Ar]]


=== MySQL Server ===
== MySQL Server ==


[[MySQL:Configurando o MySQL|Configurando o MySQL]]
[[MySQL:Configurando o MySQL|Configurando o MySQL]]


=== OpenLDAP Server ===
== OpenLDAP Server ==
 
[[OpenLDAP: Instalando e Configurando um servidor OpenLDAP]]


[[OpenLDAP:Configurando um LDAP Proxy|Configurando um LDAP Proxy]]
[[OpenLDAP:Configurando um LDAP Proxy|Configurando um LDAP Proxy]]


=== Squid Proxy Server ===
== Squid Proxy Server ==


[[Squid:Squid autenticando com o Samba|Squid autenticando na Rede Windows ou Samba]]
[[Squid:Squid autenticando com o Samba|Squid autenticando na Rede Windows ou Samba]]


[[Squid:Limpando o Cache do Squid|Limpando o Cache do Squid]]
[[Squid:Limpando o Cache do Squid|Limpando o Cache do Squid]]
== AIX ==
[[AIX:Configurar ips adicionais no AIX]]
== Comandos ==
{|border="1" class="wikitable sortable" style="font-size: smaller; text-align: center; width: auto; table-layout: fixed;"
|-
!Purpose of command
!Solaris
!AIX
!HP-UX
|-
!List contents of current directory
|
ls -la
|
ls -la
|
ls -la
|-
!List contents of an ASCII file
|
cat /etc/passwd
cat /etc/hosts
|
cat /etc/passwd
cat /etc/hosts
|
cat /etc/passwd
cat /etc/hosts
|-
! Determine file type
|
file /etc/passwd
file /usr
file /etc/mount
|
file /etc/passwd
file /usr
file /usr/sbin/mount
|
file /etc/passwd
file /usr
file /usr/sbin/mount
|-
|}
mais comandos: http://www.unixguide.net/cgi-bin/unixguide.cgi


exemplo: http://en.wikipedia.org/wiki/Comparison_of_virtual_machines
exemplo: http://en.wikipedia.org/wiki/Comparison_of_virtual_machines

Latest revision as of 15:54, 4 May 2023

AIX

AIX: Memória Livre no AIX

AIX: Listar arquivos por tamanho ou Human-Readable no AIX

AIX:Configurar ips adicionais no AIX

AIX:Erro "File too large" ao realizar scp de um arquivo para o AIX

AIX: Executar um programa X11 após um sudo

Comandos

Comparativo entre Unix/Linux:

Purpose of command Linux AIX PowerShell
List contents of current directory

ls -la

ls -la

ls

List contents of an ASCII file

cat /etc/passwd

cat /etc/hosts

cat /etc/passwd

cat /etc/hosts

Get-Content *

Determine file type

file /etc/passwd

file /usr

file /usr/sbin/mount

file /etc/passwd

file /usr

file /usr/sbin/mount

Seleciona uma String

cat * | grep "string"

cat * | grep "string"

Get-Content * | Select-String "string"

Conta linhas

ls | wc -l

ls | wc -l

ls | Measure-Object -line

mais comandos: http://www.unixguide.net/cgi-bin/unixguide.cgi

Dicas e Scripts

Comandos e Shell Scripts

Listando o Hardware

Distribuições: CentOS / Fedora

Alternatives

Install IBM Java on Fedora and config plugin at Firefox

Tecnologias

Configurações

Apache HTTP Server

Artigos sobre o Apache HTTP Server

Apache Tomcat Server

Script que checa se o Tomcat está no Ar

MySQL Server

Configurando o MySQL

OpenLDAP Server

OpenLDAP: Instalando e Configurando um servidor OpenLDAP

Configurando um LDAP Proxy

Squid Proxy Server

Squid autenticando na Rede Windows ou Samba

Limpando o Cache do Squid

exemplo: http://en.wikipedia.org/wiki/Comparison_of_virtual_machines