Terminal open (possibly hidden) file using TextEdit

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 been trying to run the following command:



sudo open -a textEdit ~/.bashrc. I get an error stating that the file does not exist. But then sudo nano ~/.bashrc opens up fine. I am not familiar with the nano interface nor command line so I wish to open the file in textEdit.



Is the file truely not there or is it a hidden file?







share|improve this question



















  • i just tried your command: open -a textEdit ~/.bashrc and it worked fine on my machine. Are you in your home directory when you issue the command?
    – jmh
    Jul 18 at 20:29










  • you can unhide all files by typing CMD + SHIFT + .
    – jmh
    Jul 18 at 20:33










  • Why do you want to edit .bashrc with sudo ?
    – RoVo
    Jul 24 at 8:33














up vote
0
down vote

favorite












I have been trying to run the following command:



sudo open -a textEdit ~/.bashrc. I get an error stating that the file does not exist. But then sudo nano ~/.bashrc opens up fine. I am not familiar with the nano interface nor command line so I wish to open the file in textEdit.



Is the file truely not there or is it a hidden file?







share|improve this question



















  • i just tried your command: open -a textEdit ~/.bashrc and it worked fine on my machine. Are you in your home directory when you issue the command?
    – jmh
    Jul 18 at 20:29










  • you can unhide all files by typing CMD + SHIFT + .
    – jmh
    Jul 18 at 20:33










  • Why do you want to edit .bashrc with sudo ?
    – RoVo
    Jul 24 at 8:33












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have been trying to run the following command:



sudo open -a textEdit ~/.bashrc. I get an error stating that the file does not exist. But then sudo nano ~/.bashrc opens up fine. I am not familiar with the nano interface nor command line so I wish to open the file in textEdit.



Is the file truely not there or is it a hidden file?







share|improve this question











I have been trying to run the following command:



sudo open -a textEdit ~/.bashrc. I get an error stating that the file does not exist. But then sudo nano ~/.bashrc opens up fine. I am not familiar with the nano interface nor command line so I wish to open the file in textEdit.



Is the file truely not there or is it a hidden file?









share|improve this question










share|improve this question




share|improve this question









asked Jul 12 at 23:49









pnizzle

1011




1011











  • i just tried your command: open -a textEdit ~/.bashrc and it worked fine on my machine. Are you in your home directory when you issue the command?
    – jmh
    Jul 18 at 20:29










  • you can unhide all files by typing CMD + SHIFT + .
    – jmh
    Jul 18 at 20:33










  • Why do you want to edit .bashrc with sudo ?
    – RoVo
    Jul 24 at 8:33
















  • i just tried your command: open -a textEdit ~/.bashrc and it worked fine on my machine. Are you in your home directory when you issue the command?
    – jmh
    Jul 18 at 20:29










  • you can unhide all files by typing CMD + SHIFT + .
    – jmh
    Jul 18 at 20:33










  • Why do you want to edit .bashrc with sudo ?
    – RoVo
    Jul 24 at 8:33















i just tried your command: open -a textEdit ~/.bashrc and it worked fine on my machine. Are you in your home directory when you issue the command?
– jmh
Jul 18 at 20:29




i just tried your command: open -a textEdit ~/.bashrc and it worked fine on my machine. Are you in your home directory when you issue the command?
– jmh
Jul 18 at 20:29












you can unhide all files by typing CMD + SHIFT + .
– jmh
Jul 18 at 20:33




you can unhide all files by typing CMD + SHIFT + .
– jmh
Jul 18 at 20:33












Why do you want to edit .bashrc with sudo ?
– RoVo
Jul 24 at 8:33




Why do you want to edit .bashrc with sudo ?
– RoVo
Jul 24 at 8:33










1 Answer
1






active

oldest

votes

















up vote
1
down vote













You should first unhide all files by typing CMD + Shift + . Then try opening the file with textEdit,






share|improve this answer























    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f455006%2fterminal-open-possibly-hidden-file-using-textedit%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 should first unhide all files by typing CMD + Shift + . Then try opening the file with textEdit,






    share|improve this answer



























      up vote
      1
      down vote













      You should first unhide all files by typing CMD + Shift + . Then try opening the file with textEdit,






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        You should first unhide all files by typing CMD + Shift + . Then try opening the file with textEdit,






        share|improve this answer















        You should first unhide all files by typing CMD + Shift + . Then try opening the file with textEdit,







        share|improve this answer















        share|improve this answer



        share|improve this answer








        edited Jul 24 at 2:01









        slm♦

        233k65479650




        233k65479650











        answered Jul 24 at 1:07









        jmh

        1135




        1135






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f455006%2fterminal-open-possibly-hidden-file-using-textedit%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            The Forum (Inglewood, California)

            Palaiologos