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 - 18:16
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 20:10
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 20:28
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 23:23
Permalink
Új hozzászólás | linux.valodi.info
I visited many websites except the audio feature for audio songs existing at this site
is actually marvelous.
Here is my blog - Memory Foam
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 20:17
Permalink
Új hozzászólás | linux.valodi.info
Appreciate the recommendation. Let me try
it out.
My web blog Queensland
Anonymous (nem ellenőrzött)
sze, 01/02/2019 - 14:49
Permalink
Új hozzászólás | linux.valodi.info
Hi, Neat post. There's a problem together
with your web site in internet explorer, could test this?
IE still is the marketplace chief and a large section of people will
pass over your fantastic writing due to this problem.
Here is my page http://www.xembongdahd.com/soi-keo-bong-da-portimonense-vs-benfica-03h15-ngay-03-01-thu-hep-khoang-cach/
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 20:54
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 22:06
Permalink
Új hozzászólás | linux.valodi.info
Very shortly this website will be famous amid all blog users, due to it's
good content
my blog ... Tallery Mountain
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 03:51
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
v, 10/21/2018 - 01:53
Permalink
Új hozzászólás | linux.valodi.info
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/
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 00:11
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 00:16
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:33
Permalink
Új hozzászólás | linux.valodi.info
Thanks for finally writing about > Új hozzászólás | linux.valodi.info < Liked it!
Also visit my web site; shoe lifts for height
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 07:23
Permalink
Új hozzászólás | linux.valodi.info
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 �
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:45
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 06:36
Permalink
Új hozzászólás | linux.valodi.info
Highly energetic blog, I loved that bit. Will there be a part
2?
Review my blog :: heel lifts walmart
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 13:26
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 14:59
Permalink
Új hozzászólás | linux.valodi.info
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!
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 03:57
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 05:06
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 04:37
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:25
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 21:59
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 04:52
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 04:58
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:16
Permalink
Új hozzászólás | linux.valodi.info
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的網路日誌
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:19
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 06:25
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 18:51
Permalink
Új hozzászólás | linux.valodi.info
Fabulous, what a weblog it is! This website provides useful data to us, keep it up.
My homepage - Taller Polvorín
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 18:19
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 19:19
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 08:37
Permalink
Új hozzászólás | linux.valodi.info
I truly love your site.. Very nice colors & theme. Did you develop this amazing site
yourself? Please reply back as I'm looking to create my very own site
and would love to find out where you got this from or just what the theme is named.
Cheers!
my weblog; Taller del Moro
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 17:12
Permalink
Új hozzászólás | linux.valodi.info
We are a gaggle of volunteers and opening a new scheme in our community.
Your site provided us with helpful information to work on. You have done an impressive activity and our entire neighborhood will
probably be grateful to you.
My web-site Talker
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 20:01
Permalink
Új hozzászólás | linux.valodi.info
Saved as a favorite, I really like your blog!
Take a look at my weblog: taller meaning in hindi
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 05:47
Permalink
Új hozzászólás | linux.valodi.info
You really make it appear really easy with your
presentation but I find this matter to be actually something that I
believe I might by no means understand. It sort of feels
too complex and very wide for taller than me.
I'm taking a look forward on your next publish, I'll attempt to get the hang of it!
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 07:57
Permalink
Új hozzászólás | linux.valodi.info
I just like the valuable info you supply to your articles.
I will bookmark your weblog and test again right here regularly.
I am relatively sure I will be informed plenty of new stuff proper
here! Best of luck for the next!
Feel free to visit my site ... heel lifts zombies run
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 14:04
Permalink
Új hozzászólás | linux.valodi.info
Good post. I definitely appreciate this site.
Continue the good work!
Feel free to surf to my page ... heel lifts in boots
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 18:32
Permalink
Új hozzászólás | linux.valodi.info
Hey there! This is kind of off topic but I need some advice 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 setting up my own but I'm not sure where to start.
Do you have any points or suggestions? Thanks
Feel free to visit my blog Taller Polvorín
Anonymous (nem ellenőrzött)
sze, 08/10/2022 - 21:46
Permalink
Új hozzászólás | linux.valodi.info
I am really enjoying the theme/design of your site. Do you
ever run into any browser compatibility issues?
A small number of my blog visitors have complained about my blog not operating correctly in Explorer but looks great in Opera.
Do you have any suggestions to help fix this problem?
Here is my blog Czy levoxyl działa z mlekiem
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 20:07
Permalink
Új hozzászólás | linux.valodi.info
Helpful info. Fortunate me I discovered your website by accident,
and I'm stunned why this coincidence didn't came about earlier!
I bookmarked it.
Stop by my website :: shoe lifts hindi
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 20:42
Permalink
Új hozzászólás | linux.valodi.info
I really like your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone to
do it for you? Plz reply as I'm looking to construct my own blog
and would like to find out where u got this from. kudos
Also visit my homepage Taller del Moro
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 12:29
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 grateful if you could
elaborate a little bit more. Thank you!
Feel free to surf to my weblog ... how to grow taller
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 13:18
Permalink
Új hozzászólás | linux.valodi.info
I visited several web pages however the audio quality heel lifts for men
audio songs present at this website is in fact marvelous.
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 13:44
Permalink
Új hozzászólás | linux.valodi.info
What's Taking place i'm new to this, I stumbled upon this I've discovered It absolutely helpful and it has aided me out loads.
I'm hoping to give a contribution & assist different users like its helped me.
Good job.
Also visit my web site; shoe lifts for men 2 inch
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 03:35
Permalink
Új hozzászólás | linux.valodi.info
Excellent blog here! Also your site loads up very fast!
What host are you using? Can I get your affiliate link to your host?
I wish my website loaded up as fast as yours lol
my page ... al taller del maestro
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 11:59
Permalink
Új hozzászólás | linux.valodi.info
Hi, its good piece of writing on the topic of media print,
we all understand media is a great source of facts.
Look at my web-site - Taller Polvorín
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 09:02
Permalink
Új hozzászólás | linux.valodi.info
Very quickly this site will be famous among all blogging people, due to it's good articles
Here is my website; talleres
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 16:49
Permalink
Új hozzászólás | linux.valodi.info
I go to see everyday a few web sites and information sites to read content, except this website gives
quality based posts.
Also visit my web blog :: el taller
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 17:17
Permalink
Új hozzászólás | linux.valodi.info
Wow, that's what I was searching for, what a material!
existing here at this webpage, thanks admin of this
web site.
Here is my web-site ... al taller del maestro
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 17:41
Permalink
Új hozzászólás | linux.valodi.info
Thanks for finally talking about > Új hozzászólás | linux.valodi.info < Loved it!
My weblog Tallest building
Oldalak
Új hozzászólás