Accidentally created additional folder while trying to extend swap memory in Ubuntu 18.04 LTS

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








up vote
0
down vote

favorite












I have little to zero knowledge about Ubuntu and only have recently installed it on my laptop. I wanted to extend the swap memory so i followed the tutorial at https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 . In the process, I accidentally created an unnecessary folder that takes a whopping 13gigs of storage. I want to delete the
"swa[fo" https://i.stack.imgur.com/qGPky.png
directory from my device. Thank you.







share|improve this question
















  • 1




    Please copy the text instead of adding image to the question
    – Romeo Ninov
    May 24 at 20:13














up vote
0
down vote

favorite












I have little to zero knowledge about Ubuntu and only have recently installed it on my laptop. I wanted to extend the swap memory so i followed the tutorial at https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 . In the process, I accidentally created an unnecessary folder that takes a whopping 13gigs of storage. I want to delete the
"swa[fo" https://i.stack.imgur.com/qGPky.png
directory from my device. Thank you.







share|improve this question
















  • 1




    Please copy the text instead of adding image to the question
    – Romeo Ninov
    May 24 at 20:13












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have little to zero knowledge about Ubuntu and only have recently installed it on my laptop. I wanted to extend the swap memory so i followed the tutorial at https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 . In the process, I accidentally created an unnecessary folder that takes a whopping 13gigs of storage. I want to delete the
"swa[fo" https://i.stack.imgur.com/qGPky.png
directory from my device. Thank you.







share|improve this question












I have little to zero knowledge about Ubuntu and only have recently installed it on my laptop. I wanted to extend the swap memory so i followed the tutorial at https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 . In the process, I accidentally created an unnecessary folder that takes a whopping 13gigs of storage. I want to delete the
"swa[fo" https://i.stack.imgur.com/qGPky.png
directory from my device. Thank you.









share|improve this question











share|improve this question




share|improve this question










asked May 24 at 20:05









Nikhil Shrestha

1




1







  • 1




    Please copy the text instead of adding image to the question
    – Romeo Ninov
    May 24 at 20:13












  • 1




    Please copy the text instead of adding image to the question
    – Romeo Ninov
    May 24 at 20:13







1




1




Please copy the text instead of adding image to the question
– Romeo Ninov
May 24 at 20:13




Please copy the text instead of adding image to the question
– Romeo Ninov
May 24 at 20:13










1 Answer
1






active

oldest

votes

















up vote
1
down vote













You can try to put the name of the file in single quotes:



rm 'swa[fo'


or escape the square bracket



rm swa[fo


P.S. And IMHO this is a file, not a directory. You can check with above command using ls -l instead of rm. If it is really directory use rm -r instead of rm






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039963%2faccidentally-created-additional-folder-while-trying-to-extend-swap-memory-in-ubu%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    You can try to put the name of the file in single quotes:



    rm 'swa[fo'


    or escape the square bracket



    rm swa[fo


    P.S. And IMHO this is a file, not a directory. You can check with above command using ls -l instead of rm. If it is really directory use rm -r instead of rm






    share|improve this answer
























      up vote
      1
      down vote













      You can try to put the name of the file in single quotes:



      rm 'swa[fo'


      or escape the square bracket



      rm swa[fo


      P.S. And IMHO this is a file, not a directory. You can check with above command using ls -l instead of rm. If it is really directory use rm -r instead of rm






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        You can try to put the name of the file in single quotes:



        rm 'swa[fo'


        or escape the square bracket



        rm swa[fo


        P.S. And IMHO this is a file, not a directory. You can check with above command using ls -l instead of rm. If it is really directory use rm -r instead of rm






        share|improve this answer












        You can try to put the name of the file in single quotes:



        rm 'swa[fo'


        or escape the square bracket



        rm swa[fo


        P.S. And IMHO this is a file, not a directory. You can check with above command using ls -l instead of rm. If it is really directory use rm -r instead of rm







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 24 at 20:12









        Romeo Ninov

        39518




        39518






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039963%2faccidentally-created-additional-folder-while-trying-to-extend-swap-memory-in-ubu%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Trouble downloading packages list due to a “Hash sum mismatch” error

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            How do I move numbers in filenames, in a batch renaming operation?