rm: cannot delete "music.dir": is a directory

rm command

-f: Delete directly without giving any instructions during deletion.

-r: Recursively delete all directories and subdirectories listed in the parameter.

-i: In contrast to the -f option, delete interactively, giving a prompt as each file is deleted.

To delete a file, you can use the rm command directly. If you delete a directory, you must use the option "-r", for example:

# rm -r music.dir

After executing the above command successfully executed delete the folder directory

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326122162&siteId=291194637