Homework
The more you practice, the more comfortable you’ll feel!
Hey Slacker!
Remember, we're here to help. Join the KCWiT #codingandcocktails Slack Channel: kcwit.slack.com
More Practice
Just for fun & more practice - Learning Git branching via a game! http://pcottle.github.io/learnGitBranching/
Work through the Command Line course on Codecademy at https://www.codecademy.com/learn/learn-the-command-line.
Use telnet
Ever wondered what Star Wars: Episode IV would look like in all text? Of course you have!
Follow the instructions for your OS. Use
CTRL+]to exit.Type
telnet towel.blinkenlights.nl.Enable telnet by following the video below, then type
winpty telnet towel.blinkenlights.nl.The
telnetcommand uses a protocol that allows you to log in to another remote machine, located in this case at towel.blinkenlights.nl. A protocol is a set of procedures and rules for data transmission.The
winptycommand allows Cmder to properly use thetelnetcommand in Windows. You could also runtelnet towel.blinkenlights.nlin the built-in Windows command prompt to get the same results.
Windows users only - Learn some native Windows shell commands
There may be times when you don't have the bash shell. Windows PowerShell is the next best option for ongoing needs because it has more bash commands built in, but it's good to have exposure to Windows cmd.
Let's learn some Windows shell commands that match some commands we learned in the worksheet. You can try stepping through command line portion of the worksheet using Windows command prompt but you will run into differences. Understanding the difference of a few basic commands may be helpful.
- Open Windows command prompt by typing "cmd" in the Windows task bar. Launch Command Prompt Desktop app as an Administrator to try using native Windows commands.
Not all of the bash commands are available in Windows.
Here's some equivalent commands from bash to Windows command prompt.
| bash | cmd |
|---|---|
| pwd | cd |
| ls | dir |
| cd | cd |
| ~ | %USERPROFILE% |
| mkdir | mkdir |
| cp | copy |
| cp -r | xcopy |
| mv | move |
| rm | del |
| rm -rf | deltree |
You can find more equivalent commands here.
Play some games
Beat the game at http://overthewire.org/wargames/bandit/. You'll start by entering in the command
ssh bandit0@bandit.labs.overthewire.organd typingbandit0as the password when prompted.The
sshcommand stands for secure shell and is a network protocol, much liketelnet.The higher levels of this game can get decently advanced but take it step by step. You can follow the walk through at https://www.yalpski.net/bandit-wargame for levels 0-17 if you need further help. Always search the internet for anything you don't understand or need further information on!
Play a fun game to sharpen your vim skills. Visit https://vim-adventures.com/.