GithubHelp home page GithubHelp logo

emr13 / command-line Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dhri-curriculum/command-line

0.0 0.0 0.0 25.5 MB

@DHRI-Curriculum Session on the command line, a means of interacting with your computer programmatically through text.

Home Page: http://www.dhinstitutes.org

License: Creative Commons Attribution Share Alike 4.0 International

command-line's Introduction

Introduction to the Command Line

By this point in our academic careers, most of us have figured out some ways we like to interact with computers. Whether that involves avoiding them as much as possible or constantly testing new software, we likely have some ideas about how we feel comfortable getting things done. How would you show a person who had never seen a computer, say Kimmy Schmidt or Brendan Fraser in Blast from the Past, how to do something on your computer?

Many of us would explain what a screen and a cursor are, and then show how to point and click on icons. This approach relies on a graphical user interface, or GUI (pronounced "gooey!").

Today we're going to explore another way to make your computer do things: through the command line. Instead of pointing and clicking, we'll be typing in either git bash (Windows) or terminal (macOS) to tell the computer directly what task we'd like it to perform.

While this new technique can seem intimidating if you haven't used text-based interfaces before, luckily, you can use 90% of the functionality of the command line by becoming comfortable with a very small set of the most common commands.

In this session, we will:

  • learn common commands to create files (touch and echo)
  • learn commands to create directories (mkdir)
  • navigate our file structure using change directory (cd), print working directory (pwd), and list (ls)
  • move content from one place to another using redirects (>) and pipes (|)
  • explore a comma separated values (.csv) dataset using word and line counts, head and tail, and the concatenate command cat
  • search text files using the grep command
  • create and sort cheat sheets for the commands we learn

Get Started >>>


What is the command line?
Working with text
Why is the command line useful?
Getting to the command line
Navigation
Creating files and folders
Creating a cheat sheet
Pipes
Exploring text data
Searching text data
Summary of what we've covered

Resources

Commands cheat sheet
More on text editors
Other useful commands
Further challenges
Glossary


Session Leader: Kelsey Chatlosh

Based on previous work by Patrick Smyth, Mary Catherine McKinniburgh, and Jojo Karlin

Creative Commons License

Digital Research Institute (DRI) Curriculum by Graduate Center Digital Initiatives is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at https://github.com/DHRI-Curriculum. When sharing this material or derivative works, preserve this paragraph, changing only the title of the derivative work, or provide comparable attribution.

command-line's People

Contributors

smythp avatar jojokarlin avatar kallewesterling avatar kchatlosh avatar mckinniburgh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.