Day3: Linux Commands.
To view what's written in file:
cat is used to show the content of the file on the terminal.
chmod is used to change the access permissions of files in a directory.
history is used to check which commands you have run till now.
rm -rf <filename> is used to remove the directory.
touch fruits.txt is used to create the file. to view the content we can use vi fruits.txt.
to show only top three fruits, we use head -3 fruits.txt
to show the bottom three fruits' names. we use tail -3 fruits.txt
To find the difference between the fruits.txt and colors.txt. we use diff command.