SlideShare uma empresa Scribd logo
Shell TalkUmaintroduçãoao Linux e BASHLuís Ferreira e André Santos
LinuxGrátisOpen – SourceLeveSeguro
ShellBourne Again ShellKorn ShellBourne ShellC Shell
Organização das directorias
Print Working Directory $pwd [-LP]Opções:		 -P : The pathname printed will not contain symbolic links. 		 -L : The pathname printed may contain symbolic linksExemplo:
Change Directory $cd [Opções] [Directoria] Opções:		-P Do not follow symbolic links       -L Follow symbolic links (default)Exemplo:
Organização das directorias
Change Directory$ cd .$ cdDirectoriasEspeciaisVoltaratrásrapidamente:Subirumadirectoria:Directoria actual:Irpara HOME:
List Directory Contents $ ls [-ABCFGHLPRSTW@abcdefghiklmnopqrstuwx1] [file ...]Opções:	-l List in long format	-a List all entries incluiding those beginning with ‘.’	-G Enable colorized output	-h When used with the -l option, use unit suffixesExemplo:
Make Directories $ mkdir [-pv] [-mmodo] nome_directoria ...Opções:	-p  Create intermediate directories as required	-v   Be verbose when creating directories, listing them as they are createdModoPordefeitoomodoé 0777, podendo ser definido de qualquer forma aceitepelochmodExemplo:
Organização das directorias
Remove $ rm [-dfiPRrvW] ficheiro ...Opções:		-f  Attempt to remove the files without prompting for confirmation      -R Attempt to remove the file hierarchy rooted in each file argumentExemplo:
Organização das directorias
Copy Files$cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_filetarget_file$cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file ... target_directoryOpções:	-R  If source_file designates a directory, cp copies the directory and the entire subtree connected at that point.Exemplo:
Organização das directorias
Move Files$ mv [-f | -i | -n] [-v] source target (rename)$ mv [-f | -i | -n] [-v] source ... DirectoryExemplo:
Organização das directorias
Touch$touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] ficheiro ...Funcionamento:		Se oficheironãoexistireleécriado, se existe a data daúltimamodificaçãoéactualizadapara a data actualExemplo:
Organização das directorias
Modos
ModosAbsolutosSoma de modos simples paraformarmodosabsolutos:		O modoabsolutoquepermiteleitura, escritaeexecuçãopelo owner, leituraeexecuçãopormembros do grupoepelosoutroséo 755 (400 + 200 + 100+ 040 + 010 + 004 + 001)Símbolosperm:O equivalenteaomodoabsoluto 755 com símbolospermseriau=rwx, go=rx
Change Mode $chmod [-fv] [-R [-H | -L | -P]] modoficheiro ...Opções:		-R Change the modes of the file hierarchies rooted in the files instead of just the files themselvesExemplo:
Execute as another user$sudo [-u] comandoOpções:		-u causes sudo to run the specified command as a user other than rootExemplo:
Manual pages $man  [-acdfFhkKtwW]  [--path]  [-m system] [-p string] [-C config_file] [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S  section_list] [section] name ...$ mv [-f | -i | -n] [-v] source ... DirectoryUtilização:
FIM

Mais conteúdo relacionado

PDF
Migrate linux user password to postfix vmail database
DOCX
Criação e configuração de base de dados
DOC
Comandos básicos em linux
PDF
Shell Scipt - Comandos
PDF
Principais comandos do terminal no linux tecnologia para todos!
PDF
Linux shell
PPTX
DNS – domain name system
PDF
Shell Script - Controle de fluxo
Migrate linux user password to postfix vmail database
Criação e configuração de base de dados
Comandos básicos em linux
Shell Scipt - Comandos
Principais comandos do terminal no linux tecnologia para todos!
Linux shell
DNS – domain name system
Shell Script - Controle de fluxo

Mais procurados (20)

PPTX
Comandos Shell
PPTX
Protocolo DNS
PDF
Getting into Linux - A brief Introduction to the Shell Linux Environment
PDF
Linux - DNS
PDF
PDF
(16) dns
PDF
Servidor DNS- BIND
PPTX
Criar servidor em virtualbox
PPT
PDF
Aula 04 PHP - Utilizando Funções e Manipulando Arquivos
PDF
Estrutura de dados ii
DOCX
Principais comandos
PPT
Comandos, Permissões e Partições Linux
PDF
Apostila de comandos linux resumidos (universidade católica de brasília)
PDF
Linux - Instalação de Programas
PDF
Comandos filtro
PDF
You shall not pass.. permissões no UNIX
PDF
Redes - DNS
PPTX
Comandos CMD
Comandos Shell
Protocolo DNS
Getting into Linux - A brief Introduction to the Shell Linux Environment
Linux - DNS
(16) dns
Servidor DNS- BIND
Criar servidor em virtualbox
Aula 04 PHP - Utilizando Funções e Manipulando Arquivos
Estrutura de dados ii
Principais comandos
Comandos, Permissões e Partições Linux
Apostila de comandos linux resumidos (universidade católica de brasília)
Linux - Instalação de Programas
Comandos filtro
You shall not pass.. permissões no UNIX
Redes - DNS
Comandos CMD
Anúncio

Destaque (20)

PPT
Super Chaves E Sonic - Episódio 2
PDF
M A N U A L D E M O N T A G E M U M A V I S T A
PPTX
Tecnotutores planificaciónv3
PPT
12. la crisis de la restauración (1902-1931)
PDF
Elvs Prsly Rare 94
PPTX
Ulisses correia Vaz da Conceição/Organização do espaço da loja
PPT
Presentacion La Salle Completaaaa...!!!
PPTX
Otar Kveselava
PDF
Elvs Prsly Rare 72
PPTX
Dia Da Paz 2009
PPT
Hospedaje En JúZcar Y CercaníA
PDF
Instalacion Windows 2000[1]X
PDF
Elvs Prsly Rare 17
PDF
Certificate DevOps_What Why and How EMC
ODP
Tarea Ppt De Computacion2
PDF
Elvs Prsly Rare 29
PPT
Erabateko Kalitatea1
PPT
Inteligencia emocional para el éxito
PDF
Catalogue Elinchrom 2009-2010
PPTX
L'àlbum fotogràfic de la Marta
Super Chaves E Sonic - Episódio 2
M A N U A L D E M O N T A G E M U M A V I S T A
Tecnotutores planificaciónv3
12. la crisis de la restauración (1902-1931)
Elvs Prsly Rare 94
Ulisses correia Vaz da Conceição/Organização do espaço da loja
Presentacion La Salle Completaaaa...!!!
Otar Kveselava
Elvs Prsly Rare 72
Dia Da Paz 2009
Hospedaje En JúZcar Y CercaníA
Instalacion Windows 2000[1]X
Elvs Prsly Rare 17
Certificate DevOps_What Why and How EMC
Tarea Ppt De Computacion2
Elvs Prsly Rare 29
Erabateko Kalitatea1
Inteligencia emocional para el éxito
Catalogue Elinchrom 2009-2010
L'àlbum fotogràfic de la Marta
Anúncio

Semelhante a Shelltalk (20)

PPTX
Guia Rapido - Linux
PDF
Sistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
PPT
Comandos Linux
 
ODP
Introdução ao Linux - aula 03 e 04
PPT
SAC - Seismic Analyses Code
PPT
SAC - Seismic Analyses Code
PPT
SAC - Aula 1
PDF
Linux - Shell e Comandos Básicos
PDF
Certificação LPI
DOC
Comandos linux
PDF
Introdução Linux
PDF
Comandos do linux
PDF
Linux comandos gerais e servidores de rede
PDF
Apostila basica de linux (pt br)
PDF
Comandos do Linux
DOC
Comandos do linux
PDF
(03) shell e comandos basicos[1]
PDF
Tr.01.comandos part1
PDF
Enviando linux
PDF
Linux
Guia Rapido - Linux
Sistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
Comandos Linux
 
Introdução ao Linux - aula 03 e 04
SAC - Seismic Analyses Code
SAC - Seismic Analyses Code
SAC - Aula 1
Linux - Shell e Comandos Básicos
Certificação LPI
Comandos linux
Introdução Linux
Comandos do linux
Linux comandos gerais e servidores de rede
Apostila basica de linux (pt br)
Comandos do Linux
Comandos do linux
(03) shell e comandos basicos[1]
Tr.01.comandos part1
Enviando linux
Linux

Último (19)

PDF
20250805_ServiceNow e a Arquitetura Orientada a Serviços (SOA) A Base para Ap...
PPTX
Aula 18 - Manipulacao De Arquivos python
PDF
Custos e faturamento no SAP S/4HANA Transportation Management, S4TM3 Col26
PDF
Fullfilment AI - Forum ecommerce 2025 // Distrito e Total Express
PDF
Fundamentos de gerenciamento de ordens e planejamento no SAP TransportationMa...
PDF
Aula04-Academia Heri- Tecnologia Geral 2025
PPTX
Como-se-implementa-um-softwareeeeeeeeeeeeeeeeeeeeeeeee.pptx
PDF
Gestão de transportes básica no SAP S/4HANA, S4611 Col20
PPTX
Programação - Linguagem C - Variáveis, Palavras Reservadas, tipos de dados, c...
PDF
Otimizador de planejamento e execução no SAP Transportation Management, TM120...
PPTX
BANCO DE DADOS - AULAS INICIAIS-sgbd.pptx
PDF
COBITxITIL-Entenda as diferença em uso governança TI
PDF
Apple Pippin Uma breve introdução. - David Glotz
PPTX
Gestao-de-Bugs-em-Software-Introducao.pptxxxxxxxx
PDF
Mergulho profundo técnico para gestão de transportes no SAP S/4HANA, S4TM6 Col14
PPTX
Aula16ManipulaçãoDadosssssssssssssssssssssssssssss
PPTX
Informática Aplicada Informática Aplicada Plano de Ensino - estudo de caso NR...
PDF
Custos e liquidação no SAP Transportation Management, TM130 Col18
PDF
Processos na gestão de transportes, TM100 Col18
20250805_ServiceNow e a Arquitetura Orientada a Serviços (SOA) A Base para Ap...
Aula 18 - Manipulacao De Arquivos python
Custos e faturamento no SAP S/4HANA Transportation Management, S4TM3 Col26
Fullfilment AI - Forum ecommerce 2025 // Distrito e Total Express
Fundamentos de gerenciamento de ordens e planejamento no SAP TransportationMa...
Aula04-Academia Heri- Tecnologia Geral 2025
Como-se-implementa-um-softwareeeeeeeeeeeeeeeeeeeeeeeee.pptx
Gestão de transportes básica no SAP S/4HANA, S4611 Col20
Programação - Linguagem C - Variáveis, Palavras Reservadas, tipos de dados, c...
Otimizador de planejamento e execução no SAP Transportation Management, TM120...
BANCO DE DADOS - AULAS INICIAIS-sgbd.pptx
COBITxITIL-Entenda as diferença em uso governança TI
Apple Pippin Uma breve introdução. - David Glotz
Gestao-de-Bugs-em-Software-Introducao.pptxxxxxxxx
Mergulho profundo técnico para gestão de transportes no SAP S/4HANA, S4TM6 Col14
Aula16ManipulaçãoDadosssssssssssssssssssssssssssss
Informática Aplicada Informática Aplicada Plano de Ensino - estudo de caso NR...
Custos e liquidação no SAP Transportation Management, TM130 Col18
Processos na gestão de transportes, TM100 Col18

Shelltalk

  • 1. Shell TalkUmaintroduçãoao Linux e BASHLuís Ferreira e André Santos
  • 3. ShellBourne Again ShellKorn ShellBourne ShellC Shell
  • 5. Print Working Directory $pwd [-LP]Opções: -P : The pathname printed will not contain symbolic links. -L : The pathname printed may contain symbolic linksExemplo:
  • 6. Change Directory $cd [Opções] [Directoria] Opções: -P Do not follow symbolic links -L Follow symbolic links (default)Exemplo:
  • 8. Change Directory$ cd .$ cdDirectoriasEspeciaisVoltaratrásrapidamente:Subirumadirectoria:Directoria actual:Irpara HOME:
  • 9. List Directory Contents $ ls [-ABCFGHLPRSTW@abcdefghiklmnopqrstuwx1] [file ...]Opções: -l List in long format -a List all entries incluiding those beginning with ‘.’ -G Enable colorized output -h When used with the -l option, use unit suffixesExemplo:
  • 10. Make Directories $ mkdir [-pv] [-mmodo] nome_directoria ...Opções: -p Create intermediate directories as required -v Be verbose when creating directories, listing them as they are createdModoPordefeitoomodoé 0777, podendo ser definido de qualquer forma aceitepelochmodExemplo:
  • 12. Remove $ rm [-dfiPRrvW] ficheiro ...Opções: -f Attempt to remove the files without prompting for confirmation -R Attempt to remove the file hierarchy rooted in each file argumentExemplo:
  • 14. Copy Files$cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_filetarget_file$cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file ... target_directoryOpções: -R If source_file designates a directory, cp copies the directory and the entire subtree connected at that point.Exemplo:
  • 16. Move Files$ mv [-f | -i | -n] [-v] source target (rename)$ mv [-f | -i | -n] [-v] source ... DirectoryExemplo:
  • 18. Touch$touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] ficheiro ...Funcionamento: Se oficheironãoexistireleécriado, se existe a data daúltimamodificaçãoéactualizadapara a data actualExemplo:
  • 20. Modos
  • 21. ModosAbsolutosSoma de modos simples paraformarmodosabsolutos: O modoabsolutoquepermiteleitura, escritaeexecuçãopelo owner, leituraeexecuçãopormembros do grupoepelosoutroséo 755 (400 + 200 + 100+ 040 + 010 + 004 + 001)Símbolosperm:O equivalenteaomodoabsoluto 755 com símbolospermseriau=rwx, go=rx
  • 22. Change Mode $chmod [-fv] [-R [-H | -L | -P]] modoficheiro ...Opções: -R Change the modes of the file hierarchies rooted in the files instead of just the files themselvesExemplo:
  • 23. Execute as another user$sudo [-u] comandoOpções: -u causes sudo to run the specified command as a user other than rootExemplo:
  • 24. Manual pages $man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C config_file] [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S section_list] [section] name ...$ mv [-f | -i | -n] [-v] source ... DirectoryUtilização:
  • 25. FIM

Notas do Editor

  • #3: Levecomoquemdiz
  • #11: The user must have write permission in the parent directory.
  • #13: If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted(on the standard error output) for confirmation. The rm utility removes symbolic links, not the files referenced by the links.
  • #19: If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted(on the standard error output) for confirmation. The rm utility removes symbolic links, not the files referenced by the links.
  • #23: If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted(on the standard error output) for confirmation. The rm utility removes symbolic links, not the files referenced by the links.