Skip to content

Vets-Who-Code/terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •