Skip to content

vets-who-code-classroom-terminal-terminal-navigation-assignment-terminal created by GitHub Classroom

Notifications You must be signed in to change notification settings

Vets-Who-Code/vets-who-code-classroom-terminal-terminal-navigation-assignment-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Terminal Navigation Assignment

Objective

This assignment will help you practice essential terminal navigation commands used in Linux/macOS.

By the end of this assignment, you should be able to:

  • Navigate directories using the terminal.
  • Use commands like pwd, ls, cd, find, cat, and grep.
  • Locate and read files using command-line tools.

Assignment Instructions

Step 1: Set Up Your Environment

  1. Open the GitHub Codespace or your terminal if working locally.
  2. Verify that your working directory contains the following structure:
/terminal-navigation-assignment
│── practice-directory/
│   ├── folder1/
│   │   ├── fileA.txt
│   ├── folder2/
│   │   ├── fileB.txt
│   ├── fileC.txt

Step 2: Complete the Following Tasks

Use terminal commands to complete each task below.

  1. Print your current working directory (absolute path).
pwd
  1. List all files and directories inside practice-directory.
ls practice-directory
  1. Change into folder1 and verify you are inside it.
cd practice-directory/folder1
pwd
  1. Display the contents of fileA.txt.
cat fileA.txt
  1. Return to the terminal-navigation-assignment root directory in a single command.
cd ../../
  1. Find all .txt files inside practice-directory.
find practice-directory -name "*.txt"
  1. Search for the word "Navigation" inside fileC.txt.
grep "Navigation" practice-directory/fileC.txt

Step 3: Submit Your Work

  1. Run the test script to verify your work:
bash test_navigation.sh
  1. If all tests pass, commit and push your work:
git add .
git commit -m "Completed Terminal Navigation Assignment"
git push
  1. Your work will be automatically graded using GitHub Actions.

Evaluation Criteria

Your assignment will be automatically graded based on: ✅ Correct execution of each command. ✅ Accurate directory navigation. ✅ Successful file searching and reading. ✅ Passing all tests in test_navigation.sh.

Good luck and happy navigating! 🚀

About

vets-who-code-classroom-terminal-terminal-navigation-assignment-terminal created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published