Alias – saját parancsok, sajátos névvel

 

A rendszeres Linux felhasználók nagyon gyorsan és hatékonyan tudnak „varázsolni” a parancssorral. Ez nem valami emberfeletti képesség, hanem sok gyakorlás és némi varázsszavak ismerete teszi lehetővé. Az egyik ilyen varázsszó az alias.

Mire is jó az alias?
Amikor hosszabb parancsokat használunk többször is, kezd bosszantóvá válni, hogy ugyanazt kel megismételni. Ilyenkor nagyon jó segítség számunkra az alias, ugyanis ezzel a megoldással saját egyedi parancsokat hozhatunk létre, vagy hosszú parancsokat rövidíthetünk meg. Egyik gyakori példa a ls –alF amit Ubuntu alatt az ll paranccsal kapunk.
Nézzük meg milyen alias-ok vannak már beállítva a rendszerünkbe.

alias

Paraméterek nélkül kilistázza a beállított alias-okat

Nálam ez a lista alapból így néz ki:

alias egrep='egrep --color=auto'

alias fgrep='fgrep --color=auto'

alias grep='grep --color=auto'

alias l='ls -CF'

alias la='ls -A'

alias ll='ls -alF'

alias ls='ls --color=auto'

 
Alias beállításához add ki a következő parancsot:

alias rövidnév=’a hosszú parancsodnak a paraméteresneve’

alias beállítás

alias nano=’nano –c –B’

Beállítottuk, hogy a nano szerkesztő sorszámozással és biztonsági mentéssel induljon.

Listázd ki az alias-okat és ott fogod látni az általad beírt sort is.
Próbáld ki. Hát nem csodálatos?!
Igen, de figyelem! Ahogy kiléptél a Shellből ez a sor eltűnik. :-(
 
Aggodalomra nincs ok! Most megmutatom, hogy tedd ezt véglegessé.
A rendszerben beállított, alias-ok a .bashrc fájlba vannak beégetve. Ebből a fájlból kettőt is találunk. Egy a /home/felhasználó könyvtárunkba és egy a /etc/ könyvtárba van. Ha megnézzük annak a fájlnak a tartalmát, ami a saját könyvtárunkba van, megtaláljuk az úgymond rendszerbe égetett alias-okat. Az új alias-okat akár elkezdheted ide is beírogatni. De ha figyelmesen átolvastad a fájlt, akkor látni fogod, hogy fel van készítve arra, hogy a saját alias gyűjteményedet beolvassa. Keresd meg a következő sorokat:

if [ -f ~/.bash_aliases ]; then

    . ~/.bash_aliases

fi

Ha nem találod a fenti sorokat, akkor írd be.
Most hozzuk létre a .bash_aliases fájlt

nano  ~/.bash_aliases

Írjunk is be egy pár rövidítést:

alias cls=’clear’

A Windowsból megszokott képernyőtörlés.

 
Ezek után lépjünk ki, majd megint lépjünk vissza és ellenőrizzük, hogy milyen szépen hallgat a Linux a varázsszavakra.
 

Hozzászólások

Hello there, I discovered your blog by way of Google at the same time as searching for a comparable matter, your web site got here up, it appears to be like good.

I've bookmarked it heel lifts in boots my google bookmarks.

Hello there, simply turned into aware of your weblog through Google, and found that it is truly informative.

I'm going to watch out for brussels. I'll be grateful if you continue this in future.

Many other people will be benefited out of your writing.

Cheers!

Howdy! This post couldn't be written any better!

Reading this post reminds me of my good old room mate!

He always kept talking about this. I will forward this page to him.

Fairly certain he will have a good read. Thanks for sharing!

Take a look at my web-site ... Tall Eryngo

Nice weblog here! Also your site a lot up fast!

What host are you using? Can I am getting your associate hyperlink in your host?

I desire my web site loaded up as quickly as yours lol

My weblog - Stronger

Hey would you mind sharing which blog platform you're working with?

I'm planning to start my own blog in the near future but I'm having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal.

The reason I ask is because your design seems different then most blogs

and I'm looking shoe lifts for leg length discrepancy something unique.

P.S Sorry for being off-topic but I had to ask!

Incredible points. Outstanding arguments. Keep

up the amazing effort.

Here is my web-site Talleres de Transformacion Integral del Barrio

This post is genuinely a pleasant one it assists new internet

people, who are wishing in favor of blogging.

my blog EVA

My brother suggested I would possibly like this blog. He used to be totally right.

This submit actually made my day. You cann't consider just

how much time I had spent for this info! Thanks!

Check out my web-site :: Genuine Leather

Thanks for sharing your thoughts. I really appreciate your efforts and I am waiting for your further write ups thank you once again.

Also visit my site: PVC

I would like to thnkx for the efforts you've put

in writing this web site. I am hoping the same high-grade site post

from you in the upcoming also. Actually your creative writing skills has encouraged me to get my

own website now. Actually the blogging is spreading its wings quickly.

Your write up is a great example of it.

Also visit my blog: http://diendanseo.info/soikeo-info-cap-nhat-dt-viet-nam-nhan-ca-chan-thuong-sau-tran-ra-quan.t2889.html

Nice blog right here! Additionally your site quite a bit up

very fast! What host are you using? Can I am getting your affiliate link in your host?

I desire my web site loaded up as quickly as yours lol

Feel free to visit my site shoe lifts for kids

Great post however , I was wondering if you could write a litte more on this subject?

I'd be very thankful if you could elaborate a little bit further.

Cheers!

Stop by my webpage ... heel lifts for riding boots

What's Going down i'm new to this, I stumbled upon this I have discovered It positively helpful and

it has aided me out loads. I am hoping to give a contribution & aid different customers

like its aided me. Great job.

Feel free to visit my blog ... Tayler Hill

Everyone loves it when individuals come together and

share ideas. Great site, continue the Shorter You Get good work!

Good day! Do you use Twitter? I'd like to follow you if that would be ok.

I'm definitely enjoying your blog and look forward to new updates.

Also visit my web-site :: taller than

Attractive section of content. I just stumbled upon your blog and in accession capital to assert that

I acquire in fact enjoyed account your blog posts.

Any way I will be subscribing to your augment and even I

achievement you access consistently fast.

Stop by my web site - Silicone

Fabulous, what a web site it is! This weblog gives

valuable information to us, keep it up.

my web blog :: Tall-i Bakun

Hey! Quick question that's totally off topic. Do you know how to make

your site mobile friendly? My web site looks weird when browsing from my iphone4.

I'm trying to find a template or plugin that might be able to resolve this problem.

If you have any suggestions, please share. Thank you!

Feel free to visit my homepage ... talleres

Hi there! This is my 1st comment here so I just wanted

to give a quick shout out and tell you I truly enjoy

reading your posts. Can you suggest any other blogs/websites/forums that cover the same topics?

Appreciate it!

My homepage :: taller

A person essentially help to make seriously posts I might state.

This is the very first time I frequented your web page and so far?

I amazed with the analysis you made to make this particular post extraordinary.

Great job!

my page: shoe lifts australia

Thank you a lot for sharing this with all of us you actually recognize what you are speaking about!

Bookmarked. Kindly additionally consult with my web site =).

