Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Terminal is your friend
Search
Victor Castell
August 24, 2011
Programming
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Terminal is your friend
Victor Castell
August 24, 2011
More Decks by Victor Castell
See All by Victor Castell
Why Go
victorcoder
2
370
Other Decks in Programming
See All in Programming
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
100
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
160
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
2
500
Claude Team Plan導入・ガイド
tk3fftk
0
200
PHPだって関数型したい 〜できること、できないこと〜 / fp-in-php
jsoizo
0
210
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
330
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
270
OSINT for SRE: 学術論文とポストモーテムから探る システム障害の共通パターン / SRE NEXT 2026
tomoyk
1
3.8k
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
2.7k
5分で問診!Composer セキュリティ健康診断
codmoninc
0
270
初めてのKubernetes 本番運用でハマった話
oku053
0
130
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
850
Featured
See All Featured
Visualization
eitanlees
152
17k
Accessibility Awareness
sabderemane
1
160
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
230
Odyssey Design
rkendrick25
PRO
2
730
Bash Introduction
62gerente
615
220k
Navigating Weather and Climate Data
rabernat
0
360
It's Worth the Effort
3n
188
29k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
470
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
420
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Transcript
Hola!
Sobre mi
Victor Castell
@victorcoder http://github.com/victorcoder
CTO y socio en: +
Terminal, ¿Que es? Interprete de ordenes de Unix/GNU Linux y
derivados bash - Bourne Again Shell Evolución de sh - Bourne Shell
No es complicado
¿Porque lo usamos en UNIX? En UNIX es un entorno
de programación En Windows da mal jare
¿Opciones? MacOS: Terminal.app / iTerm.app Linux: gnome-terminal, Konsole, xterm, etc...
Windows: nah!
¿Como aprender? Practica Trucos de memória
Navegación e interacción con ficheros
$ cd <opciones> <ruta> (change directory) $ ls <opciones> <ficheros>
(list) $ mkdir <opciones> <nombre del directorio> (make directory) $ rmdir <opciones> <nombre del directorio> (remove directory) $ cp <opciones> <archivo> <ruta> (copy) $ mv <opciones> <archivo> <ruta> (move) $ rm <opciones> <archivo> (remove)
Ejemplos $ ls Gemfile Gemfile.lock showoff.json slides $ ls -l
total 24 -rw-r--r-- 1 victorcoder staff 44 22 ago 18:07 Gemfile -rw-r--r-- 1 victorcoder staff 362 22 ago 18:07 Gemfile.lock -rw-r--r-- 1 victorcoder staff 89 22 ago 18:07 showoff.json drwxr-xr-x 3 victorcoder staff 102 22 ago 18:07 slides $ cd slides $ ls -l total 8 -rw-r--r--@ 1 victorcoder staff 580 23 ago 11:32 tiyf.md $ cd .. $ pwd /Users/victorcoder/Documents/code/terminal-is-your-friend $ open .
Movimiento Autocompletar (TAB) CTRL+a Inicio de linea CTRL+e Fin de
linea flecha arriba | Navegar por la historia CTRL+r | reverse search history | ver la historia
ESC+f forward 1 word ESC+b backward 1 word ESC+t transpose
CRTL+u delete line CTRL+l clear screen
Extras $ cat $ find <ruta(s)> <condición(es) de búsqueda> <acciones>
$ chmod $ open <ruta> $ alias $ ll $ la Ejecutar último comando: flecha arriba o !! Encadenar comandos: && Pipes: |
Helpers
bash + bash_it https://github.com/revans/bash-it $ |ruby-1.9.2-p290| victorimac in ~/Documents/code/pdf_reader \
± |master ✓| →
zsh + oh-my-zsh https://github.com/robbyrussell/oh-my-zsh $ [ 4:49PM ] [ victorcoder@victorimac:~(ruby-1.9.2-p180)
] $ chmod (tab) a -- all g -- group o -- others u -- user + - \=
bash está en todas partes
bash mola mash!
Referencias http://maymay.net/blog/2007/07/18/list-of- default-mac-os-x-command-line-editing-bash- keyboard-shortcuts/ http://www.guia-ubuntu.org/index.php? title=Terminal https://github.com/victorcoder/dotfiles
¡Gracias!