Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added solution.md for Day 02: Basic Linux Commands with Sample Output Images #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Amitabh-DevOps
Copy link

@Amitabh-DevOps Amitabh-DevOps commented Oct 11, 2024

Description:

This pull request adds the solution.md file for Day 02 of the 90DaysOfDevOps challenge. The file provides an overview of basic Linux commands along with sample output images for better understanding. It covers commands like ls, pwd, cd, mkdir, and more. Each command is explained with examples, followed by corresponding output images to help beginners visualize command execution.

Key changes:

  • Added descriptions and examples of basic Linux commands.
  • Included sample output images to demonstrate the results of the commands.
  • Organized commands into categories: listing commands and directory commands.
  • Focused on creating beginner-friendly content with clear instructions and visual aids.

This contribution aims to make Day 02 of the 90DaysOfDevOps challenge easier for beginners to follow.

Summary by CodeRabbit

  • New Features
    • Introduced a comprehensive guide on basic Linux commands, including various ls and directory commands.
    • Each command is accompanied by descriptions and sample output images for better understanding.
    • Organized structure with clear headings for easy navigation.

@Amitabh-DevOps
Copy link
Author

Review my commit

@Amitabh-DevOps
Copy link
Author

@coderabbitai full review

Copy link

coderabbitai bot commented Oct 23, 2024

✅ Actions performed

Full review triggered.

Copy link

coderabbitai bot commented Oct 23, 2024

Walkthrough

The changes consist of a detailed guide on basic Linux commands, emphasizing listing and directory commands. It includes explanations and examples for various ls commands, such as ls, ls -l, and ls -a, as well as directory commands like pwd, cd, and mkdir. Each command is accompanied by descriptive text and sample output images, organized into sections with clear headings and subheadings for improved navigation.

Changes

File Change Summary
2024/day02/solution.md Added a comprehensive guide on basic Linux commands, including various ls and directory commands with explanations and sample outputs.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant LinuxCommands
    participant Documentation

    User->>Documentation: Access guide
    Documentation->>LinuxCommands: Display command list
    LinuxCommands-->>Documentation: Provide command details
    Documentation-->>User: Show command explanations and examples
Loading

🐇 "In the land of commands, we hop with glee,
With ls and cd, so easy to see.
Directories and listings, all in a row,
A guide for the brave, now ready to go!
So jump into Linux, let’s play and explore,
With commands at our paws, we’ll learn even more!" 🐇


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (3)
2024/day02/solution.md (3)

1-3: Improve document structure consistency

The document structure could be improved in the following ways:

  • Consolidate or differentiate the multiple "Examples:" sections
  • Maintain consistent heading levels throughout the document

Consider this structure:

## Basic Linux Commands

### Listing Commands
#### Basic Usage
#### Advanced Examples

### Directory Commands
#### Basic Usage
#### Advanced Examples

Also applies to: 18-19, 85-86, 187-188


206-206: Improve clarity of hidden directory description

The description of making hidden directories could be clearer.

-Make a hidden directory (also . before a file to make it hidden).
+Make a hidden directory by prefixing the name with a dot (.). This same technique can be used to create hidden files.
🧰 Tools
🪛 LanguageTool

[style] ~206-~206: The adverb ‘also’ is commonly used to connect clauses and isn’t usually used at the end of a phrase or before a conjunction. Consider replacing it with a more formal alternative.
Context: ... ``` - #### Make a hidden directory (also . before a file to make it hidden). ##...

(ALSO_AS_WELL)

🪛 Markdownlint

206-206: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


13-13: Improve image naming convention

The current image naming convention has several issues:

  • Filenames contain spaces and special characters which could cause problems
  • Generic screenshot names make maintenance difficult
  • No clear connection between image names and the commands they represent

Consider renaming images to follow this pattern:

./images/command-name-example.png

Examples:
./images/ls-basic-output.png
./images/ls-l-long-format.png
./images/mkdir-multiple-dirs.png

Also applies to: 28-28, 41-41, 54-54, 67-67, 80-80, 95-95, 108-108, 126-126, 130-130, 143-143, 156-156, 169-169, 182-182, 197-197, 210-210, 223-223, 236-236, 249-249, 253-253

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 3cd81c7 and 719a560.

⛔ Files ignored due to path filters (20)
  • 2024/day02/images/Screenshot 2024-10-10 175519.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 175531.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 175558.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 175830.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 175853.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 175920.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 175934.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180007.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180104.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180120.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180145.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180259.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180356.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180434.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180513.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180544.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 180615.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 181323.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 181434.png is excluded by !**/*.png
  • 2024/day02/images/Screenshot 2024-10-10 181655.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • 2024/day02/solution.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
2024/day02/solution.md

[style] ~206-~206: The adverb ‘also’ is commonly used to connect clauses and isn’t usually used at the end of a phrase or before a conjunction. Consider replacing it with a more formal alternative.
Context: ... ``` - #### Make a hidden directory (also . before a file to make it hidden). ##...

