#day3 - Basics Linux commands

#day3 - Basics Linux commands

Table of contents

No heading

No headings in the article.

Task: What is the linux command to

  1. To view what's written in a file.

    we use the cat command to read the content of the file.

  2. To change the access permissions of files.

  3. To check which commands you have run till now.

  4. To remove a directory/ Folder.

  5. To create a fruits.txt file and to view the content.

    • create fruits.txt via touch command

  • edit fruits.txt to enter some values

  • now read fruits.txt file content via the cat command

  1. Add content in devops.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.

  2. Show only the top three fruits from the file.

  3. Show only the bottom three fruits from the file.

  4. To create another file Colors.txt and to view the content.

  5. Add content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, and Grey.

  6. To find the difference between fruits.txt and Colors.txt files.

Keep Learning!