A nano szövegszerkesztő használata

 

Aki parancssorban dolgozik, előbb utóbb belebotlik valami szövegszerkesztőbe. A legtöbb disztribúcióban a vi az alapértelmezett eszköz a config fájlok átírásához. Ez egy elég kemény dió egy kezdő linuxosnak. A használata felér egy önkínzással, tehát hagyjuk meg ezt az örömet a tapasztalt linuxosok és a mazochistáknak :-)

Szerencsére a Debian alapú rendszereknél, alapból ott lapul a nano szövegszerkesztő is.

A program nano [opciók] [fájlnév] formában indítható. Az opciók listáját a -h kapcsolóval kapjuk meg.

A nanonak nincsenek különféle módjai mind az előbb említett vi szerkesztőnek, így rögtön indulás után szerkesztheted a szöveget. Ha egy config fájlt szerkesztesz (mint például az /etc/fstab), akkor használd a -w kapcsolót:

nano -w /etc/fstab

Ez kikapcsolja a sortörést. Ennek az ellenkezője a -$, azaz: laza sortördelés engedélyezése.

Új fájl létrehozásához:

nano fájlnév

A nano vezérléséhez billentyűkombinációkat használunk. Minden parancs a Ctrl+betű vagy Alt+betű formában adhatók ki. A leggyakrabban használtak a nano felületének alsó részén, a segítség ablakban jelenik meg. Ez a funkció kikapcsolható (de nem érdemes!) ha a -x kapcsolóval indítottuk a programot.

 

Ha indításkor megadtuk a fájlnevet, akkor a fájlnak a tartalmát puffereli. A pufferelt tartalomban a nyílbillentyűkkel mozoghatunk. A változtatások nem kerülnek kiírásra addig, amíg a pufferelt tartalmat vissza nem írjuk a fájlba. Magyarul, elmentsük a fájl. A változtatások mentéséhez használd a Ctrl+O parancsot (tartsd lenyomva a Ctrl-t és közben nyomd le a O-t is). Ha nem adtunk meg fájlnevet akkor most kérdezi meg hogy milyen fájlba akarunk menteni. Kilépéshez nyomd meg a Ctrl+X billentyűkombinációt.

 

Szöveg másolása és beillesztése mind a grafikus felületen megszokott módon nem lehetséges. Ezért trükközni kel egy kicsit. Használd a Ctrl+K parancsot egy sor kivágásához. Ennek hatására az adott sor eltűnik. Ezután vidd a kurzort oda, ahová be akarod illeszteni, és nyomj Ctrl+U. A sor újra megjelenik. Több sort kivágni, többszöri Ctrl+K ismétlésével tudsz elérni, majd egyetlen Ctrl+U megnyomásával tudod a kivágott sorokat beilleszteni.

Ha a sornak csak egy része kel, akkor ki kell jelölnöd a szöveget. Vidd a kurzort a kivágandó szöveg elejére és nyomj Ctrl+6 (vagy Alt+A). Most vidd a kurzort a kivágandó szöveg végére. A kurzor mozgatás hatására a szöveg ki lesz emelve. A kijelölés megszüntetésére nyomj újra Ctrl+6. Nyomj Ctrl+K a szöveg kivágásához, majd Ctrl+U-val illesztheted be a kívánt pozícióba.

Szöveg részek kereséshez használd a Ctrl+W parancsot és írd be a keresendő szöveget, majd nyomj Enter-t. A következő találat kereséséhez nyomj Alt+W.

 

A sorok számozása nincs bekapcsolva. Ha ezt a funkciót is használni akarod, akkor indítsd a nano -c opcióval. A sorszámozás a segítség ablak felett jelenik meg.

nano –c fájlnév

Sorok számozásának bekapcsolása

Általában a nano-val konfig fájlokat szerkesztünk. Érdemes mindig biztonsági mentést készíteni a szerkesztett fájlokról. Ha véletlenül rosszul sül el valami, akkor is vissza tudjuk állítani az eredeti helyzetet. Ehhez a nano szövegszerkesztő egy egyszerű kis kapcsolóval (-B ) - azaz nagy B betű - segítségünkbe lehet.

nano –B fájlnév

Biztonsági mentés készítés a szerkesztett fájlról. A biztonsági másolat ugyan aban a könyvtárban marad fájlnév~ néven.

 

Néhány fontosabb billentyűkombináció a nano használatához:

 

Ctrl+G

a funkciók teljes listája (a leírás oldalai között Ctrl+Y és Ctrl+V-vel mozoghatunk)

Ctrl+R

fájl beolvasása, beillesztése (a fájl tartalmát az aktuális kurzorpozíciótól illeszti be)

Ctrl+W

keresés a szövegben

Alt+W

ugrás a következő keresési találatra

