Day 3- Basic Linux Commands

Commands:
View the content of a file (cat):
shellCopy code$ cat file.txtChange the access permissions of files (chmod):
shellCopy code$ chmod permissions filenameCheck the command history (history):
shellCopy code$ historyRemove a directory/folder (rmdir):
shellCopy code$ rmdir folder_nameCreate a file and view the content (touch and cat):
shellCopy code$ touch fruits.txt $ cat fruits.txtAdd content to devops.txt (echo and redirect):
swiftCopy code$ echo -e "Apple\nMango\nBanana\nCherry\nKiwi\nOrange\nGuava" > devops.txtShow only the top three fruits (head):
shellCopy code$ head -n 3 devops.txtShow only the bottom three fruits (tail):
shellCopy code$ tail -n 3 devops.txtCreate another file Colors.txt and view the content (touch and cat):
shellCopy code$ touch Colors.txt $ cat Colors.txtAdd content to Colors.txt (echo and redirect):
swiftCopy code$ echo -e "Red\nPink\nWhite\nBlack\nBlue\nOrange\nPurple\nGrey" > Colors.txtFind the difference between fruits.txt and Colors.txt file (diff):
rubyCopy code$ diff fruits.txt Colors.txt


