2. Introduction to the command line

Exercise: Exploring the filesystem

  1. Connect to your AWS instance

  2. Type the ls command - what is the output?

Solution
$ ls
CourseData  R  workspace

The ls command lists the contents of a working directory.


  1. Type the pwd command - what is the output?
Solution
$ pwd
/home/ubuntu

The pwd command shows the absolute path to the working directory.