Want to subscribe to topics you're interested in?
Become a Member

Sysadmin Which Linux Text Editor do you prefer nano or vim ?

Discussion in 'System Administration' started by eva2000, Oct 21, 2016.

  1. nano

    10 vote(s)
    76.9%
  2. vim

    3 vote(s)
    23.1%
  1. eva2000

    eva2000 Administrator Staff Member

    44,750
    10,204
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,814
    Local Time:
    8:20 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    hmm never heard of Joe editor before ! interesting
     
  2. Tracy Perry

    Tracy Perry Active Member

    213
    87
    28
    Aug 24, 2014
    Texas
    Ratings:
    +145
    Local Time:
    5:20 AM
    1.11.5
    MariaDB 10.0.28
    Joe's Own Editor

    I've always liked it... lightweight, makes a backup of your edited file... really nice.
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,750
    10,204
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,814
    Local Time:
    8:20 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    interesting, nano can be configured to backup files too but disabled by default. But could be a security issue if you're doing it in web publicly accessible files unless you set the backupdir path too
    Code (Text):
     grep backup /etc/nanorc
    # set backup
    ## The directory to put unique backup files in.
    # set backupdir ""
     
  4. Tracy Perry

    Tracy Perry Active Member

    213
    87
    28
    Aug 24, 2014
    Texas
    Ratings:
    +145
    Local Time:
    5:20 AM
    1.11.5
    MariaDB 10.0.28
    yeah, since I'm usually the only one on the server, I don't really worry about it - and always delete the files once I've confirmed that my changes are good. It's saved my posterior a time or two (or many dozens or more if I'm totally honest). For anything that's editable in the public path, I use MC's built in editor (no backups). Joe is used more for configuration file changes.
     
  5. deltahf

    deltahf Premium Member Premium Member

    362
    170
    43
    Jun 8, 2014
    Ratings:
    +278
    Local Time:
    6:20 AM
    Can you explain in a bit more detail how you're using a git repo for server config files? I've only scratched the surface with git (I've never been able to "git it", pun intended), so I'm curious.

    Very cool. Might be enough to make me switch back to nano! :D