DH 180 // day four
Mackenzie Brooks
January 18, 2018
how computers work
- series of commands
- binary
- layers of abstraction
- humans!
command line
- vs. GUI
- container = shell
- tree structure
syntax
$ command parameters -flag
- $ says start after me
- command = what to do
- parameters = how to do it flag = use this option
print working directory
$ pwd
go to desktop
$ cd ~/Desktop
make directory
$ mkdir bananas
change into bananas
$ cd bananas
return to desktop
$ cd ..
next:
- return to
bananas
- make a new directory
- change into that directory
next:
- type something
- save.
cat file.txt
copy
$ cp file.txt newfile.txt
vim!
$ vim file.txt
Use Google to figure out how to edit the file, save, then exit.
Lab 3
- Type
history
.
- Copy and paste contents to new file.
- Save as lab3.txt in Box.