SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Protocolo DNS
Protocolo DNSProtocolo DNS
Protocolo DNSBiel2013a
 
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 EnvironmentRafael Moreno
 
Servidor DNS- BIND
Servidor DNS- BINDServidor DNS- BIND
Servidor DNS- BINDzbrendo
 
Criar servidor em virtualbox
Criar servidor em virtualboxCriar servidor em virtualbox
Criar servidor em virtualboxRicardo Miguel
 
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 ArquivosDaniel Brandão
 
Principais comandos
Principais comandosPrincipais comandos
Principais comandosLinuxAracaju
 
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 LinuxVirgí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
 
Linux - Instalação de Programas
Linux - Instalação de ProgramasLinux - Instalação de Programas
Linux - Instalação de ProgramasFrederico Madeira
 
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 UNIXWilliam Calderipe
 

La actualidad más candente (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
 

Destacado

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 2vitinho9
 
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 AZe Cury
 
Tecnotutores planificaciónv3
Tecnotutores planificaciónv3Tecnotutores planificaciónv3
Tecnotutores planificaciónv3Dalila 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 lojaTurmacv133a
 
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íApikuito
 
Instalacion Windows 2000[1]X
Instalacion Windows 2000[1]XInstalacion Windows 2000[1]X
Instalacion Windows 2000[1]Xsandramilenarojas
 
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 EMCEmmanuel Alvarez
 
Tarea Ppt De Computacion2
Tarea Ppt De Computacion2Tarea Ppt De Computacion2
Tarea Ppt De Computacion2guestc7bfb0
 
Erabateko Kalitatea1
Erabateko Kalitatea1Erabateko Kalitatea1
Erabateko Kalitatea1amaiaguti
 
Inteligencia emocional para el éxito
Inteligencia emocional para el éxitoInteligencia emocional para el éxito
Inteligencia emocional para el éxitoNancy Peña Nole
 
Catalogue Elinchrom 2009-2010
Catalogue Elinchrom 2009-2010Catalogue Elinchrom 2009-2010
Catalogue Elinchrom 2009-2010Felice 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 Martamartavg
 

Destacado (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
 

Similar a Introdução ao Linux e BASH

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 ArquivosLuiz Arthur
 
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.pdfSidneyMeloFrazao
 
SAC - Seismic Analyses Code
SAC - Seismic Analyses CodeSAC - Seismic Analyses Code
SAC - Seismic Analyses CodeGeorge Franca
 
SAC - Seismic Analyses Code
SAC - Seismic Analyses CodeSAC - Seismic Analyses Code
SAC - Seismic Analyses CodeGeorge 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 redefernandao777
 
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óriosDanilo Filitto
 
Comandos Linux
Comandos LinuxComandos Linux
Comandos Linuxlol
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxguilhermeoki
 
Sapo sessions linux power tools
Sapo sessions linux power toolsSapo sessions linux power tools
Sapo sessions linux power toolsArmando Reis
 
Linux-formatado.pdf
Linux-formatado.pdfLinux-formatado.pdf
Linux-formatado.pdfssuserf964b1
 
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_comandosmilanvassaramo
 

Similar a Introdução ao Linux e BASH (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 - 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
 
SAC - Aula 1
SAC - Aula 1SAC - Aula 1
SAC - Aula 1
 
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
 

Introdução ao Linux e BASH

  • 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

Notas del editor

  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.