A Quick Introduction to Unix/exercises1


Task One edit

Change to the bash shell.

Click to see the correct command line
% bash

Task Two edit

Use the command pwd. Write down the full path to your home directory.


Click to see the correct command lines
% pwd

Task Three edit

Look at the image of an example filestructure tree here. Trace and write down the path from the root to the folder ccaastu

Click to see the correct response
/nfs/fs-i/UM0098/ccaastu

Task Four edit

Change your current view to your home directory.

Click to see the correct command
% cd ~

List all the files with the extension .bat.

Click to see the correct command
% ls *.bat

How many files are there? ls -1 | wc -l