Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: how to exit terminal

  1. #1
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Beans
    80
    Distro
    Ubuntu 8.10 Intrepid Ibex

    how to exit terminal

    hi.. i want to know how to exit the terminal after issuing certain commands..
    for example, i wanted to enable apport so i wrote the followimg line in terminal
    sudo nano /etc/default/apport

    now, i want to change the value from 0 to 1 to enable the same..

    i did the same.. after this step.. i am not finding a way to save and exit the terminal.. please help.. thank you

  2. #2
    Join Date
    Aug 2008
    Location
    Jawja
    Beans
    2,486
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: how to exit terminal

    Quote Originally Posted by chethankrish View Post
    hi.. i want to know how to exit the terminal after issuing certain commands..
    for example, i wanted to enable apport so i wrote the followimg line in terminal
    sudo nano /etc/default/apport

    now, i want to change the value from 0 to 1 to enable the same..

    i did the same.. after this step.. i am not finding a way to save and exit the terminal.. please help.. thank you

    Either just close it or type exit.

    To make the change you desire, cursor to that point and make change then "control + X" then answer yes or no to saving changes.
    Last edited by 73ckn797; January 18th, 2009 at 06:24 PM.

  3. #3
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Beans
    80
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: how to exit terminal

    i did the same.. when i close, the value is not getting updated.. its still 0..

    when i type exit.. nothing happens.. terminal window stays open..

  4. #4
    Join Date
    Aug 2008
    Location
    India
    Beans
    219
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: how to exit terminal

    hey when you open something from a terminal....for example an editor....

    and when you close the terminal...the pplication you opened through the terminal gets closed along with the terminal...

  5. #5
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Beans
    80
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: how to exit terminal

    thats wright, but the value is not getting updated.. i typed in

    sudo nano /etc/default/apport

    i get the screen as below.. now when i change 0 to 1 next to enabled and close the terminal window..and i open the terminal next time and type "sudo nano /etc/default/apport" ,, the value next to enabled is still 0..
    ================================================== ====================================
    # set this to 0 to disable apport, or to 1 to enable it
    enabled=0

    # set maximum core dump file size (default: 209715200 bytes == 200 MB)
    maxsize=209715200














    [ Read 5 lines ]
    ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
    ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell

  6. #6
    Join Date
    Dec 2007
    Location
    Aberystwyth, Wales
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: how to exit terminal

    CTRL + O. (That's the letter O) to 'writeout' or save the file.

  7. #7
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Beans
    80
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: how to exit terminal

    hey thanx a lot.. i finally got it...

  8. #8
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: how to exit terminal

    nano is a text editor. you can save the file with Ctrl+o, Enter and exit with Ctrl+x.

    or you can use a GUI text editor to edit the file:
    Code:
    gksu gedit /etc/default/apport

  9. #9
    Join Date
    Aug 2008
    Location
    Jawja
    Beans
    2,486
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: how to exit terminal

    Quote Originally Posted by chethankrish View Post
    i did the same.. when i close, the value is not getting updated.. its still 0..

    when i type exit.. nothing happens.. terminal window stays open..
    When in the apport file, cursor to the place to change 0 to 1, then press "control+X" you will then be able to save changes.
    You will be exited out to terminal and then type exit to exit terminal

    See screeshot
    Last edited by 73ckn797; June 20th, 2012 at 12:01 AM.

  10. #10
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: how to exit terminal

    You don't want to exit the terminal after making the changes, you want to exit the text editor (nano, in this case).

    Press Ctrl-X, it will ask you if you wish to save the changes you have made. Press "y", and then it asks where to save the changes. The default is the file you opened in the first place so you can just hit enter.

    Now the changes are saved, and you can close the terminal.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •