COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
rm dt*
|
|
rm d*t
|
|
rm td*
|
|
rm t*
|
Detailed explanation-1: -You use the rm command to delete files and directories in Linux. For directories, this command can be used to delete a directory entirely – that is, it deletes a directory and all files and subdirectories within the directory.
Detailed explanation-2: -Alternatively, head to the folder containing the files you want to delete, hit Shift + Right Click, and select Open a command window here. Then input “del [filename]” and press Enter.
Detailed explanation-3: -You can use standard UNIX or Linux rm command to delete a file name starting with-or–. All you have to do is instruct the rm command not to follow end of command line flags by passing double dash–option before-foo file name.
Detailed explanation-4: -To delete multiple files at once, simply list all of the file names after the “rm” command. File names should be separated by a space. With the command “rm” followed by multiple file names, you can delete multiple files at once.