(ALSO_AS_WELL)

🪛 Markdownlint
2024/day02/solution.md

24-24: Expected: h3; Actual: h4
Heading levels should only increment by one level at a time

(MD001, heading-increment)


193-193: Expected: h3; Actual: h4
Heading levels should only increment by one level at a time

(MD001, heading-increment)


39-39: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


52-52: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


65-65: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


78-78: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


106-106: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


141-141: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


154-154: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


167-167: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


180-180: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


187-187: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


208-208: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


221-221: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


234-234: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


247-247: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


9-9: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


11-11: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


18-18: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


24-24: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


26-26: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


37-37: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


39-39: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


50-50: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


52-52: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


63-63: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


65-65: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


76-76: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


78-78: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


91-91: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


93-93: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


104-104: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


122-122: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


124-124: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


128-128: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


139-139: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


141-141: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


152-152: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


154-154: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


165-165: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


167-167: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


178-178: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


180-180: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


187-187: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


193-193: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


195-195: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


206-206: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


208-208: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


219-219: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


221-221: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


232-232: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


234-234: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


245-245: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


247-247: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


251-251: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

🔇 Additional comments (1)
2024/day02/solution.md (1)

1-255: Overall feedback on the Linux commands guide

This is a comprehensive and well-structured guide that will be valuable for beginners learning Linux commands. The inclusion of sample outputs with images is particularly helpful for understanding command behavior.

While the content is solid, addressing the formatting and structure issues mentioned above will improve the document's maintainability and readability for future contributors.

Let's verify the image paths are valid:

✅ Verification successful

Let me verify the local image paths in the repository structure.


All image paths in the Linux commands guide are valid and properly organized

The verification shows that:

  1. The images directory exists at the correct location: 2024/day02/images/
  2. All screenshot images referenced in the markdown file are present in the images directory with matching filenames
  3. The relative paths used in the markdown (./images/...) correctly point to the actual image locations

The documentation's image references are properly structured and all required images are available in the repository.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if all referenced images exist
for img in $(rg -o '!\[.*?\]\((.*?)\)' | cut -d'(' -f2 | cut -d')' -f1); do
  if [ ! -f "${img#./}" ]; then
    echo "Missing image: $img"
  fi
done

Length of output: 66391


Script:

#!/bin/bash
# Check if the images directory exists and contains the referenced screenshots
fd -t d "images$" .
echo "---"
fd -t f "Screenshot.*\.png" .

Length of output: 1206

🧰 Tools
🪛 LanguageTool

[style] ~206-~206: The adverb ‘also’ is commonly used to connect clauses and isn’t usually used at the end of a phrase or before a conjunction. Consider replacing it with a more formal alternative.
Context: ... ``` - #### Make a hidden directory (also . before a file to make it hidden). ##...

(ALSO_AS_WELL)

🪛 Markdownlint

24-24: Expected: h3; Actual: h4
Heading levels should only increment by one level at a time

(MD001, heading-increment)


193-193: Expected: h3; Actual: h4
Heading levels should only increment by one level at a time

(MD001, heading-increment)


39-39: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


52-52: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


65-65: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


78-78: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


106-106: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


141-141: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


154-154: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


167-167: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


180-180: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


187-187: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


208-208: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


221-221: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


234-234: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


247-247: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


9-9: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


11-11: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


18-18: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


24-24: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


26-26: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


37-37: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


39-39: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


50-50: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


52-52: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


63-63: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


65-65: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


76-76: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


78-78: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


91-91: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


93-93: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


104-104: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


122-122: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


124-124: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


128-128: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


139-139: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


141-141: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


152-152: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


154-154: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


165-165: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


167-167: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


178-178: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


180-180: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


187-187: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


193-193: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


195-195: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


206-206: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


208-208: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


219-219: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


221-221: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


232-232: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


234-234: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


245-245: Punctuation: '.'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


247-247: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


251-251: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


- #### List the subdirectories and files available in the present directory.

#### Sample output image:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix markdown formatting issues

Several markdown formatting issues need to be addressed:

  • Remove trailing punctuation from headings
  • Use consistent heading levels
  • Avoid duplicate heading content

Apply these changes:

  1. Remove colons from "Sample output image" headings
  2. Use unique heading content or combine related images under a single heading
  3. Ensure heading levels increment by only one level at a time

Example format:

### Command Category
#### Command Name
Description of the command

#### Examples
Command example with explanation

#### Output
![Description of the output](./images/command-output.png)

Also applies to: 26-26, 39-39, 52-52, 65-65, 78-78, 93-93, 106-106, 124-124, 128-128, 141-141, 154-154, 167-167, 180-180, 195-195, 208-208, 221-221, 234-234, 247-247, 251-251

🧰 Tools
🪛 Markdownlint

11-11: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant