Skip to main content

Command Palette

Search for a command to run...

Linux Commands

Published
1 min readView as Markdown
Linux Commands

What is Linux command to-

1.To view what's written in a file-cat filename

2.To change the access permissions of files.

chmod- To provide required permissions.

e.g.-chmod 777-READ WRITE EXECUTE for All

r = read permission
w = write permission
x = execute permission
= no permission

3.To check the history

"history"

4.To remove directory/folder

rm -rf/rm (r===recursively)

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

6.Add contents in devops.txt(1 in each line)-apple,mango,banana,cherry,kiwi,orange,guava

7.To show only top3 fruits from the file

8.To show only bottom3 fruits from the file.

9.To create another files colors.txt and to view the content

10.Add contents in Colors.txt

11.To find the difference between fruits.txt nd colors.txt

More from this blog

Mizan Firdausi

76 posts

👋 Hello there! I'm Mizan firdausi a passionate DevOps engineer with a knack for automating and streamlining software development processes.