Skip to content

Lesson 2: Practice questions

Question 1:

What command is used to check the directory in which the user is in?

Solution

pwd

Question 2:

What command is used to change to another directory.

Solution

cd

Question 3:

Give an absolute and relative file path

Solution

An absolute file path starts at the root (ie. /data/username/example.txt)

A relative file path references the current directory (ie. ./example.txt) where . denotes here in the current folder.

Question 4:

Given that you are in the /data/username/lesson2 folder, how do you go back up one directory back to /data/username.

Solution

cd ..

Question 5:

How do we list directory content?

Solution

ls where the -1 option prints the items one line at a time and -l gives a detailed view of the directory content include perfmissions.

Question 6:

What command is used to change file or folder permissions?

Solution

chmod

Question 7:

What is the preferred method for transferring large data on Biowulf?

Solution

Globus