PDF Version Available
This document is also available in PDF format: filesandpaths.pdf
The PDF version includes bookmarks for easy navigation and is optimized for printing.
Accessibility Notice
This document is also available in HTML format at:
https://aholdengouveia.name/IntroLinux/labs/filesandpaths.html
The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.
Objectives:
- Navigate the Linux file system using both absolute and relative paths
- Perform basic file management operations, including creating, copying, moving, and deleting files and directories
References
References, a video, a PowerPoint and some notes are available at my website https://www.aholdengouveia.name/IntroLinux/filesandpaths.html
Complete the following problems:
- Use pwd command to display and record the absolute path of your current working directory.
- Create two new directories using mkdir
- Use touch command to create five files
- Navigate into one of the directories using cd
- Move one file from your home directory into your current folder using a relative path
- Use ls to confirm it moved
- Move one file into the folder using its absolute path
- Use ls to confirm it moved
- Create a duplicate of one file in your folder and name the copy FILENAMEbackup using the cp command and relative paths
- Delete one file in your home folder using rm
- Perform a long listing ls -l of the home directory to view the final file details and permissions
Deliverables
A document containing the exact commands used for each numbered step, include clearly labelled screenshots of solution showing the successful execution of these commands as proof of testing.