31  Unix Streams, Pipes, Scripts

31.1 Unix Streams, Pipes, Scripts

Here’s a recording of this lecture (53 minutes 54 seconds):

Recording

31.2 Unix Basics slides

PDF slide set

31.3 Questions

31.3.1 Question 1

Which of the following statements about typing commands into the terminal is correct?

31.3.2 Question 2

What is the difference between the > and >> operators?

31.3.3 Question 3

How could you print lines 50-60 of a file? There are two correct answers.

31.3.4 Question 4

For an ordinary bash script (not a script you need to submit as a Slurm job), what lines should you always include?

31.3.5 Question 5

For a slurm script, what additional lines do you need to add at the top of a bash script, after the line with #!/bin/bash?

31.3.6 Question 6

If you want to run the bash script script.sh with three command-line arguments, hello and 100 and goodbye, what command do you use?

31.3.7 Question 7

If my username is xyz123, how do I check the status of my Slurm jobs?

31.3.8 Question 8

If my Slurm job quits because of an error, what should I do?