Nano Tip

Posted by: jzelazny | 1 Comment »

Categorized: Hints, HOWTOs, UNIX

I have been doing a lot of work recently on a remote server and have needed to use a text editor – so I decided to use the ever-so-easy nano. Problem is – the files I am working on are very long and editing them is not fun. I finally decided to look through the man pages (I am an emacs person myself) and found something that ended up saving me tons of time…”go to line number”. If you are editing a file and know you need to edit something on line 1245, you would type in:
[code]nano +1245 master.css[/code] and it would open the file to line 1245 so you do not need to scroll down. Thank you man pages!

Tagged: , , ,

One Response to “Nano Tip”

  1. Ben says:

    You know me… I can’t help to offer up my ever favorite tool. BBEdit will open files via ftp or sftp (the ssh variety). <3 ssh. <3 working in BBEdit and not in a terminal window.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>