We will have a hyperlink exchange arrangement between us

my website: Talluri Rameshwari

Howdy, I believe your web site might be having browser compatibility problems.

Whenever I take a look at your blog in Safari, it looks fine however, if opening in I.E., it has some overlapping issues.

I just wanted to provide you with a quick heads up!

Apart from that, excellent site!

Visit my web-site; Genuine Leather

Very soon this website will be famous amid all

blogging and site-building visitors, due to it's fastidious content

Visit my website; the Shorter You Get

Thank you for the good writeup. It in fact was a amusement account it.

Look advanced to more added agreeable from you! By the way, how

can we communicate?

Here is my web blog :: heel lifts target

I visited many websites except the audio feature for audio songs existing at this site

is actually marvelous.

Here is my blog - Memory Foam

Appreciate the recommendation. Let me try

it out.

My web blog Queensland

Superb blog you have here but I was curious about if you

knew of any message boards that cover the same topics

talked about here? I'd really love to be a part of group where I can get feedback from

other knowledgeable people that share the same interest.

If you have any recommendations, please let me know. Bless

you!

my homepage ... PU

Very shortly this website will be famous amid all blog users, due to it's

good content

my blog ... Tallery Mountain

Can I simply say what a relief to uncover somebody that actually knows what they are talking

about on the net. You actually understand how to bring an issue to light and make it important.

More and more people really need to check this out

and understand this side of your story. I can't believe you aren't more popular because you

definitely possess the gift.

Look into my web page ... Tall Zira'a

Hi there Dear, are you actually visiting this site on a regular basis, if so then you

will absolutely get pleasant know-how.

Feel free to surf to my web page :: http://www.xembongdahd.com/udinese-vs-napoli-ngay-21-10-2018/

Wonderful post however , I was wondering if you could write a litte

more on this subject? I'd be very thankful if you could elaborate

a little bit more. Appreciate it!

Feel free to visit my page :: shoe lifts review

That is a great tip particularly to those fresh

to the blogosphere. Simple but very precise info… Thank you for sharing this one.

A must read article!

Feel free to visit my blog ... chocolate

Thanks for finally writing about > Új hozzászólás | linux.valodi.info < Liked it!

Also visit my web site; shoe lifts for height

Hi there! This is kind of off topic but I need some guidance from an established blog.

Is it hard to set up your own blog? I'm not very techincal but I can figure things out pretty

quick. I'm thinking about creating my own but I'm not sure where to start.

Do you have any tips or suggestions? Appreciate it

my blog - shoe liftsa �

You have made some really good points there.

I checked on the internet for additional information about

the issue and found most individuals will go along with

your views on this site.

my website :: Tallegalla State School

Highly energetic blog, I loved that bit. Will there be a part

2?

Review my blog :: heel lifts walmart

Thank you for sharing your info. I truly appreciate your efforts and I am

waiting for your next post thanks once again.

Take a look at my blog; shoe lifts at walmart

Wow, awesome blog layout! How long have shoes that make you taller been blogging

for? you made blogging look easy. The overall look of your web site is magnificent,

let alone the content!

I am extremely impressed with your writing skills and also with the format

in your weblog. Is this a paid theme or did you customize it yourself?

Anyway stay up the excellent quality writing, it is uncommon to see a great

weblog like this one these days..

Also visit my homepage ... Tallgrass Beef Company

Asking questions are actually good thing if you are not understanding something fully, but this paragraph

presents fastidious understanding yet.

Here is my blog post - slimmer

I know this if off topic but I'm looking into starting

my own weblog and was curious what all is required to get set

up? I'm assuming having a blog like yours would cost a pretty penny?

I'm not very internet smart so I'm not 100% sure.

Any recommendations or advice would be greatly appreciated.

Many thanks

My homepage; Talluri Rameshwari

Wow! After all I got a website from where I be able to truly obtain useful facts regarding my study

and knowledge.

Feel free to visit my site: shoe lifts in converse

Howdy would you mind stating which blog platform you're using?

I'm going to start my own blog in the near future but I'm having a tough time

selecting between BlogEngine/Wordpress/B2evolution and Drupal.

The reason I ask is because your design and style

seems different then most blogs and I'm looking for something completely unique.

P.S Sorry for getting off-topic but I had to ask!

My weblog - shoe lifts target

Wow, this paragraph is pleasant, my sister is analyzing these kinds of things, thus

I am going to convey her.

Review my web page; Talleres Loring

Fantastic blog! Do you have any tips and

hints for aspiring writers? I'm hoping to start my own website soon but I'm a little lost on everything.

Would you propose starting with a free platform like

Wordpress or go for a paid option? There are so many options out there

that I'm completely overwhelmed .. Any ideas?

Thank you!

Feel free to visit my web-site growth taller

Hey there! This is my first visit to your blog! We are a group

of volunteers and starting a new initiative in a community in the same niche.

Your blog provided us useful information to work

on. You have done a wonderful job!

Also visit my homepage - shoelifts的網路日誌

I just like the valuable info you provide on your articles.

I will bookmark your weblog and test once more here regularly.

I am somewhat certain I'll learn many new stuff proper right here!

Best of luck for the next!

Here is my web-site; taller shoes men

Hello there! Do you use Twitter? I'd like to follow you if that would be okay.

I'm undoubtedly enjoying your blog and look forward to

new posts.

Feel free to visit my weblog: shoe lifts for women uneven legs

Fabulous, what a weblog it is! This website provides useful data to us, keep it up.

My homepage - Taller Polvorín

Great blog here! Also your web site loads up fast!

What host are you using? Can I get your affiliate link to your host?

I wish my web site loaded up as fast as yours

lol

Review my web-site; shoe lifts buzzfeed

Appreciating the time and effort you put into your site and in depth information you present.

It's nice to come across a blog every once in a while that isn't

the same unwanted rehashed information. Excellent read! I've saved your site

and I'm including your RSS feeds to my Google account.

Feel free to surf to my blog Tall-e Rafi

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.