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 directoryls
Lists the contents of a diretorypwd
Prints the absolute path of the current working directorymkdir
Creates a new directorycp
Copies files or (with a suitable option) directoriesrm
Removes files or (with a suitable option) directoriesmv
Moves (or renames) files and directoriesrmdir
Removes an empty directory (this is less commonly used thanrm
for this operation)man
This shows a manual page which provides a bunch of information about many of the shell commands and programswget
Downloads files from the Internetgrep
Searches text files for a given pattern