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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 10:09
Permalink
Új hozzászólás | linux.valodi.info
Pretty section of content. I just stumbled upon your web site and in accession capital to assert
that I get taller in english fact enjoyed account your blog posts.
Anyway I'll be subscribing to your augment and even I achievement you
access consistently quickly.
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:50
Permalink
Új hozzászólás | linux.valodi.info
This design is incredible! You definitely know how to
keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well,
almost...HaHa!) Fantastic job. I really enjoyed what you had to say, and more than that, how you presented it.
Too cool!
Feel free to surf to my page :: Shoplifts
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 04:34
Permalink
Új hozzászólás | linux.valodi.info
It's awesome for me to have a website, which is beneficial heel lifts in boots favor
of my know-how. thanks admin
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 10:50
Permalink
Új hozzászólás | linux.valodi.info
of course like your website however you need younger 21 days to a foam roller physique
check the spelling on several of your posts.
A number of them are rife with spelling issues and I in finding it very bothersome to inform the truth
however I will surely come back again.
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:35
Permalink
Új hozzászólás | linux.valodi.info
I'm really enjoying the design and layout of your site. It's a very easy
on the eyes which makes it much more pleasant
for me to come here and visit more often. Did you hire out a developer to create your theme?
Excellent work!
My site Zarrin Dasht
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 11:12
Permalink
Új hozzászólás | linux.valodi.info
Greetings! Very helpful advice within this post!
It's the little changes that produce the greatest changes.
Many thanks for sharing!
Have a look at my web site - heel lifts walmart
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 20:23
Permalink
Új hozzászólás | linux.valodi.info
I visit everyday some web pages and sites to read posts, except this website provides quality based
content.
Feel free to visit my blog ... Tallensi
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 07:25
Permalink
Új hozzászólás | linux.valodi.info
Thanks in favor of sharing such a fastidious idea, piece of writing is good, thats why i
have read it completely
my web blog - Tally stick
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 09:18
Permalink
Új hozzászólás | linux.valodi.info
It's a shame you don't have a donate button! I'd most certainly donate to this brilliant blog!
I suppose for now i'll settle for book-marking and adding your RSS
feed to my Google account. I look forward to new updates and will share this blog with my Facebook group.
Chat soon!
My website - heel lifts cvs
Kazuko (nem ellenőrzött)
szo, 05/30/2020 - 08:22
Permalink
Új hozzászólás | linux.valodi.info
We stumbled over here coming from a different website and thought I might as well check
things out. I like what I see so now i am following you.
Look forward to looking over your web page for a second time.
Also visit my webpage :: Blessed CBD
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 12:11
Permalink
Új hozzászólás | linux.valodi.info
whoah this weblog is excellent i like studying your
articles. Keep up the great work! You recognize, a lot of individuals are searching round for this info, you can help them greatly.
my web site :: taller手電筒
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:14
Permalink
Új hozzászólás | linux.valodi.info
Hi there, yeah this post is actually nice and I have learned lot
of things from it concerning blogging. thanks.
Check out my page :: Tallebudgera Valley
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:29
Permalink
Új hozzászólás | linux.valodi.info
An impressive share! I've just forwarded this onto a coworker who was conducting a little homework on this.
And he in fact ordered me breakfast simply because I found
it for him... lol. So let me reword this.... Thank YOU for the meal!!
But yeah, thanks for spending time to talk about this matter here on your website.
Here is my web site taller bmw sevilla
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 02:38
Permalink
Új hozzászólás | linux.valodi.info
Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your website?
My blog site is in the very same niche as yours and my visitors would definitely
benefit from a lot of the information you provide here.
Please let me know if this ok with you. Appreciate it!
my webpage: taller mecanico
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:31
Permalink
Új hozzászólás | linux.valodi.info
Genuinely no matter if someone doesn't be aware of after that
its up to other users that they will help, so
here it occurs.
Have a look at my homepage; heel lifts in boots
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:38
Permalink
Új hozzászólás | linux.valodi.info
Hello it's me, I am also visiting this site regularly, this web page is actually good and the visitors
are truly sharing good thoughts.
Feel free to visit my page ... Talley Abbey
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 15:41
Permalink
Új hozzászólás | linux.valodi.info
What's up, of course this post is genuinely pleasant and I have
learned lot of things from it regarding blogging. thanks.
Take a look at my web-site Genuine Leather
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 22:07
Permalink
Új hozzászólás | linux.valodi.info
I've been surfing online more than three
hours today, yet I never found any interesting article
like yours. It is pretty worth enough for me. Personally, if all web owners and bloggers made good content as you did, the web will be a lot more useful than ever
before.
My blog post: Tale of Ragnar's Sons
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 22:14
Permalink
Új hozzászólás | linux.valodi.info
Hello, I enjoy reading all of your article. I wanted to write a little comment to support you.
Here is my web page Talluri Rameshwari
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 23:03
Permalink
Új hozzászólás | linux.valodi.info
If you are going for finest contents like myself, only go to see this web site everyday as it gives feature contents, thanks
My blog - heel lifts walgreens
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 12:22
Permalink
Új hozzászólás | linux.valodi.info
After looking over a few of the articles on your web page,
I really appreciate your way of writing a blog. I saved it to
my bookmark site list and will be checking back in the near future.
Please visit my website as well and tell me your opinion.
Stop by my page :: shoe lifts
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 19:30
Permalink
Új hozzászólás | linux.valodi.info
I am not sure where you're getting your information, but
great topic. I needs to spend some time learning more or understanding
more. Thanks for excellent info I was looking for this information for my mission.
Here is my page; Table Rock (Ada County
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 23:04
Permalink
Új hozzászólás | linux.valodi.info
Your style is so unique compared to other people I've read
stuff from. Many thanks heel lifts for men posting when you've got the opportunity,
Guess I'll just book mark this page.
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 00:22
Permalink
Új hozzászólás | linux.valodi.info
Awesome! Its in fact amazing article, I have got much clear idea regarding from this article.
Feel free to surf to my weblog; younger 21 days to a foam roller physique
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 02:09
Permalink
Új hozzászólás | linux.valodi.info
I visit everyday a few websites shoe lifts before and after blogs to read content, but this website provides feature based content.
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 03:29
Permalink
Új hozzászólás | linux.valodi.info
Hmm is anyone else having problems with the images on this blog loading?
I'm trying to figure out if its a problem on my end or if it's the blog.
Any feed-back would be greatly appreciated.
My weblog: Talleres (Monterrey Metro)
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 19:21
Permalink
Új hozzászólás | linux.valodi.info
These are actually wonderful ideas in regarding blogging.
You have touched some fastidious factors here.
Any way keep up wrinting.
Also visit my web site - Queensland
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 02:52
Permalink
Új hozzászólás | linux.valodi.info
I just could not depart your web site prior to suggesting that I actually loved the usual info a person supply
to your guests? Is going to be back regularly in order to check out new posts
My web page; shoe lifts for men 2 inch
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 07:37
Permalink
Új hozzászólás | linux.valodi.info
My coder is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the expenses.
But he's tryiong none the less. I've been using Movable-type on a number of websites for about a year
and am nervous about switching to another platform.
I have heard great things about blogengine.net.
Is there a way I can import all my wordpress content into it?
Any help would be really appreciated!
Take a look at my weblog heel lifts australia
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 03:04
Permalink
Új hozzászólás | linux.valodi.info
It's truly a great and useful piece of info. I'm happy that
you simply shared this useful info with us. Please keep us up to date
like this. Thank you heel lifts for leg length discrepancy sharing.
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:18
Permalink
Új hozzászólás | linux.valodi.info
I've been surfing online more than three hours today,
yet I never found any interesting article like yours.
It's pretty worth enough for me. In my opinion, if all
site owners and bloggers made good content as you did, the internet will be much
more useful than ever before.
Look at my web page ... taller slimmer younger
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 06:12
Permalink
Új hozzászólás | linux.valodi.info
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!
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 06:55
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 09:31
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 18:07
Permalink
Új hozzászólás | linux.valodi.info
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!
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 19:36
Permalink
Új hozzászólás | linux.valodi.info
Incredible points. Outstanding arguments. Keep
up the amazing effort.
Here is my web-site Talleres de Transformacion Integral del Barrio
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 21:20
Permalink
Új hozzászólás | linux.valodi.info
This post is genuinely a pleasant one it assists new internet
people, who are wishing in favor of blogging.
my blog EVA
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 16:32
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 18:50
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 11/14/2018 - 23:11
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 06:03
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 18:30
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 22:08
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 22:57
Permalink
Új hozzászólás | linux.valodi.info
Everyone loves it when individuals come together and
share ideas. Great site, continue the Shorter You Get good work!
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 16:43
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 04:48
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 16:44
Permalink
Új hozzászólás | linux.valodi.info
Fabulous, what a web site it is! This weblog gives
valuable information to us, keep it up.
my web blog :: Tall-i Bakun
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 17:21
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 08:22
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 12:09
Permalink
Új hozzászólás | linux.valodi.info
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
Oldalak
Új hozzászólás