30  Unix Basics

30.1 Unix Basics lecture

Here’s a recording of this lecture (65 minutes 59 seconds):

Recording

30.2 Unix Basics slides

PDF slide set

30.3 Questions

30.3.1 Question 1

In the file tree on slide 7, if your current directory is backup (inside of thing), how could you change your directory to the other folder with the same name?

Please select the correct options (more than one may be correct).

30.3.2 Question 2

If your command results in an error message about a file not being found, what should you probably do first?

Please select the correct option.

30.3.3 Question 3

What will happen if you enter the command cp file1 file2 but file2 is a file that already exists?

Please select the correct option.

30.3.4 Question 4

What command will set the file permissions so that you, the owner/user, have rwx permissions without changing other users’ permissions?

Please select the correct option.

30.3.5 Question 5

What is the difference between tail -n20 file and tail -n+20 file?

Please select the correct option.

30.3.6 Question 6

What git commands will you use to submit your homework (assume your working directory is your homework repository)?

Please select the correct option.

30.3.7 Question 7

How do you print out the exit status of the last process?

Please select the correct option.

30.3.8 Question 8

What is the first thing you should do after logging on to the computing cluster?

Please select the correct option.