1.

Which command is used for removing/deleting files in UNIX?(a) rmdir(b) rm(c) del(d) mvThe question was asked during a job interview.This intriguing question originated from Deleting and Renaming files: rm and mv Command topic in chapter Handling Ordinary Files of Unix

Answer»

Correct option is (b) rm

Explanation: rm command is used in UNIX to remove one or more files. It operates silently and should be used with caution. The filename of the FILE to be deleted is provided as an ARGUMENT to rm command. For example, FOLLOWING command deletes abd.txt file.



Discussion

No Comment Found

Related InterviewSolutions