美文网首页
Remove a directory

Remove a directory

作者: 成江 | 来源:发表于2018-01-07 09:20 被阅读1次

    To remove a directory that contains other files or directories, use the following command.

    rm -r mydir
    // or we can use this command
    rmdir mydir
    

    Executing the above command would delete all files and directories within the directory named in the command. However, it would also present a prompt for approval to delete each of the files. If you don't want to receive a prompt for each file, use the following command instead.

    rm -rf mydir
    

    相关文章

      网友评论

          本文标题:Remove a directory

          本文链接:https://www.haomeiwen.com/subject/txcpnxtx.html