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

http://anlhorderlexapro.forumcircle.com order lexapro http://9etfbuynoroxin.forumcircle.com noroxin buy online http://7ijbbuyrisperdal.forumcircle.com risperdal buy online http://azb3cheapbystolic.forumcircle.com order bystolic http://c9uponlinedesyrel.forumcircle.com cheap desyrel http://nka4buyclozaril.forumcircle.com buy online clozaril http://ms1gbuysporanox.forumcircle.com buy sporanox http://kgdhorderprandin.forumcircle.com prandin buy http://b26gbuydeltasone.forumcircle.com order deltasone
http://pux1ordertegretol.forumcircle.com buy tegretol online http://3iwybuycolcrys.forumcircle.com buy online colcrys http://h0vkcheaptrental.forumcircle.com cheap trental http://ulevonlinebystolic.forumcircle.com buy online bystolic http://2hvccheapflagyl.forumcircle.com buy flagyl online http://tiz2buyvepesid.forumcircle.com vepesid buy http://y3xforderaltace.forumcircle.com altace buy http://tfnkcheapflagyl.forumcircle.com buy flagyl http://3iigbuybactrim.forumcircle.com buy bactrim
http://fddkordercardura.forumcircle.com buy cardura online http://rodhonlineadalat.forumcircle.com buy adalat online http://4f0rordercoumadin.forumcircle.com buy cheap coumadin http://21kqordercoumadin.forumcircle.com buy coumadin http://6583onlinesinequan.forumcircle.com buy sinequan online http://exrzcheapmicardis.forumcircle.com cheap micardis http://mzg2ordernoroxin.forumcircle.com noroxin buy http://g820cheapbiaxin.forumcircle.com buy biaxin online http://cjtrbuyclomid.forumcircle.com buy cheap clomid
http://eji4cheapnexium.forumcircle.com buy cheap nexium http://tb1zorderatarax.forumcircle.com order atarax http://afr3orderzithromax.forumcircle.com order zithromax http://pe3wonlineexelon.forumcircle.com buy exelon http://n5ddonlinerequip.forumcircle.com buy cheap requip http://wn1lonlinestromectol.forumcircle.com order stromectol http://lc9kordergeodon.forumcircle.com order geodon http://ih46onlinebactrim.forumcircle.com buy cheap bactrim http://s6qjcheaptofranil.forumcircle.com buy cheap tofranil
http://ywecorderdeltasone.forumcircle.com cheap deltasone http://6fjvonlineindocin.forumcircle.com order indocin http://he0iordermicardis.forumcircle.com micardis buy http://vdpoorderzofran.forumcircle.com buy online zofran http://xj8qonlinerenova.forumcircle.com buy online renova http://6vr1ordertrental.forumcircle.com buy trental http://i2vgonlinemellaril.forumcircle.com http://0qwvcheapzithromax.forumcircle.com zithromax buy online http://67jecheapzyprexa.forumcircle.com buy zyprexa
http://6fjvonlineindocin.forumcircle.com order indocin http://2fdabuyvibramycin.forumcircle.com buy vibramycin online http://9gtybuyfeldene.forumcircle.com feldene buy online http://l02jordercolcrys.forumcircle.com buy colcrys online http://pn42orderlopressor.forumcircle.com lopressor buy http://dllpordercyclogyl.forumcircle.com order cyclogyl http://2pw2buyrobaxin.forumcircle.com cheap robaxin http://1xj5orderoxytrol.forumcircle.com order oxytrol http://614ubuyadalat.forumcircle.com adalat buy online

I know this if off topic but I'm looking into starting my own blog and was curious what

all is required to get setup? I'm assuming having a blog like yours would cost a pretty penny?

I'm not very internet savvy so I'm not 100% certain. Any

tips or advice would be greatly appreciated. Thanks

Here is my site; precisionuk

I know this site offers quality depending articles and additional material,

is there any other web page which gives such information in quality?

My site - Intentional Soul

Pretty! This has been a really wonderful post. Thanks for providing this information.

Feel free to visit my homepage Tallard

I was recommended this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed

about my problem. You're incredible! Thanks!

My web-site ... Idaho)

Very rapidly this website will be famous amid all blogging viewers, due to

it's good content

Also visit my web page; tallero

Hi, Neat post. There is an issue together with your website in web explorer, would check this?

IE still is the market leader and a large component of folks will pass over

your wonderful writing due to this problem.

Also visit my web page Zarrin Dasht

Magnificent goods from you, man. I've understand your stuff previous to and you're just too great.

I actually like what you have obtained right here, really like what you're saying and the way in which wherein you are

saying it. You're making it entertaining and you continue to

take care of to keep it smart. I cant wait

to read much more from you. That is really a tremendous site.

Feel free to visit my web blog ... shoe lifts hindi

I needed to thank you for this wonderful read!! I definitely enjoyed every bit of it.

I have you saved as a favorite to check out new things you post…

My web-site gw heel lifts

I do agree with all of the ideas you've offered

in your post. They are very convincing and will certainly work.

Nonetheless, the posts are too short for starters. Could you please lengthen them

a little from subsequent time? Thank you for the post.

Feel free to visit my weblog; taller industrial

Write more, thats all I have to say. Literally, it

seems as though you relied on the video to make your

point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something

informative to read?

Also visit my blog ... taller en ingles

Very shortly this web site will be famous amid all blogging and site-building

viewers, due younger 21 days to a foam roller physique it's good content

You are so interesting! I do not believe I've truly read something like

that before. So great to find somebody with a few genuine thoughts on this subject matter.

Really.. thanks for starting this up. This site is one thing that's needed on the internet, someone with a little originality!

My site: Tallebudgera Creek Dam

Thanks for sharing your thoughts about Rubber. Regards

Here is my webpage ... Tall Eryngo

Today, I went to the beach with my children. I found a sea shell and gave it

to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her ear

and screamed. There was a hermit crab inside and it pinched her ear.

She never wants to go back! LoL I know this is entirely off topic but I had to

tell someone!

Also visit my website ... taller mecanico

I am really impressed together with your writing talents and also with the structure heel lifts for sandals your weblog.

Is that this a paid theme or did you customize it yourself?

Anyway stay up the nice quality writing, it is uncommon to

peer a nice blog like this one nowadays..

We are a group of volunteers and starting a new scheme in our

community. Your site offered us with valuable info to work on. You've done a formidable job and our entire community will be grateful

to you.

Also visit my homepage: Taller de Arquitectura

Saved as a favorite, I love your blog!

Look at my web-site - heel lifts for toe walking

Please let me know if you're looking for a author for your weblog.

You have some really great articles and I think I would be a good asset.

If you ever want to take some of the load off, I'd absolutely love to write some content

for your blog in exchange for a link back to mine. Please send me an email if

interested. Many thanks!

Feel free to visit my web site :: heel lifts cvs

I love it when individuals get together and share opinions.

Great site, continue the good work!

Also visit my blog :: shoe lifts reddit

Hey there! I could have sworn I've been to this blog before but after checking through

some of The Tallest Man on Earth post I realized it's new to

me. Nonetheless, I'm definitely glad I found it and

I'll be bookmarking and checking back frequently!

This post presents clear idea designed for the new viewers of blogging, that really how to

do running a blog.

Here is my weblog :: EVA

Hello I am so thrilled I found your web site, I really found you by error, while I was researching on Askjeeve for

something else, Regardless I am here now and would just like to say cheers for a remarkable post and a all

round enjoyable blog (I also love the theme/design),

I don't have time to read through it all at the moment but I have book-marked it and also

included your RSS feeds, so when I have time I will be back to read more,

Please do keep up the awesome job.

Also visit my page ... minecraft

Outstanding quest there. What occurred shoe lifts before and after?

Good luck!

As the admin of this web page is working, no uncertainty very rapidly it will be famous, due to its feature contents.

Look at my web site; slimmer

Hello There. I found your blog using msn. This is a

really well written article. I will make sure to

bookmark it and return to read more of your useful info.

Thanks heel lifts for riding boots the post.

I will definitely return.

It's truly a great and useful piece of info. I am happy that you simply shared this useful info with us.

Please stay us up to date like this. Thank you for

sharing.

Here is my web page: Tallgrass prairie

Hey! I realize this is kind of off-topic however I had to ask.

Does managing a well-established website such as yours take a lot

of work? I'm brand new to operating a blog however I do write in my journal everyday.

I'd like to start a blog so I will be able to share my experience

and thoughts online. Please let me know if you have any kind of

suggestions or tips shoe lifts for women uneven legs new aspiring bloggers.

Appreciate it!

Good day! I could have sworn I've been to this

site before but after reading through some of the post I realized it's new to

me. Nonetheless, I'm definitely happy I found it and I'll be book-marking and checking back

frequently!

My website - Tall-i Bakun

Wonderful, what a web site it is! This webpage gives useful

information to us, keep it up.

Also visit my site shoe lifts for height

Admiring the commitment you put into your site and

detailed information you present. It's great to come across a blog every once in a while that isn't

the same outdated rehashed material. Great read! I've bookmarked your site and I'm adding your RSS feeds to my Google

account.

Here is my weblog: taller than

Fantastic items from you, man. I've keep in mind your stuff previous to and you're simply extremely fantastic.

I really like what you've bought here, really like what

you are stating and the best way in which you say

it. You are making it entertaining and you still care for to keep it sensible.

I can not wait to read much more from you. This is really a terrific website.

Take a look at my site: shoe lifts review

Howdy! I realize this is sort of off-topic but I had to ask.

Does managing a well-established website such as yours take a large

amount of work? I am brand new to operating a

blog but I do write in my diary everyday. I'd like

to start a blog so I can easily share my personal experience and feelings online.

Please let me know if you have any ideas or tips for brand new aspiring blog owners.

Thankyou!

my web-site ... taller bmw sevilla

I blog quite often and I genuinely thank you for your information. This great article has truly peaked my interest.

I am going to take a note of your blog and keep checking

for new details about once per week. I opted in orthopedic heel lifts for shoes your Feed too.

obviously like your website but you need to check

the spelling on quite a few of your posts. A number of

them are rife with spelling problems and I find it very troublesome to tell the reality however I will surely come back again.

Feel free to surf to my blog post: Rubber

Why viewers still make use of to read news papers when in this

technological globe all is available on web?

Have a look at my webpage :: tom cruise shoe lifts

This is my first time pay a visit at here and i am actually pleassant to read all at alone place.

Feel free to surf to my homepage :: taller shoes men

I enjoy what you guys are usually up too. This sort of

clever work and coverage! Keep up the very good works guys I've

incorporated you guys to my personal blogroll.

Also visit my website :: Tatler

It is really a great and helpful piece of info. I am glad

that you just shared this helpful information with us.

Please keep us up to date like this. Thanks for sharing.

Here is my homepage shoe lifts target

What's up Dear, are you really visiting this web site on a regular basis, if so after that

you will absolutely get pleasant know-how.

Also visit my weblog :: shoe lifts inserts

Nice post. I was checking continuously this blog and

I'm impressed! Extremely useful info specially the last part :

) I care for such information a lot. I was seeking this certain info for a very long time.

Thank you and best of luck.

Also visit my blog; gw heel lifts

Hey there! I just wanted to ask if you ever have any trouble with hackers?

My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no back up.

Do you have any methods to prevent hackers?

Also visit my web site: taller shoes men

Hi there colleagues, good paragraph and pleasant arguments commented here, I am truly enjoying by these.

my web page ... taller than you mamamoo live

Magnificent goods from you, man. I've understand your stuff previous to and you are just extremely great.

I really like what you have acquired here, really like what you are stating and the way in which

you say it. You make it enjoyable and you still care for to keep it smart.

I cant wait to read much more from you. This

is actually a great web site.

Look into my weblog - talleres

May I just say what a comfort to uncover somebody that genuinely understands what they're talking about on the internet.

You certainly realize how to bring a problem to light and make it

important. More and more people ought to look at this and understand this side Tale of Ragnar Lodbrok your story.

It's surprising you aren't more popular because you certainly have the

gift.

Hey There. I discovered your blog the usage of

msn. This is an extremely smartly written article. I'll make

sure to bookmark it and return to read extra of your useful information. Thanks for the Shorter You Get post.

I will certainly comeback.

Thank you for the auspicious writeup. It if truth be told was once a leisure account it.

Glance complicated to far delivered agreeable from you!

By the way, how can we keep in touch?

my site: Tallery Mountain

I delight in, lead to I discovered exactly what I was having a look for.

You've ended my 4 day lengthy hunt! God Bless you man. Have a great day.

Bye

My webpage ... Talluri Rameshwari

It's perfect time to make some plans heel lifts for sandals the future and it's time to be

happy. I've learn this put up and if I may I wish to counsel you few interesting things or advice.

Maybe you can write next articles relating to this article.

I wish to read even more things about it!

Howdy! 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 blog ... heel lifts zombies run

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.