Alt+6

az aktuális sor vagy a kijelölt terület másolása (copy)

Ctrl+6

kijelölés - a billentyűkombináció leütése után használjuk a kurzormozgató nyilakat a kijelöléshez

Ctrl+K

az aktuális sor kivágása (cut)

Ctrl+U

a vágólap tartalmának beillesztése (paste)

Alt+U

visszavonás (undo)

Alt+D

karakterek, szavak és sorok számlálása

Hozzászólások

It's great that you are getting thoughts from this piece of writing as well as from our dialogue made at this time.

Look at my webpage - Kimber

Somebody necessarily assist to make seriously articles
I'd state. This is the first time I frequented your web
page and so far? I surprised with the research
you made to make this actual publish amazing. Fantastic job!

Here is my website: 카지노 24 시

continuously i used to read smaller posts that also clear
their motive, and that is also happening with this post which I am reading here.

my homepage - 바카라 스토리

At this time it sounds like BlogEngine is the top blogging
platform out there right now. (from what I've read) Is that what you are using on your blog?

Here is my blog :: www.markkety.com

I have to show my passion for your generosity giving support to
people who have the need for help with that concern. Your special commitment to
getting the message throughout appeared to be really insightful and
have continually made associates just like me to realize
their targets. Your own helpful guideline denotes this much a
person like me and further more to my office workers.
With thanks; from each one of us.

Also visit my blog; www.infoknygos.lt

Hi there! Someone in my Myspace group shared this website with us so
I came to give it a look. I'm definitely loving the information. I'm
bookmarking and will be tweeting this to my followers! Outstanding blog and fantastic
style and design.

My webpage :: skilled drug

Do you have a spam issue on this site; I also am a blogger, and I was curious about your
situation; many of us have created some nice practices and we are looking to
trade strategies with other folks, please shoot me an e-mail if interested.

my webpage :: skin type

healthy lifestyle blogging for profit

work at home

pharmacy affiliate commission

PharmEmpire sign-up requirements

Here is my page ... data entry work from home

pharm empire invite

mental health teletherapy jobs

work at home

earn extra income promoting natural supplements

my homepage online surveys for cash

health blog revenue ideas

online health content creation

remote work tips

work from home jobs for customer service

Review my website :: health blog income generation

beginner's guide to pharmacy affiliate marketing

passive income through blogging

affiliate marketing for beginners blog

work from home data entry jobs

My website part-time work from home for moms

pharmacy affiliate blog

health product review sites

work from home jobs for it professionals

Join the top-rated supplements affiliate programs

Feel free to surf to my web page ... PharmEmpire affiliate membership benefits

High-paying supplements affiliate programs registration

telehealth jobs

commission rates for pharmacy affiliates

pharmacy affiliate tracking software

Review my homepage - affiliate marketing for herbal remedies

remote careers

Best supplements affiliate programs for beginners

supplement affiliate programs

blogging for profit

Here is my website: promoting natural supplements online

online work from home

healthcare consulting jobs remote

work from home jobs for moms with babies

work from home jobs for beginners

Feel free to visit my web-site :: health blog advertising

pharmacy affiliate marketing for bloggers

Supplements affiliate programs registration

affiliate programs for natural health products

how to become a successful natural supplements affiliate

marketer

my page; health blog income strategies

herbal supplement affiliate programs for beginners

health niche marketing

work from home jobs for graphic designers

How to choose the best supplements affiliate program

Visit my web blog - health blog income ideas

PharmEmpire partnership code

telecommute

health blog revenue ideas

remote work culture

Check out my web page; ways to make money with natural supplements

best affiliate programs for natural supplements

work from home jobs for introverts

tips for making money with a health blog

PharmEmpire affiliate network sign-up

Have a look at my page ... online gig

mental health teletherapy jobs

supplements for immune system affiliate marketing

pharmacy affiliate marketing tips

best health affiliate programs 2022

my page ... work from home jobs for introverts

PharmEmpire invitation code for publishers

affiliate marketing programs for natural supplements

PharmEmpire affiliate network registration

plant-based supplement affiliates

Also visit my website :: passive income streams

health blog email marketing for revenue

building a brand with pharmacy affiliate marketing

work at home

work from home writing jobs for moms

Here is my page ... work from home healthcare jobs

affiliate marketing for beginners reddit

health blog consulting for profit

fitness affiliate programs for bloggers

data entry work from home for beginners

My homepage - passive income for retirees

pharm-empire invite

affiliate marketing for pharmacists

jobs for moms returning to work

freelance work for moms

Feel free to visit my web-site ... affiliate marketing without a website

pharm empire

make money from home with no experience

work from home pharmacist jobs

PharmEmpire partnership code

Here is my web blog; passive income with natural supplements

web development jobs for moms

passive income for retirement

work from home ideas for beginners

passive income with stocks

Look into my webpage ... affiliate marketing tutorial for beginners

best herbal supplement affiliates

maximizing earnings with pharmacy affiliate marketing

health product promotion

ayurvedic supplement affiliates

Stop by my web site online tutoring jobs for stay-at-home moms

Supplements affiliate programs for beginners registration

pharmacy affiliate marketing on social media

work from home teaching jobs

PharmEmpire affiliate membership benefits

Here is my web site :: making money with a health podcast

how to choose the right natural supplements affiliate program

copywriting jobs

healthcare marketing programs

health blog affiliate marketing case study

Also visit my webpage - affiliate marketing on social media

passive income investments

remote work productivity

Best supplements affiliate programs for beginners

affiliate marketing for beginners step by step

My web site - healthy lifestyle blogging for profit

online gig

passive income for students

passive income apps

high paying affiliate programs for natural supplements

my web page; health-related keyword research

herbal supplement affiliate marketing without

a website

health supplements affiliate program

affiliate marketing for medical bloggers

commission-based herbal supplement affiliate programs

my page ... work from home opportunities for beginners

freelance writing jobs

Finding the right supplements affiliate program for

you

residual income

online gig

Have a look at my blog; Supplements affiliate program sign-up process

pharmacy affiliate marketing strategies

affiliate marketing for travel blogs

affiliate marketing for herbal remedies

supplements for immune system affiliate marketing

Review my website: monetizing a pharmacy affiliate website

freelancing

work from home jobs for seniors

monetizing a pharmacy affiliate website

natural supplements for hair growth affiliate program

Here is my web-site :: natural supplement affiliate marketing

work from home jobs for stay at home moms

PharmEmpire exclusive invite code

affiliate programs for medical equipment

e-commerce

Here is my website: virtual assistant jobs

earn passive income

natural supplements affiliate marketing secrets

passive income business

health affiliate marketing

My web site ... ways to promote herbal supplements online

increasing traffic to pharmacy affiliate websites

best affiliate programs for weight loss products

pharmacy affiliate marketing programs

how to choose the right pharmacy affiliate program

Here is my web site - beginner's guide to pharmacy affiliate marketing

highest converting herbal supplement affiliate programs

beginner-friendly affiliate marketing

prescription drug coupons

top rated supplement affiliate programs

my website ... telecommuting jobs

natural supplements affiliate commissions

remote work culture

affiliate marketing strategies for beginners

best ways to market natural supplements

Check out my blog work from home jobs

maximizing earnings with pharmacy affiliate

marketing

health and beauty affiliate programs

How to join supplements affiliate programs

graphic design services

Look into my web site; blogging for profit

ways to promote herbal supplements online

pharmacy affiliate income

affiliate marketing programs for beginners

affiliate marketing programs for health products

Feel free to visit my site ... Kathi

top health affiliate programs

work from home jobs for graphic designers

affiliate programs for natural supplements

pharm-empire

Here is my web-site; beginner's pharmacy affiliate marketing guide

medication affiliate programs

home-based blogging

creating a health blog course

health content creation tips

Check out my site; health blog advertising revenue

healthcare it jobs remote

high paying affiliate programs in healthcare

work from home jobs for teachers

ways to promote herbal supplements online

Feel free to surf to my web blog; work from home nursing jobs

make money from home

healthy lifestyle blogging for profit

remote work

home-based jobs

My homepage online jobs for beginners working from home

best niche markets for herbal supplements

how to start a pharmacy affiliate website

how to become a successful health blogger

affiliate marketing programs for natural supplements

my website :: how to start affiliate marketing for beginners

best supplement affiliate programs

pharmacy affiliate website case studies

online transcription jobs for stay-at-home moms

affiliate programs for maternity products

my blog - writing jobs from home for fast earnings

passive income with stocks

maximizing pharmacy affiliate earnings

online pharmacy commissions

health blog sponsorships and collaborations

my homepage; remote healthcare education jobs

Very rapidly this website will be famous amid all blog
people, due to it's pleasant articles or reviews

Here is my page; lower belly

Oldalak

Új hozzászólás

Filtered HTML

  • A webcímek és email címek automatikusan kattintható hivatkozásokká alakulnak.
  • Engedélyezett HTML jelölők: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.

Plain text

  • A HTML jelölők használata nem megengedett.
  • A webcímek és email címek automatikusan kattintható hivatkozásokká alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
Ezt a mezöt ember.fia nem.tölti ki.
CAPTCHA
Ez a művelet azért szükséges, mert nem szeretnék kéretlen bejegyzéseket az oldalra.
Kép CAPTCHA
Írd be a képen látható karaktereket. Köszönöm.