-
How is the command “$cat file2 “ different from “$cat >file2
Both the commands mean the same , the file file1 is read and its contents are copied to file2
-
What is the difference between cat and more command?
Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page.
-
How many prompts are available in a UNIX system?
Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt).