Lab 1. Introduction to Bash

Due: 2025-02-16 at 23:59

In this lab, you will explore the Bash shell and learn to use some of the standard command line utilities to

  • navigate the file system;
  • list the contents of a directory;
  • create, move/rename, and delete files and directories;
  • download files from the internet;
  • read manual pages to learn how to use these utilities; and
  • upload files to GitHub.

This lab is to be completed individually.

Setup

Log in to one of the lab machines and open a terminal by clicking the Show Applications button in the lower left corner of the desktop and open Terminal.

To get started, continue on to Part 1!

Command Reference

For your reference, the following is a list of relevant commands and their descriptions.

  • cd Changes current working directory
  • ls Lists the contents of a diretory
  • pwd Prints the absolute path of the current working directory
  • mkdir Creates a new directory
  • cp Copies files or (with a suitable option) directories
  • rm Removes files or (with a suitable option) directories
  • mv Moves (or renames) files and directories
  • rmdir Removes an empty directory (this is less commonly used than rm for this operation)
  • man This shows a manual page which provides a bunch of information about many of the shell commands and programs
  • wget Downloads files from the Internet
  • grep Searches text files for a given pattern