Linux-Part-2
Hello connection,
Today I have completed β my Day:03 blog based on basic Linux commands part-2.
please have a look ππ
like and share your valuable feedback. π
Day 3 Task: Basic Linux Commands
Task: What is the Linux command to
- To view what's written in a file.
#cat file1
- To change the access permissions of files.
#chmod
- To check which commands, you have run till now.
#history
- To remove a directory/ Folder.
#rmdir
- To create a fruits.txt file and to view the content.
#touch fruits.txt
#cat fruits.txt
- Add content in devops.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.
#cat > devops.txt
# cat devops.txt
7.To Show only top three fruits from the file.
#head -3 devops.txt
8.To Show only bottom three fruits from the file.
#tail -3 devops.txt
9.To create another file Colors.txt and to view the content.
# touch Colors.txt
#vi Colors.txt (insert content press I button as add data, then save :wq!)
#cat Colors.txt
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 Colors.txt devops.txt
*************************************************************