Answer Posted / Harishpal Singh
In Linux commands, there are four main types of sentences: Command, Pipe (|), Redirects (>, >>, <), and Background Processes ( & ).nCommand: ls -l (displays detailed directory listing)nPipe: ls | grep 'documents' (searches for the word 'documents' in the directory listing)nRedirect Output >: ls > file.txt (writes the output of ls command to a file named file.txt)nRedirect Output >>: echo 'Hello World' >> file.txt (appends 'Hello World' to file.txt if it exists, or creates it if not)nBackground Process: ps & (runs the ps command in the background)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers