SlideShare une entreprise Scribd logo
1  sur  25
Shell Talk Umaintroduçãoao Linux e BASH Luís Ferreira e André Santos
Linux Grátis Open – Source Leve Seguro
Shell Bourne Again Shell Korn Shell Bourne Shell C 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 links Exemplo:
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 . $ cd DirectoriasEspeciais Voltaratrá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 suffixes Exemplo:
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 created Modo Pordefeitoomodoé 0777, podendo ser definido de qualquer forma aceitepelochmod Exemplo:
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 argument Exemplo:
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_directory Opçõ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 ... Directory Exemplo:
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 actual Exemplo:
Organização das directorias
Modos
ModosAbsolutos Soma 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 themselves Exemplo:
Execute as another user $sudo [-u] comando Opções: 		-u causes sudo to run the specified command as a user other than root Exemplo:
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 ... Directory Utilização:
FIM

Contenu connexe

Tendances

Protocolo DNS
Protocolo DNSProtocolo DNS
Protocolo DNS
Biel2013a
 
Servidor DNS- BIND
Servidor DNS- BINDServidor DNS- BIND
Servidor DNS- BIND
zbrendo
 
Principais comandos
Principais comandosPrincipais comandos
Principais comandos
LinuxAracaju
 
Comandos, Permissões e Partições Linux
Comandos, Permissões e Partições LinuxComandos, Permissões e Partições Linux
Comandos, Permissões e Partições Linux
Virgínia
 
Apostila de comandos linux resumidos (universidade católica de brasília)
Apostila de comandos linux   resumidos (universidade católica de brasília)Apostila de comandos linux   resumidos (universidade católica de brasília)
Apostila de comandos linux resumidos (universidade católica de brasília)
SENAC RIO
 

Tendances (20)

Comandos Shell
Comandos ShellComandos Shell
Comandos Shell
 
Protocolo DNS
Protocolo DNSProtocolo DNS
Protocolo DNS
 
Getting into Linux - A brief Introduction to the Shell Linux Environment
Getting into Linux - A brief Introduction to the Shell Linux EnvironmentGetting into Linux - A brief Introduction to the Shell Linux Environment
Getting into Linux - A brief Introduction to the Shell Linux Environment
 
Linux - DNS
Linux - DNSLinux - DNS
Linux - DNS
 
Aula dns
Aula dnsAula dns
Aula dns
 
(16) dns
(16) dns(16) dns
(16) dns
 
Servidor DNS- BIND
Servidor DNS- BINDServidor DNS- BIND
Servidor DNS- BIND
 
Criar servidor em virtualbox
Criar servidor em virtualboxCriar servidor em virtualbox
Criar servidor em virtualbox
 
725
725725
725
 
Aula 04 PHP - Utilizando Funções e Manipulando Arquivos
Aula 04 PHP - Utilizando Funções e Manipulando ArquivosAula 04 PHP - Utilizando Funções e Manipulando Arquivos
Aula 04 PHP - Utilizando Funções e Manipulando Arquivos
 
Estrutura de dados ii
Estrutura de dados iiEstrutura de dados ii
Estrutura de dados ii
 
Principais comandos
Principais comandosPrincipais comandos
Principais comandos
 
Comandos, Permissões e Partições Linux
Comandos, Permissões e Partições LinuxComandos, Permissões e Partições Linux
Comandos, Permissões e Partições Linux
 
Dns
DnsDns
Dns
 
Apostila de comandos linux resumidos (universidade católica de brasília)
Apostila de comandos linux   resumidos (universidade católica de brasília)Apostila de comandos linux   resumidos (universidade católica de brasília)
Apostila de comandos linux resumidos (universidade católica de brasília)
 
Linux - Instalação de Programas
Linux - Instalação de ProgramasLinux - Instalação de Programas
Linux - Instalação de Programas
 
Comandos filtro
Comandos filtroComandos filtro
Comandos filtro
 
You shall not pass.. permissões no UNIX
You shall not pass.. permissões no UNIXYou shall not pass.. permissões no UNIX
You shall not pass.. permissões no UNIX
 
Redes - DNS
Redes  - DNSRedes  - DNS
Redes - DNS
 
Comandos CMD
Comandos CMDComandos CMD
Comandos CMD
 

En vedette

Super Chaves E Sonic - Episódio 2
Super Chaves E Sonic - Episódio 2Super Chaves E Sonic - Episódio 2
Super Chaves E Sonic - Episódio 2
vitinho9
 
M A N U A L D E M O N T A G E M U M A V I S T A
M A N U A L  D E  M O N T A G E M    U M A  V I S T AM A N U A L  D E  M O N T A G E M    U M A  V I S T A
M A N U A L D E M O N T A G E M U M A V I S T A
Ze Cury
 
Tecnotutores planificaciónv3
Tecnotutores planificaciónv3Tecnotutores planificaciónv3
Tecnotutores planificaciónv3
Dalila Martínez
 
12. la crisis de la restauración (1902-1931)
12. la crisis de la restauración (1902-1931)12. la crisis de la restauración (1902-1931)
12. la crisis de la restauración (1902-1931)
frayjulian
 
Ulisses correia Vaz da Conceição/Organização do espaço da loja
Ulisses correia Vaz da Conceição/Organização do espaço da lojaUlisses correia Vaz da Conceição/Organização do espaço da loja
Ulisses correia Vaz da Conceição/Organização do espaço da loja
Turmacv133a
 
Presentacion La Salle Completaaaa...!!!
Presentacion La Salle Completaaaa...!!!Presentacion La Salle Completaaaa...!!!
Presentacion La Salle Completaaaa...!!!
mcvalenciam
 
Hospedaje En JúZcar Y CercaníA
Hospedaje En JúZcar Y CercaníAHospedaje En JúZcar Y CercaníA
Hospedaje En JúZcar Y CercaníA
pikuito
 
Certificate DevOps_What Why and How EMC
Certificate DevOps_What Why and How EMCCertificate DevOps_What Why and How EMC
Certificate DevOps_What Why and How EMC
Emmanuel Alvarez
 
Tarea Ppt De Computacion2
Tarea Ppt De Computacion2Tarea Ppt De Computacion2
Tarea Ppt De Computacion2
guestc7bfb0
 
Erabateko Kalitatea1
Erabateko Kalitatea1Erabateko Kalitatea1
Erabateko Kalitatea1
amaiaguti
 
Catalogue Elinchrom 2009-2010
Catalogue Elinchrom 2009-2010Catalogue Elinchrom 2009-2010
Catalogue Elinchrom 2009-2010
Felice Bonetto
 
L'àlbum fotogràfic de la Marta
L'àlbum fotogràfic de la MartaL'àlbum fotogràfic de la Marta
L'àlbum fotogràfic de la Marta
martavg
 

En vedette (20)

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

Similaire à Shelltalk

Sistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
Sistemas Operacionais - Gnu/Linux Gerenciamento de ArquivosSistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
Sistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
Luiz Arthur
 
SAC - Seismic Analyses Code
SAC - Seismic Analyses CodeSAC - Seismic Analyses Code
SAC - Seismic Analyses Code
George Franca
 
Linux comandos gerais e servidores de rede
Linux   comandos gerais e servidores de redeLinux   comandos gerais e servidores de rede
Linux comandos gerais e servidores de rede
fernandao777
 
Linux comandos para arquivos e diretórios
Linux   comandos para arquivos e diretóriosLinux   comandos para arquivos e diretórios
Linux comandos para arquivos e diretórios
Danilo Filitto
 
Sapo sessions linux power tools
Sapo sessions linux power toolsSapo sessions linux power tools
Sapo sessions linux power tools
Armando Reis
 
Ficha de trabalho_so_6_m4_-_linux_comandos
Ficha de trabalho_so_6_m4_-_linux_comandosFicha de trabalho_so_6_m4_-_linux_comandos
Ficha de trabalho_so_6_m4_-_linux_comandos
milanvassaramo
 

Similaire à Shelltalk (20)

Comandos Linux Parte 1
Comandos Linux Parte 1Comandos Linux Parte 1
Comandos Linux Parte 1
 
Sistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
Sistemas Operacionais - Gnu/Linux Gerenciamento de ArquivosSistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
Sistemas Operacionais - Gnu/Linux Gerenciamento de Arquivos
 
Intro a Sistemas Abertos - Gerenciamento de Arquivos.pdf
Intro a Sistemas Abertos - Gerenciamento de Arquivos.pdfIntro a Sistemas Abertos - Gerenciamento de Arquivos.pdf
Intro a Sistemas Abertos - Gerenciamento de Arquivos.pdf
 
Comandos CMD
Comandos CMDComandos CMD
Comandos CMD
 
Guia Rapido - Linux
Guia Rapido - LinuxGuia Rapido - Linux
Guia Rapido - Linux
 
Tr.01.comandos part1
Tr.01.comandos part1Tr.01.comandos part1
Tr.01.comandos part1
 
SAC - Aula 1
SAC - Aula 1SAC - Aula 1
SAC - Aula 1
 
SAC - Seismic Analyses Code
SAC - Seismic Analyses CodeSAC - Seismic Analyses Code
SAC - Seismic Analyses Code
 
SAC - Seismic Analyses Code
SAC - Seismic Analyses CodeSAC - Seismic Analyses Code
SAC - Seismic Analyses Code
 
Comandos
ComandosComandos
Comandos
 
Linux comandos gerais e servidores de rede
Linux   comandos gerais e servidores de redeLinux   comandos gerais e servidores de rede
Linux comandos gerais e servidores de rede
 
Linux comandos para arquivos e diretórios
Linux   comandos para arquivos e diretóriosLinux   comandos para arquivos e diretórios
Linux comandos para arquivos e diretórios
 
Comandos Linux
Comandos LinuxComandos Linux
Comandos Linux
 
Aula 06 comandos linux
Aula 06   comandos linuxAula 06   comandos linux
Aula 06 comandos linux
 
Aula 10 semana
Aula 10 semanaAula 10 semana
Aula 10 semana
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
RoboCopy.pdf
RoboCopy.pdfRoboCopy.pdf
RoboCopy.pdf
 
Sapo sessions linux power tools
Sapo sessions linux power toolsSapo sessions linux power tools
Sapo sessions linux power tools
 
Linux-formatado.pdf
Linux-formatado.pdfLinux-formatado.pdf
Linux-formatado.pdf
 
Ficha de trabalho_so_6_m4_-_linux_comandos
Ficha de trabalho_so_6_m4_-_linux_comandosFicha de trabalho_so_6_m4_-_linux_comandos
Ficha de trabalho_so_6_m4_-_linux_comandos
 

Dernier

Dernier (9)

ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docxATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
 
Luís Kitota AWS Discovery Day Ka Solution.pdf
Luís Kitota AWS Discovery Day Ka Solution.pdfLuís Kitota AWS Discovery Day Ka Solution.pdf
Luís Kitota AWS Discovery Day Ka Solution.pdf
 
Programação Orientada a Objetos - 4 Pilares.pdf
Programação Orientada a Objetos - 4 Pilares.pdfProgramação Orientada a Objetos - 4 Pilares.pdf
Programação Orientada a Objetos - 4 Pilares.pdf
 
Boas práticas de programação com Object Calisthenics
Boas práticas de programação com Object CalisthenicsBoas práticas de programação com Object Calisthenics
Boas práticas de programação com Object Calisthenics
 
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docxATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
 
ATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docx
ATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docxATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docx
ATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docx
 
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docxATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
 
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docxATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
 
Padrões de Projeto: Proxy e Command com exemplo
Padrões de Projeto: Proxy e Command com exemploPadrões de Projeto: Proxy e Command com exemplo
Padrões de Projeto: Proxy e Command com exemplo
 

Shelltalk

  • 1. Shell Talk Umaintroduçãoao Linux e BASH Luís Ferreira e André Santos
  • 2. Linux Grátis Open – Source Leve Seguro
  • 3. Shell Bourne Again Shell Korn Shell Bourne Shell C 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 links Exemplo:
  • 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 . $ cd DirectoriasEspeciais Voltaratrá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 suffixes Exemplo:
  • 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 created Modo Pordefeitoomodoé 0777, podendo ser definido de qualquer forma aceitepelochmod Exemplo:
  • 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 argument Exemplo:
  • 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_directory Opçõ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 ... Directory Exemplo:
  • 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 actual Exemplo:
  • 20. Modos
  • 21. ModosAbsolutos Soma 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 themselves Exemplo:
  • 23. Execute as another user $sudo [-u] comando Opções: -u causes sudo to run the specified command as a user other than root Exemplo:
  • 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 ... Directory Utilização:
  • 25. FIM

Notes de l'éditeur

  1. Levecomoquemdiz
  2. The user must have write permission in the parent directory.
  3. 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.
  4. 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.
  5. 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.