Sitemap

#90 days of DevOps 🌼

2 min readAug 10, 2023

--

Day 03 : Day 3 Task: Basic Linux Commands

Task: What is the linux command to

  1. To view what’s written in a file. — cat
Press enter or click to view image in full size

2. To change the access permissions of files. — chmod 777 filename

Press enter or click to view image in full size

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

Press enter or click to view image in full size

4. To remove a directory/ Folder.

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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

Get Sharmabhagya’s stories in your inbox

Join Medium for free to get updates from this writer.

7. To Show only top three fruits from the file.

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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

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

Press enter or click to view image in full size

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

Press enter or click to view image in full size

--

--

Sharmabhagya
Sharmabhagya

Written by Sharmabhagya

Security- GRC, fashion and writing