Nlt 1-terminal-basics

24
WOODIWISS.ME Freelance Web Developer & Lecturer in the Winchester, Hampshire area. Command Line Interfaces The Basics

description

Terminal basics

Transcript of Nlt 1-terminal-basics

Page 1: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

Command Line InterfacesThe Basics

Page 2: Nlt 1-terminal-basics

WOODIWISS.ME

–Wikipedia

“Command-line interfaces are often preferred by more advanced computer users, as they often provide a more concise and powerful means to control a program or operating

system.”

Page 3: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

CLI vs GUI

Page 4: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

Page 5: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

Both have their uses!

Page 6: Nlt 1-terminal-basics

WOODIWISS.ME

Where am I?

Mac - BashWindows - Command Prompt

Page 7: Nlt 1-terminal-basics

WOODIWISS.ME

Directories or folders?Same thing, but…

Lets call them directories for now.

Page 8: Nlt 1-terminal-basics

WOODIWISS.ME

Directories From the CLI

• Current directory .

• Parent directory ..

Page 9: Nlt 1-terminal-basics

WOODIWISS.ME

Directories From the CLI

• Current directory .

• Parent directory ..

Page 10: Nlt 1-terminal-basics

WOODIWISS.ME

Directories From the CLI

• Current directory .

• Parent directory ..

Page 11: Nlt 1-terminal-basics

WOODIWISS.ME

Moving Around

• change directory

• cd path

Page 12: Nlt 1-terminal-basics

WOODIWISS.ME

List / Show files

• Unix - ls

• CMD - dir

!

• Options

• ls -a

• dir /a:h

Page 13: Nlt 1-terminal-basics

WOODIWISS.ME

Move

• mv ./file2.txt ./.file2.txt

• move .\file2.txt .\.file2.txt

Page 14: Nlt 1-terminal-basics

WOODIWISS.ME

Copy

• cp ./.file2.txt ./.file4.txt

• copy .\.file2.txt .\.file4.txt

Page 15: Nlt 1-terminal-basics

WOODIWISS.ME

SUDO / runasUse with caution.

Page 16: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

Is a clever idea. Especially when using sudo, rm -rf …

Page 17: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

Beyond

Page 18: Nlt 1-terminal-basics

WOODIWISS.ME

Cygwin

• a collection of tools which provide a Linux look and feel environment for Windows.

• a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.

Page 19: Nlt 1-terminal-basics

WOODIWISS.ME

oh-my-zsh

• Replacement shell

• oh-my-zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and few things that make you shout… “OH MY ZSHELL!”

Page 20: Nlt 1-terminal-basics

WOODIWISS.ME

Vagrant

• “Create and configure lightweight, reproducible, and portable development environments.”

• http://www.vagrantbox.es/

Page 21: Nlt 1-terminal-basics

WOODIWISS.ME

Docker

• Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.

Page 22: Nlt 1-terminal-basics

WOODIWISS.ME

Modern.ie

• Testing for Internet Explorer just got a little easier.

• modern.IE is a dev center – free tools & resources – built so you can spend less time testing for the various versions of Internet Explorer and more time building what matters to you on the modern web.

• VMs

Page 23: Nlt 1-terminal-basics

WOODIWISS.ME

Links / Research• http://lifehacker.com/5633909/who-needs-a-mouse-learn-to-use-

the-command-line-for-almost-anything

• http://lifehacker.com/5633909/who-needs-a-mouse-learn-to-use-the-command-line-for-almost-anything

• https://github.com/robbyrussell/oh-my-zsh

• http://www.vagrantup.com/

• https://www.docker.io/

• http://www.modern.ie/en-us

• http://www.cygwin.com/

Page 24: Nlt 1-terminal-basics

WOODIWISS.MEFreelance Web Developer & Lecturer in the Winchester, Hampshire area.

Questions?