Results 1 to 7 of 7

Thread: goto line "x" in nano

  1. #1
    Join Date
    Oct 2008
    Beans
    23

    goto line "x" in nano

    Hi, while trying to configure ldap, tail -f told me I made some mistakes at line 107.

    I read the man pages of nano, but i can't find the function or hotkey to jump to a certain line.


    Thx Gerreth

  2. #2
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: goto line "x" in nano

    You can open it up at that specific line with

    Code:
    nano +107 filename
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  3. #3
    Join Date
    Oct 2008
    Beans
    23

    Re: goto line "x" in nano

    Quote Originally Posted by taurus View Post
    You can open it up at that specific line with

    Code:
    nano +107 filename

    Thanks!

    *I managed to solve problem as well! One step closer to fully configured ldap *

  4. #4
    Join Date
    Nov 2007
    Beans
    2

    Re: goto line "x" in nano

    If you hit Ctrl-_, then you'll get a prompt to enter a line number.

    (On my keyboards, that means holding down the ctrl key, the shift key, and then hitting the -/_ key that's to the right of the nine.)

  5. #5
    Join Date
    Sep 2007
    Location
    Key Largo, FL
    Beans
    75
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: goto line "x" in nano

    Quote Originally Posted by jcfiala View Post
    If you hit Ctrl-_, then you'll get a prompt to enter a line number.

    (On my keyboards, that means holding down the ctrl key, the shift key, and then hitting the -/_ key that's to the right of the nine.)
    That was incredibly useful! Thanks!!!
    Pete "NetDoc" Murray
    NetDoc@ScubaBoard.com
    www.ScubaBoard.com
    The World's LARGEST Dive Community

  6. #6
    Join Date
    Aug 2006
    Location
    Denmark
    Beans
    35
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: goto line "x" in nano

    Quote Originally Posted by jcfiala View Post
    If you hit Ctrl-_, then you'll get a prompt to enter a line number.

    (On my keyboards, that means holding down the ctrl key, the shift key, and then hitting the -/_ key that's to the right of the nine.)
    Thank you! The shortcuts in this editor seem a bit "hidden" to me.

  7. #7
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: goto line "x" in nano

    Old thread. Closed
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

Tags for this Thread

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
  •