Remove parent and sub directory

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-3
down vote

favorite












sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt


Your current directory is stenton. Remove the accounting directory:



You entered: rm -r /admin/accounting
Please try again.



Your current directory is stenton. Remove the accounting directory:



Shouldn't rm -rf /admin/accounting work?










share|improve this question



















  • 1




    Not unless stenton is also the system's root, but almost definitely / is.
    – mikeserv
    Oct 29 '14 at 7:04











  • This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the student’s OWN work".
    – JdeBP
    Oct 22 '16 at 1:54














up vote
-3
down vote

favorite












sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt


Your current directory is stenton. Remove the accounting directory:



You entered: rm -r /admin/accounting
Please try again.



Your current directory is stenton. Remove the accounting directory:



Shouldn't rm -rf /admin/accounting work?










share|improve this question



















  • 1




    Not unless stenton is also the system's root, but almost definitely / is.
    – mikeserv
    Oct 29 '14 at 7:04











  • This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the student’s OWN work".
    – JdeBP
    Oct 22 '16 at 1:54












up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt


Your current directory is stenton. Remove the accounting directory:



You entered: rm -r /admin/accounting
Please try again.



Your current directory is stenton. Remove the accounting directory:



Shouldn't rm -rf /admin/accounting work?










share|improve this question















sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt


Your current directory is stenton. Remove the accounting directory:



You entered: rm -r /admin/accounting
Please try again.



Your current directory is stenton. Remove the accounting directory:



Shouldn't rm -rf /admin/accounting work?







rm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 29 '14 at 7:18









chaos

34.5k771114




34.5k771114










asked Oct 29 '14 at 6:53









John

13




13







  • 1




    Not unless stenton is also the system's root, but almost definitely / is.
    – mikeserv
    Oct 29 '14 at 7:04











  • This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the student’s OWN work".
    – JdeBP
    Oct 22 '16 at 1:54












  • 1




    Not unless stenton is also the system's root, but almost definitely / is.
    – mikeserv
    Oct 29 '14 at 7:04











  • This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the student’s OWN work".
    – JdeBP
    Oct 22 '16 at 1:54







1




1




Not unless stenton is also the system's root, but almost definitely / is.
– mikeserv
Oct 29 '14 at 7:04





Not unless stenton is also the system's root, but almost definitely / is.
– mikeserv
Oct 29 '14 at 7:04













This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the student’s OWN work".
– JdeBP
Oct 22 '16 at 1:54




This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the student’s OWN work".
– JdeBP
Oct 22 '16 at 1:54










2 Answers
2






active

oldest

votes

















up vote
7
down vote













Paths that start with / are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting to refer to a path relative to ., which is the current directory.






share|improve this answer




















  • Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
    – John
    Oct 29 '14 at 7:10

















up vote
0
down vote













110% works



rm -r admin/accounting






share|improve this answer








New contributor




user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f164762%2fremove-parent-and-sub-directory%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    7
    down vote













    Paths that start with / are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting to refer to a path relative to ., which is the current directory.






    share|improve this answer




















    • Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
      – John
      Oct 29 '14 at 7:10














    up vote
    7
    down vote













    Paths that start with / are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting to refer to a path relative to ., which is the current directory.






    share|improve this answer




















    • Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
      – John
      Oct 29 '14 at 7:10












    up vote
    7
    down vote










    up vote
    7
    down vote









    Paths that start with / are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting to refer to a path relative to ., which is the current directory.






    share|improve this answer












    Paths that start with / are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting to refer to a path relative to ., which is the current directory.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 29 '14 at 7:07









    M Conrad

    57628




    57628











    • Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
      – John
      Oct 29 '14 at 7:10
















    • Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
      – John
      Oct 29 '14 at 7:10















    Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
    – John
    Oct 29 '14 at 7:10




    Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
    – John
    Oct 29 '14 at 7:10












    up vote
    0
    down vote













    110% works



    rm -r admin/accounting






    share|improve this answer








    New contributor




    user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote













      110% works



      rm -r admin/accounting






      share|improve this answer








      New contributor




      user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        0
        down vote










        up vote
        0
        down vote









        110% works



        rm -r admin/accounting






        share|improve this answer








        New contributor




        user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        110% works



        rm -r admin/accounting







        share|improve this answer








        New contributor




        user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 19 mins ago









        user320097

        1




        1




        New contributor




        user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        user320097 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f164762%2fremove-parent-and-sub-directory%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay