Mainos / Advertisement:

Ero sivun ”Nano/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: Nano)
 
(Ak: Uusi sivu: == Sources ==)
 
(11 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 1: Rivi 1:
 
<languages/>
 
<languages/>
  
Nano on yleinen ja helppokäyttöinen tekstieditori. Se on saatavilla Linuxille ja Windowssille. Toinen käytetty tekstieditori on ''vi''.
+
Nano is a common and easy to use text editor. It is available for Linux and Windows. Another very commonly used text editor is Vi.
  
== Asennus ==
+
== Installation ==
  
 
=== Debian / Ubuntu ===
 
=== Debian / Ubuntu ===
  
Debianissa ja Ubuntussa oletuksena on nano asennettu.
+
Nano comes installed by default in Debian and Ubuntu.
  
 
   [[aptitude]] install nano
 
   [[aptitude]] install nano
Rivi 15: Rivi 15:
 
   yum install nano
 
   yum install nano
  
=== Muille käyttöjärjestelmille ===
+
=== Other operating systems ===
  
 
http://www.nano-editor.org/download.php
 
http://www.nano-editor.org/download.php
  
== Käyttö ==
+
== Usage ==
  
Avaa nano - tekstieditori komennolla:
+
Open nano using the command:
  
 
   nano
 
   nano
  
Avaa konfigurointi tiedosto (esimerkkinä ssh:n konfigurointi tiedosto):
+
Open a file with nano (for example here we open the ssh configuration file):
  
 
   nano /etc/ssh/sshd_config
 
   nano /etc/ssh/sshd_config
Rivi 31: Rivi 31:
 
[[Tiedosto:Nano_opetus_esimerkki_ssh.png]]
 
[[Tiedosto:Nano_opetus_esimerkki_ssh.png]]
  
Komentolistaus nano - tekstieditorissa näkyy yksinkertaisesti tekstieditorin alaosassa. ^ tarkoittaa siis CTRL painiketta näppäimistössä:¨'
+
Command listing in nano is simply shown on the bottom of the text editor. The ^ symbol means the CTRL key on your keyboard.
  
 
* CTRL + G = Get help
 
* CTRL + G = Get help
* CTRL + X = Exit (sulje tiedosto)
+
* CTRL + X = Exit (Close file)
 
* CTRL + O = WriteOut
 
* CTRL + O = WriteOut
 
* CTRL + J = Justify
 
* CTRL + J = Justify
 
* CTRL + R = Read File
 
* CTRL + R = Read File
* CTRL + W = Where is (hae tiedostosta)
+
* CTRL + W = Where is (Fetch from file)
 
...
 
...
  
=== Pikapainikkeita ===
+
=== Shortcuts ===
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Toiminto !! Näppäinyhdistelmä !! Huomoioitavaa
+
! Function !! Shortcut !! Note
 
|-
 
|-
| Kopioi rivi || ALT+6 ||  
+
| Copy line || ALT+6 ||  
 
|-
 
|-
| Poista rivi || CTRL+K ||  
+
| Remove line || CTRL+K ||  
 
|-
 
|-
| Liitä rivi || CTRL+U ||  
+
| Attach line || CTRL+U ||  
 
|-
 
|-
 
|}
 
|}
  
== Lähteet ==
+
== Sources ==
  
 
http://www.nano-editor.org/
 
http://www.nano-editor.org/
  
 
http://www.nano-editor.org/dist/v2.2/nano.html
 
http://www.nano-editor.org/dist/v2.2/nano.html

Nykyinen versio 30. heinäkuuta 2015 kello 05.59

Muut kielet:
English • ‎suomi

Nano is a common and easy to use text editor. It is available for Linux and Windows. Another very commonly used text editor is Vi.

Installation

Debian / Ubuntu

Nano comes installed by default in Debian and Ubuntu.

 aptitude install nano

Red Hat / CentOS / Fedora

 yum install nano

Other operating systems

http://www.nano-editor.org/download.php

Usage

Open nano using the command:

 nano

Open a file with nano (for example here we open the ssh configuration file):

 nano /etc/ssh/sshd_config

Nano opetus esimerkki ssh.png

Command listing in nano is simply shown on the bottom of the text editor. The ^ symbol means the CTRL key on your keyboard.

  • CTRL + G = Get help
  • CTRL + X = Exit (Close file)
  • CTRL + O = WriteOut
  • CTRL + J = Justify
  • CTRL + R = Read File
  • CTRL + W = Where is (Fetch from file)

...

Shortcuts

Function Shortcut Note
Copy line ALT+6
Remove line CTRL+K
Attach line CTRL+U

Sources

http://www.nano-editor.org/

http://www.nano-editor.org/dist/v2.2/nano.html

Mainos / Advertisement: