Where is the nano file located?

12,198

Solution 1

The easiest method:

$ which nano
/bin/nano

Solution 2

Or you can use

$ whereis nano
nano: /bin/nano 

Solution 3

You might like geany which is a useful GUI editor for text files.

sudo apt-get install geany
Share:
12,198

Related videos on Youtube

Jack Hales
Author by

Jack Hales

Big passion for programming.

Updated on September 18, 2022

Comments

  • Jack Hales
    Jack Hales over 1 year

    I'm using FileZilla and have found the default LibreOffice Writer not the best for on-the-go code editing.

    I have the option to use custom program for text editing, so why not give nano a go. So I'm wondering, where is the nano (shell script?) file located?

    I had a quick Google for this question and only found an ArchLinux forum posing the question on this thread.

    From the thread, I checked /usr/bin/nano and it's not existant there.

  • Jack Hales
    Jack Hales over 6 years
    Installed it, very nice :) I'll stick to Nano for quick edits though.
  • sudodus
    sudodus over 6 years
    That is a good idea, @Jek. For example, I use nano to edit (small) system files and configuration files which need elevated permissions, for example sudo nano /etc/fstab otherwise I use geany most of the time.
  • Jack Hales
    Jack Hales over 6 years
    I'm in the same area @sudodus, I use nano for small things BUT I use atom for project development and larger files. I have a serious love for nano being able to go to a specific line, I don't know why. nano ./httpf.conf +250