Unix Interview Question and Answers

30. What is a pipe?
  A pipe is two or more commands separated by pipe char ‘|’. That tells the shell to arrange for the output of the preceding command to be passed as input to the following command.
31. How to close the current user account?
  exit
32. What is the use of grep command?
  grep is a pattern search command. It searches for the pattern, specified in the command line with appropriate option, in a file(s).
33. which command is used to identify the type of the file?
  file “grep” means Globally search a regular expression and print it.
12345678

Page 7 of 8