These questions are included to facilitate question during our scheduled class time on Tuesdays. They are not graded and you don’t need to submit your answers anywhere - they’re just here to help you get practice with the material.
-
We won’t have time to cover all the commands we want to in this class. Lots of useful commands will be included in the lecture slides. You’ll need this for your homework - try finding the commands that do the following:
- Move a file from one location to another
- Delete a file
- Copy a file
-
Do you know the difference between the terminal and the shell? If not, do you have any educated guesses?
-
What is the command to list all files in the current directory, and recursively list the files in all subdirectories?
-
What is the flag we would pass to
ls
to sort files by size? (try searching theman
page instead of just scrolling!) -
Using
ssh
, can you print out the contents of your home directory onattu
without logging intoattu
? (You’ll still need your password, but you can do this without opening a login shell onattu
). -
find
is a command that we will learn about more in this class that allows you to search through your file system. Suppose that we are in thelecture1
directory from the videos (i.e. we have adir1
anddir2
subdirectory). Without actually running the command, do you think we could runfind dir1 dir2
(i.e. give it two directories are arguments)? Why or why not?