Results 1 to 6 of 6

Thread: gedit - Command Line?

  1. #1
    Join Date
    Feb 2010
    Location
    NH-USA
    Posts
    240

    Default gedit - Command Line?

    Please remember I'm new:

    I want to edit files while in runlevel three. I am trying to learn how to navigate my entire system via CL. Whenever I use gedit in runlevel three, is says, "cannot open display"

    Is there a utility to edit files without X11 fired up?

    ...Thank You in advance

    _cheers

  2. #2

    Default Re: gedit - Command Line?

    There are good editors around through which you can edit/create files via CLI like vi, vim etc.
    How to use:
    vi
    Code:
    vi path/to/file
    vim
    Code:
    vim path/to/file
    gedit will work in runlevel 5.

    Good luck!
    Linux[openSUSE, KDE], PHP, MySQL, Wordpress, Tech News, etc :
    http://anl4u.com

  3. #3
    Join Date
    Jul 2010
    Location
    Saarland / Germany / Europe
    Posts
    163

    Default Re: gedit - Command Line?

    Just because you are a new user i would like to add

    nano

    to the list, which must be installed first via "zypper in nano" but i think it provides basic editing tools and is a little bit easier to use than the vi

  4. #4
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    11,210

    Default Re: gedit - Command Line?

    subcook69420 wrote:
    > Is there a utility to edit files without X11 fired up?


    i suggest you look at Midnight Commander, it has a built in editor
    which is real easy to use (compared to vi, vim etc) AND it is a two
    pane "file manager" where you can easily copy or move files from one
    place to another...

    and, do all sorts of other things also...

    Code:
    sudo zypper in mc
    should get it installed, then at any command line, just type and enter

    Code:
    mc
    well, you really should take a look at

    Code:
    man mc
    first, to get an idea of how really powerful it is...i use it all the
    time and very seldom ever use dolphin/etc to drag/drop files..

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

  5. #5
    Join Date
    Feb 2010
    Location
    NH-USA
    Posts
    240

    Default Re: gedit - Command Line?

    great, Thanks everyone for the assistance ;-)

    -Cheers

  6. #6
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,556

    Default Re: gedit - Command Line?

    Some alternative editors have already been mentioned. Let me add 'joe' to this list. I use it quite a lot, because it supports fancy syntax highlighting and is very easy to learn. ^K H will display a help screen. Start joe with:

    Code:
    joe <some-filename>
    and use ^K S to save and ^K X to save and exit.
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

Posting Permissions

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