Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Code Harbour - Command Line Talk March 2014

Avatar for Rob Huzzey Rob Huzzey
March 07, 2014

Code Harbour - Command Line Talk March 2014

Avatar for Rob Huzzey

Rob Huzzey

March 07, 2014
Tweet

Other Decks in Technology

Transcript

  1. Rob Huzzey • Web developer • Works for Holiday Extras

    @theHuzz www.robhuzzey.co.uk I don’t consider myself an “expert” at anything. I’m just passionate about the things I do. Friday, 7 March 14
  2. “You can destroy your machine” You can also wipe your

    machine by spilling coffee on it…. does this stop you drinking coffee next to your machine? Friday, 7 March 14
  3. Do you need to know? • Like driving a car.

    You don’t NEED to understand the engine to operate it Friday, 7 March 14
  4. Why command line? • It’s fast... no, really fast! •

    Modular programs • Common UI • It looks pretty cool ;) Friday, 7 March 14
  5. Command line programs are very simple. The power is in

    how you combine them together. Friday, 7 March 14
  6. • echo (print some output) • > (redirect output to

    file) • subl (alias for opening sublime text) • mv (moving / renaming a file) • cat (print contents of a file) • | (pipe output from program to input of next) • tr (string translation) Friday, 7 March 14
  7. • cd (change directory) • ls (list contents of directory)

    • subl (alias for opening sublime text) • git (command line interface for GIT version control) • clear (clears the console screen) Friday, 7 March 14
  8. • touch (creates a file) • && (command connector) •

    subl (alias for opening sublime text) • $_ (use previous argument) • python -m SimpleHTTPServer 8004 (run webserver on port 8004) Friday, 7 March 14
  9. • npm (install node packages) • mkdir (create a directory)

    • && (command connector) • cd (change directory) • $_ (use previous argument) • ls (list contents of directory) • subl (alias for opening sublime text) Friday, 7 March 14
  10. • ssh (remote login program) • ctrl + r (reverse

    history search) • cd (change directory) • ls (list contents of directory) • vi (text editor) • exit (exit ssh session) • clear (clears the console screen) Friday, 7 March 14
  11. Choice I don’t use anywhere near the amount that’s possible

    with command line. I just know that I can use it, I’ve given myself choice. Friday, 7 March 14
  12. Talkshop http://www.meetup.com/Talkshop-Kent/ The purpose of Talkshop is to discuss and

    debate topics affecting business and people in the digital age so we can all share our knowledge and collaborate on ideas for the future Friday, 7 March 14
  13. Useful Links • Addy Osmani’s talk on automating front end

    workflow (https://speakerdeck.com/addyosmani/ automating-front-end-workflow / http://www.youtube.com/watch?v=1OAfGm_cI6Y) • Some useful command line commands • http://dontfearthecommandline.blogspot.co.uk/2009/08/unix-linux-and-bsd-command-line- cheat.html • http://www.westwind.com/reference/os-x/commandline/ • quickcast.io - Awesome piece of software for screen capturing... came in VERY useful (http:// quickcast.io/) Friday, 7 March 14
  14. Cool Star Wars thing Enter this into command line: telnet

    towel.blinkenlights.nl Enjoy ;) Friday, 7 March 14