Question 1:
Create a text file with cat containing the following text:
anna
annabelle
bella
annna
belle anna
anna belle
Question 2:cat << EOF > file.txt
anna
annabelle
bella
annna
belle anna
anna belle
EOF
Answer 2:grep anna file.txt
Answer 3:tail -1 file.txt
Answer 4:tac file.txt