1.

The command cd * will work.(a) True(b) FalseThe question was posed to me during a job interview.I need to ask this question from Pattern Matching, Escaping and Quoting topic in chapter The Shell of Unix

Answer»

Right option is (a) True

The explanation is: As we know that CD command is used for changing directories, the command cd * will WORK only when there is only one file in the CURRENT directory and that file should ALSO be a directory. Otherwise, this command is invalid.



Discussion

No Comment Found

Related InterviewSolutions