Quiz
- I'm not currently sure.
And that's fine. It's okay and normal to feel uncertain without necessarily having a specific question.
- Just going over the key commands.
You'll use "cd", "ls", and "pwd" a lot.
You'll use "cp" when you're copying examples from the course directory to your directory.
- the structure of directories
Usually, you only have to worry about your own directories. So, from your home directory, you might have:
~ public_html cs204 page1.html cs204-assignments mobile/ assign.html
I'll create the cs204-assignments folder for you (it has some magic in it), but you'll create the others.
- I am still slightly confused by the use of the tilde so would like to talk more about that if possible!
Sure. Here are two examples in one very plausible command:
cp ~cs204/public_html/demo-student-page.html ~/public_html/cs204/page1.html
The
~cs204
means the CS 204 course account, because thecs204
immediately follows the tilde.The
~/
means "my" ("your") as in your home directory. In this case, we are copying the file to (thecs204
subfolder of) thepublic_html
that is in your home directory. - I would like to discuss how the asterisk is used as a wildcard. / I didn't really understand the concept of the wildcards. / I found Wildcards a little bit confusing and it would be great if we could go over them in class
Sure. It's most useful when there are lots of files, so I'll demo in the course account
quizzes
folder. - The ssh.
SSH allows us to start a shell on a remote machine. So, on my laptop, I typically have a shell (terminal) window open and logged into the CS 204 account, and another logged into the CS 304 account and another logged in as the administrator, etc. Each one of those uses SSH to connect to the CS server, to one of the many accounts I control.
You only have one account to worry about, so your life is simpler. But you still have to work on a remote machine.
- So there is a way to go deeper in directories' files with the 'cd' command. Is there a way/command to move back up in the file? And is there a way to switch directories?
You can go anywhere using
cd
. You can go there in one command or you can go step by step. You can go to a parent folder usingcd ..
- Making files and directories.
Let's do a demo!
- tarfiles
tarfiles are a way to turn a collection of files and folders into a single thing, which makes it easier to (1) attach to an email, (2) copy to another place, (3) upload/download, (4) etc.
- I would like to practice tar and gzip, since the other commands seem more self-explanatory to me but tar/gzip are new concepts.
Sure. I can tar/gzip the quizzes folder, as an example. Or anything else.