forked from tri-cods/command-line
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.qmd
More file actions
53 lines (39 loc) · 3.52 KB
/
index.qmd
File metadata and controls
53 lines (39 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "Overview"
---
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 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!"). Bust just as with any piece of technololgy, the GUI was introduced as a way of facilitating computer navigation. The GUI was never inate to computers. (For more see this 5min clip titled [Mother of all Demos](https://youtu.be/B6rKUf9DWRI))
In this tutorial 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 (OSX) 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 and display 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 >>>](sections/what-is-the-command-line.md)
[Glossary >>>](sections/glossary.md)
-----
[What is the command line?](sections/what-is-the-command-line.md)
[Working with text](sections/text-editors.md)
[Why is the command line useful?](sections/why-is-the-command-line-useful.md)
[Getting to the command line](sections/getting-to-the-command-line.md)
[Navigation](sections/navigation.md)
[Creating files and folders](sections/creating-files-and-folders.md)
[Creating a cheat sheet](sections/creating-a-cheat-sheet.md)
[Pipes](sections/pipes.md)
[Exploring text data](sections/data.md)
[Searching text data](sections/grep.md)
[Summary of what we've covered](sections/summary.md)
### Resources
[Commands cheat sheet](sections/commands.md)
[Further challenges](sections/challenges.md)
[Glossary](sections/glossary.md)
-----
Current editor: Alice McGrath
Past editors: Roberto Vargas, Alicia Peaker
Based on previous work by Patrick Smyth, Mary Catherine McKinniburgh, Jojo Karlin, and Kelsey Chatlosh.
[](http://creativecommons.org/licenses/by-sa/4.0/)
[Digital Research Institute (DRI) Curriculum](http://purl.org/dc/terms/) by [Graduate Center Digital Initiatives](https://gcdi.commons.gc.cuny.edu/) is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). 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.