Day 3: Some more Basic Linux Command

Day 3: Some more Basic Linux Command

ยท

1 min read

#Day3 of #90DaysofDevops challenge

  1. "cat": To view what's written in a file

  2. "chmod": Change the access permissions of files

  3. "history": To check which all commands you have run till now

  4. "rm": To remove a directory/files

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

    "vim" is used to create a file and "cat" to view the content

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

  7. To show only top three fruits from the file

    "head" command is used to display the top lines of the file

  8. To show only the bottom three fruits from the file

    "tail" command is used to display the bottom line

  9. To create another file colors.txt and view the content

  10. Add content in colors.txt (one in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey

  11. To find the difference between fruits.txt and colors.txt file

    "diff" command is used to find the difference between files

Thank you for reading! ๐Ÿ˜‡

-Nidhi

ย