Nano Commands

Useful commands to remember when using Nano text editor in Linux...

Select, cut, copy and paste...

ALT + A SELECT

CTRL + K CUT

ALT + ^ COPY

CTRL + U PASTE

Searching...

CTRL + W SEARCH

CTRL + _ GO TO LINE

CTRL + \ REPLACE

CTRL + A GO TO BEGINNING OF CURRENT LINE

ALT + \ GO TO FIRST LINE

ALT + / GO TO LAST LINE

Other...

ALT + } INDENT CURRENT LINE

ALT + { UNINDENT CURRENT LINE

ALT + - SCROLL UP ONE LINE KEEPING CURSOR IN SAME COLUMN

ALT + + SCROLL DOWN ONE LINE KEEPING CURSOR IN SAME COLUMN

ALT + S SMOOTH SCROLL ON/OFF

FILE...

ALT + Y SYNTAX HIGHLIGHTER ON/OFF

CTRL + X EXIT NANO

Linux Reference

Some commonly used and useful commands in the Linux shell...

Ownership and Permissions

chown -R user:group /path/to/directory
Change the owner recursively within a specified directory.

chmod -R 755 /path/to/directory
Change all permissions (files and folders) to 755 within a directory

find /path/to/directory -type d -exec chmod 755 {} \;
Change all the directories to 755 within a directory

find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
Change all the files to 644 within a directory

Bio

nlud is about a web developer called Neil Ludlow, from Sheffield, UK. Personal information about Neil Ludlow will be here.

For example, <section> should be wrapped as inline.

<section>
Info code
</section>
  • 1
  • 2
  • 3
  • 4
  • 5