Linux: Difference between revisions

From Wiki
Line 43: Line 43:
|-
|-
!Purpose of command  
!Purpose of command  
!Linux
!Solaris  
!Solaris  
!AIX  
!AIX  
!HP-UX
!HP-UX
!PowerShell
|-
|-
!List contents of current directory
!List contents of current directory
Line 54: Line 56:
|
|
ls -la
ls -la
|
ls -la
|
ls
|-
|-
!List contents of an ASCII file
!List contents of an ASCII file
Line 68: Line 74:


cat /etc/hosts
cat /etc/hosts
|
cat /etc/passwd
cat /etc/hosts
|
Get-Content *
|-
|-
! Determine file type
! Determine file type
|
file /etc/passwd
file /usr
file /etc/mount
|
|
file /etc/passwd
file /etc/passwd
Line 88: Line 106:


file /usr/sbin/mount
file /usr/sbin/mount
|
|-
! Select String
|
cat * | grep "string"
|
cat * | grep "string"
|
cat * | grep "string"
|
cat * | grep "string"
|
Get-Content * | Select-String "string"
|-
! count
|
<nowiki>ls | wc -l</nowiki>
|
<nowiki>ls | wc -l</nowiki>
|
<nowiki>ls | wc -l</nowiki>
|
<nowiki>ls | wc -l</nowiki>
|
ls | Measure-Object -line
|-
|-
|}
|}

Revision as of 15:08, 10 December 2021

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 Solaris AIX HP-UX PowerShell
List contents of current directory

ls -la

ls -la

ls -la

ls -la

ls

List contents of an ASCII file

cat /etc/passwd

cat /etc/hosts

cat /etc/passwd

cat /etc/hosts

cat /etc/passwd

cat /etc/hosts

cat /etc/passwd

cat /etc/hosts

Get-Content *

Determine file type

file /etc/passwd

file /usr

file /etc/mount

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

Select String

cat * | grep "string"

cat * | grep "string"

cat * | grep "string"

cat * | grep "string"

Get-Content * | Select-String "string"

count

ls | wc -l

ls | wc -l

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