Question: what is difference between cat and vi?
Answer: cat command allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files. Whereas vi is one of the many ways to edit files in Unix. This editor enable you to edit lines in context with other lines in the file.