1.

How can we specify more than one command in the command line at the same time?(a) using ;(b) using >(c) using ==(d) not possibleThis question was addressed to me during an internship interview.My doubt is from Commands in section The Unix Architecture & General Purpose Utilities of Unix

Answer»

Correct option is (a) using ;

The BEST I can explain: UNIX allows us to specify more than one command at the same TIME in the command line. To do so, we have to separate each command from each other using (;). For EXAMPLE, WC file1 ;ls-l file1 . The > symbol allows us to redirects the output of the command(s). For example, wc file1 > file2. Now, file2 will CONTAIN the output produced by the wc file1 command. Both ; and > are called metacharacters.



Discussion

No Comment Found

Related InterviewSolutions