Edit file from virtual terminalHow to edit. profile from shellUser credentials not recognised in virtual terminalwith wrong pam_environment unable to loginCan't login to my user account.profile edit in terminal log loopWhich edit functions are acceptable in grub?Ubuntu login screen, ctrl+alt+f1 incorrect passwordterminal is illCannot type into terminal - Ubuntu Server 16.04.1ctrl+alt+f1 cause login loop due to my changes on ~/.profile

Find d this ones stumped me help?

Are commoners actually this squishy?

Explanation for why nickel turns green in hydrochloric acid

How much damage will a creature take if it runs across lava while wearing a Ring of Water Walking?

How are hillsides farmed?

How to delete music as it's being played

Intuition for the derivative of the exponential function

Foiled Bank Robbery

How does Berkeley justify existence of other minds?

Why is Microwaved mac & cheese burnt where they touch?

Who is Alice referring to when she was talking to Kate?

Problem with a commutative diagram

Why would shrinking TEMPDB log lead to slowness?

What's the origin of the trope that dragons used to be common but aren't any more?

Response to referee after rejection

Do European politicians typically put their pronouns on their social media pages?

How can I increase the rate of regeneration in humans without the possibility of tumors developing?

Questions about `cs_new:...` and friends and their TeX relatives regarding global, local, long, nopar, protected, expandable and naming

Mutate my DNA sequence

Can someone interview their sibling?

For the Single Entry Schengen visa, do the microstates (Monaco, San Marino and the Vatican City) count?

Is This Constraint Convex?

How to draw 15-puzzle in LaTeX

How does the Powerful Build racial feature affect carrying capacity?



Edit file from virtual terminal


How to edit. profile from shellUser credentials not recognised in virtual terminalwith wrong pam_environment unable to loginCan't login to my user account.profile edit in terminal log loopWhich edit functions are acceptable in grub?Ubuntu login screen, ctrl+alt+f1 incorrect passwordterminal is illCannot type into terminal - Ubuntu Server 16.04.1ctrl+alt+f1 cause login loop due to my changes on ~/.profile






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?










share|improve this question


























  • You can use vi editor. Google using vi editor

    – FedonKadifeli
    May 18 at 15:21











  • Use a non-graphic editor, vi, vim, ed, nano. You will have to read the man page first. Or see if the editor you used left a backup file ~/.profile~.

    – waltinator
    May 18 at 15:23












  • I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH

    – Emil Majer
    May 18 at 15:28











  • I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.

    – Emil Majer
    May 18 at 15:42

















0

















I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?










share|improve this question


























  • You can use vi editor. Google using vi editor

    – FedonKadifeli
    May 18 at 15:21











  • Use a non-graphic editor, vi, vim, ed, nano. You will have to read the man page first. Or see if the editor you used left a backup file ~/.profile~.

    – waltinator
    May 18 at 15:23












  • I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH

    – Emil Majer
    May 18 at 15:28











  • I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.

    – Emil Majer
    May 18 at 15:42













0












0








0








I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?










share|improve this question















I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?







command-line login






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked May 18 at 15:19









Emil MajerEmil Majer

11 bronze badge




11 bronze badge















  • You can use vi editor. Google using vi editor

    – FedonKadifeli
    May 18 at 15:21











  • Use a non-graphic editor, vi, vim, ed, nano. You will have to read the man page first. Or see if the editor you used left a backup file ~/.profile~.

    – waltinator
    May 18 at 15:23












  • I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH

    – Emil Majer
    May 18 at 15:28











  • I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.

    – Emil Majer
    May 18 at 15:42

















  • You can use vi editor. Google using vi editor

    – FedonKadifeli
    May 18 at 15:21











  • Use a non-graphic editor, vi, vim, ed, nano. You will have to read the man page first. Or see if the editor you used left a backup file ~/.profile~.

    – waltinator
    May 18 at 15:23












  • I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH

    – Emil Majer
    May 18 at 15:28











  • I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.

    – Emil Majer
    May 18 at 15:42
















You can use vi editor. Google using vi editor

– FedonKadifeli
May 18 at 15:21





You can use vi editor. Google using vi editor

– FedonKadifeli
May 18 at 15:21













Use a non-graphic editor, vi, vim, ed, nano. You will have to read the man page first. Or see if the editor you used left a backup file ~/.profile~.

– waltinator
May 18 at 15:23






Use a non-graphic editor, vi, vim, ed, nano. You will have to read the man page first. Or see if the editor you used left a backup file ~/.profile~.

– waltinator
May 18 at 15:23














I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH

– Emil Majer
May 18 at 15:28





I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH

– Emil Majer
May 18 at 15:28













I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.

– Emil Majer
May 18 at 15:42





I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.

– Emil Majer
May 18 at 15:42










1 Answer
1






active

oldest

votes


















2


















There are CLI editors available in Ubuntu:



  • nano

  • vi

If you're unable to simply call nano or vi you can try with absolute paths:



/bin/nano .profile


or



/usr/bin/vi .profile


And if you want to bring the default .profile back you can use the template from /etc/skel/.profile



/bin/cp /etc/skel/.profile /home/yourname/.profile





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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1144309%2fedit-file-from-virtual-terminal%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2


















    There are CLI editors available in Ubuntu:



    • nano

    • vi

    If you're unable to simply call nano or vi you can try with absolute paths:



    /bin/nano .profile


    or



    /usr/bin/vi .profile


    And if you want to bring the default .profile back you can use the template from /etc/skel/.profile



    /bin/cp /etc/skel/.profile /home/yourname/.profile





    share|improve this answer






























      2


















      There are CLI editors available in Ubuntu:



      • nano

      • vi

      If you're unable to simply call nano or vi you can try with absolute paths:



      /bin/nano .profile


      or



      /usr/bin/vi .profile


      And if you want to bring the default .profile back you can use the template from /etc/skel/.profile



      /bin/cp /etc/skel/.profile /home/yourname/.profile





      share|improve this answer




























        2














        2










        2









        There are CLI editors available in Ubuntu:



        • nano

        • vi

        If you're unable to simply call nano or vi you can try with absolute paths:



        /bin/nano .profile


        or



        /usr/bin/vi .profile


        And if you want to bring the default .profile back you can use the template from /etc/skel/.profile



        /bin/cp /etc/skel/.profile /home/yourname/.profile





        share|improve this answer














        There are CLI editors available in Ubuntu:



        • nano

        • vi

        If you're unable to simply call nano or vi you can try with absolute paths:



        /bin/nano .profile


        or



        /usr/bin/vi .profile


        And if you want to bring the default .profile back you can use the template from /etc/skel/.profile



        /bin/cp /etc/skel/.profile /home/yourname/.profile






        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered May 18 at 16:06









        ComarComar

        9941 gold badge2 silver badges11 bronze badges




        9941 gold badge2 silver badges11 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1144309%2fedit-file-from-virtual-terminal%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?