Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Command Line Editors on Linux (vim & nano)

By editor , 6 July, 2016
Question

How to use vim (vi) command line editor on linux ?

How to use nano command line editor on linux ?

Vi - Vim Ccommand line editor's Usefull commands

vim filename.txt (to create or open a file)

i (Insert), To edit a text
Esc Button (To exit 'Insert' mode)
/yourtext (Search) search a string in the text file
:w (Write, Save file)
:wq (Write and Quite)
:q! (Force quite without saving)
ZZ (Write and Quite) -- vim only
 

Nano Command line editor

Nano is a command line but pseudo graphic interface easy to use. All commands are display at the bottom of the nano interface. in nano the ^ signify the Ctrl button.

Examples :
^W = Ctrl + W : Search in the file
^W = Ctrl + O : Save file ;
^W = Ctrl + X : Quite Nano.

 

Tags

  • Linux
  • Shell

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer