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
Denny (nem ellenőrzött)
cs, 05/28/2020 - 13:49
Permalink
Új hozzászólás | linux.valodi.info
As the admin of this web site is working, no hesitation very soon it will be famous, due to
its quality contents.
My homepage ... CBD oil for depression
Kristian (nem ellenőrzött)
szo, 05/30/2020 - 10:29
Permalink
Új hozzászólás | linux.valodi.info
If some one desires expert view concerning blogging afterward i advise him/her to visit this
website, Keep up the nice work.
Take a look at my webpage CBD oil for arthritis
Bruno (nem ellenőrzött)
szo, 10/03/2020 - 22:03
Permalink
Új hozzászólás | linux.valodi.info
Wonderful beat ! I would like to apprentice
at the same time as you amend your site, how
could i subscribe for a blog website? The account helped
me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright transparent idea
Feel free to visit my website :: Anal
Anonymous (nem ellenőrzött)
sze, 05/10/2023 - 04:58
Permalink
Új hozzászólás | linux.valodi.info
Hi there it's me, I am also visitting this site on a regular basis, this website is really pleasant and the visitors are in fact sharing nice thoughts.
Here is my page :: Antalya vip transfers
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 12:57
Permalink
Új hozzászólás | linux.valodi.info
Hi there colleagues, good paragraph and pleasant arguments commented here, I am truly enjoying by these.
my web page ... taller than you mamamoo live
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 13:22
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
h, 10/08/2018 - 07:35
Permalink
Új hozzászólás | linux.valodi.info
Hi there, its good paragraph concerning media print, we all understand media is a impressive source of data.
my website minecraft
Hayden (nem ellenőrzött)
v, 05/24/2020 - 11:22
Permalink
Új hozzászólás | linux.valodi.info
First of all I want to say fantastic blog! I had a quick question that I'd like
to ask if you do not mind. I was curious to find out how you center yourself and clear your head prior to writing.
I've had a tough time clearing my mind in getting my thoughts out.
I do enjoy writing but it just seems like the first 10 to 15 minutes tend to be lost just trying to figure out
how to begin. Any ideas or tips? Kudos!
Here is my blog post CBD oil for arthritis
Anonymous (nem ellenőrzött)
p, 08/07/2020 - 14:06
Permalink
Új hozzászólás | linux.valodi.info
Hi friends, how is all, and what you would like to say
about this post, in my view its genuinely remarkable
designed for me.
Here is my website :: content hosting
Anonymous (nem ellenőrzött)
szo, 08/03/2019 - 15:50
Permalink
Új hozzászólás | linux.valodi.info
Sexy2call Quick search and get the modern results
Get a massage escort girl, discrete apartment or any perfect and indulgent recreation. Trying
to find escort girls? Discrete apartments? Generate a quick search by
region
Claudio (nem ellenőrzött)
k, 10/13/2020 - 00:14
Permalink
Új hozzászólás | linux.valodi.info
Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn't show
up. Grrrr... well I'm not writing all that over again.
Anyhow, just wanted to say great blog!
Here is my web page: Webdesign blesdijke
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 13:30
Permalink
Új hozzászólás | linux.valodi.info
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.
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 13:56
Permalink
Új hozzászólás | linux.valodi.info
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.
Sheila (nem ellenőrzött)
h, 12/24/2018 - 07:29
Permalink
Új hozzászólás | linux.valodi.info
I'm gone to say to my little brother, that he should also visit
this web site on regular basis to take updated from latest information.
Have a look at my blog ... Funny Picture
Anonymous (nem ellenőrzött)
cs, 07/11/2019 - 03:56
Permalink
Új hozzászólás | linux.valodi.info
Sexy2call - https://sexy2call.com/escortsgirls/%D7%A0%D7%A2%D7%A8%D7%95%D7%AA-%D7%9C... Quick search and
have the most up-to-date results Find a massage escort girl, discrete apartment
or any perfect and indulgent recreation. Interested in escort girls?
Discrete apartments? Produce a quick search by region
Rose (nem ellenőrzött)
szo, 08/15/2020 - 16:29
Permalink
Új hozzászólás | linux.valodi.info
Hi 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 beneficial information to work on.
You have done a marvellous job!
My webpage: Resurge review
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 14:25
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 15:12
Permalink
Új hozzászólás | linux.valodi.info
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
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 16:03
Permalink
Új hozzászólás | linux.valodi.info
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!
Sharron (nem ellenőrzött)
cs, 04/16/2020 - 06:42
Permalink
Új hozzászólás | linux.valodi.info
You can definitely see your expertise in the work you write.
The world hopes for even more passionate writers like you who are not afraid to mention how they believe.
At all times go after your heart.
Also visit my web-site; best CBD oil
Tanisha (nem ellenőrzött)
k, 04/28/2020 - 23:45
Permalink
Új hozzászólás | linux.valodi.info
It is not my first time to go to see this web page, i am browsing this website dailly and
take fastidious data from here everyday.
my blog :: best CBD oil
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 18:53
Permalink
Új hozzászólás | linux.valodi.info
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
Eduardo (nem ellenőrzött)
szo, 04/25/2020 - 19:14
Permalink
Új hozzászólás | linux.valodi.info
For most up-to-date news you have to visit the web and on world-wide-web I found this web
site as a best web site for latest updates.
My blog post :: best CBD gummies
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 19:05
Permalink
Új hozzászólás | linux.valodi.info
Have you ever thought about adding a little bit more than just your articles?
I mean, what you say is fundamental and everything.
But think about if you added some great pictures or videos to
give your posts more, "pop"! Your content is excellent but with
pics and videos, this blog could certainly be one of the greatest
in its niche. Awesome blog!
my web site :: taller automotriz
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 19:44
Permalink
Új hozzászólás | linux.valodi.info
WOW just what I was looking for. Came here by searching for Tatler (1709 journal)
Have a look at my page ... Talleres de Perico
Anonymous (nem ellenőrzött)
cs, 05/17/2018 - 20:18
Permalink
Új hozzászólás | linux.valodi.info
Howdy would you mind letting me know which webhost you're using?
I've loaded your blog in 3 completely different web browsers and I must say this
blog loads a lot faster then most. Can you suggest a good web hosting
provider at a reasonable price? Thank you, I appreciate it!
Look into my web page Talleres (Monterrey Metro)
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 22:11
Permalink
Új hozzászólás | linux.valodi.info
Thank you, I've recently been searching for information about this subject for a long time and yours is the greatest I have found out
till now. However, what concerning the conclusion? Are you
positive in regards to the source?
Also visit my weblog ... taller de afilar cabimas
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 17:27
Permalink
Új hozzászólás | linux.valodi.info
Thank you for every other magnificent post. Where else could anybody get that type of information in such an ideal way of writing?
I've a presentation next week, and I am at The Tallest Man on Earth search for such info.
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 12:31
Permalink
Új hozzászólás | linux.valodi.info
Howdy! 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 updates.
Check out my homepage - taller shoes
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 17:30
Permalink
Új hozzászólás | linux.valodi.info
This is really interesting, You're a very skilled blogger.
I have joined your feed and look forward to seeking more of your fantastic post.
Also, I've shared your web site in my social networks!
Feel free to surf to my web site ... Tallest building on Earth
Anonymous (nem ellenőrzött)
p, 05/18/2018 - 19:21
Permalink
Új hozzászólás | linux.valodi.info
I am really inspired with your writing talents
and also with the structure in your weblog. Is this a paid topic or did you modify it yourself?
Anyway keep up the nice quality writing, it is uncommon to look a great weblog
like this one these days..
My website: shoe lifts for men
Lea (nem ellenőrzött)
k, 05/26/2020 - 21:06
Permalink
Új hozzászólás | linux.valodi.info
You really make it appear so easy along with your presentation however I find this matter to
be actually something that I think I might by no means understand.
It sort of feels too complex and extremely wide for me.
I am taking a look ahead in your next publish, I will attempt
to get the cling of it!
my blog post ... CBD oil for anxiety
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 03:49
Permalink
Új hozzászólás | linux.valodi.info
Why users still make use of to read news papers when in this technological globe all is
presented on net?
Here is my blog ... shoe lifts for men 1 inch
Anonymous (nem ellenőrzött)
szo, 05/19/2018 - 05:30
Permalink
Új hozzászólás | linux.valodi.info
Fantastic goods from you, man. I've understand your stuff previous
to and you are just extremely excellent. I actually like what you have acquired here, really like what you're stating and
the way in which you say it. You shoes that make you taller it entertaining and you still care for to
keep it smart. I can not wait to read far more from you.
This is actually a tremendous web site.
Anonymous (nem ellenőrzött)
sze, 07/10/2019 - 09:24
Permalink
Új hozzászólás | linux.valodi.info
Sexy2call Quick search to get
the modern results Locate a massage escort girl, discrete apartment
or any perfect and indulgent recreation. Trying to find escort girls?
Discrete apartments? Make a quick search by region
Anonymous (nem ellenőrzött)
sze, 03/15/2023 - 22:42
Permalink
Új hozzászólás | linux.valodi.info
high paying work from home jobs for beginners
ways to promote herbal supplements online
PharmEmpire affiliate registration fee
affiliate programs for pet health products
My page online pharmacy affiliate programs
Hung (nem ellenőrzött)
szo, 10/06/2018 - 16:10
Permalink
Új hozzászólás | linux.valodi.info
I'd like to find out more? I'd love to find out some additional information.
my webpage: Free Online Dating
Felix (nem ellenőrzött)
sze, 12/11/2019 - 06:23
Permalink
Új hozzászólás | linux.valodi.info
hello there and thank you for your information – I've definitely picked
up something new from right here. I did however expertise some technical points using
this site, since I experienced to reload the website many times previous to I could
get it to load correctly. I had been wondering if your hosting is OK?
Not that I'm complaining, but slow loading instances times will sometimes affect your placement in google and could
damage your quality score if ads and marketing with
Adwords. Anyway I'm adding this RSS to my email and could look out for a lot more of your respective exciting content.
Make sure you update this again very soon.
Here is my web blog; dr auto sales scottsdale arizona
Evie (nem ellenőrzött)
h, 04/20/2020 - 17:00
Permalink
Új hozzászólás | linux.valodi.info
Heya i am for the first time here. I found this board and I find
It truly useful & it helped me out a lot. I hope to give something back and help others like you aided me.
my site ... best CBD oil
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 16:28
Permalink
Új hozzászólás | linux.valodi.info
My family every time say that I am wasting my time here at web, but I know I
am getting experience daily by reading thes nice posts.
Check out my weblog ... Tallegalla State School
Dieter (nem ellenőrzött)
k, 02/26/2019 - 00:32
Permalink
Új hozzászólás | linux.valodi.info
I have been exploring for a little for any high-quality articles or weblog posts on this sort of house
. Exploring in Yahoo I ultimately stumbled upon this
web site. Reading this info So i am happy to express that I have an incredibly just right uncanny feeling I found
out just what I needed. I such a lot for sure will
make certain to don?t overlook this web site and give it a look regularly.
Look at my homepage: Juicy Pussy Lips
Anonymous (nem ellenőrzött)
sze, 03/15/2023 - 23:22
Permalink
Új hozzászólás | linux.valodi.info
health blog product reviews
healthcare social media jobs from home
how to become a successful health blogger
virtual jobs
my web-site affiliate program reviews
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 07:54
Permalink
Új hozzászólás | linux.valodi.info
Hi to every body, it's my first visit of this weblog; this webpage includes awesome and
really excellent material in favor of readers.
my page Taller de Gráfica Popular
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 14:55
Permalink
Új hozzászólás | linux.valodi.info
I think this is among the most significant info for me.
And i'm glad reading your article. But wanna remark on some general things, The web site style is great, the articles is really
excellent : D. Good job, cheers
Also visit my web-site :: get taller
Christina (nem ellenőrzött)
h, 03/23/2020 - 09:43
Permalink
Új hozzászólás | linux.valodi.info
Hello, all is going perfectly here and ofcourse every one is
sharing facts, that's really good, keep up writing.
My blog post :: https://royalcbd.com/product/cbd-salve/
Bella (nem ellenőrzött)
p, 06/17/2022 - 07:06
Permalink
Új hozzászólás | linux.valodi.info
Hi there! This is my first comment here so I just wanted to give a quick shout out
and tell you I really enjoy reading your blog posts.
Can you recommend any other blogs/websites/forums that
cover the same subjects? Thanks a ton!
Feel free to surf to my site - radio codes
Anonymous (nem ellenőrzött)
h, 07/31/2017 - 10:53
Permalink
Új hozzászólás | linux.valodi.info
Attractive component of content. I simply stumbled upon your site and in accession capital to assert that I get actually loved account your blog posts.
Anyway I will be subscribing for your augment or even I achievement you get right of entry to persistently quickly.
Check out my weblog; Apotek Online (Johnson)
Anonymous (nem ellenőrzött)
szo, 05/05/2018 - 19:34
Permalink
Új hozzászólás | linux.valodi.info
Excellent post. I was checking constantly this blog and I am impressed!
Very helpful info particularly the last part :) I
care for such info much. I was seeking this particular information for a
long time. Thank you and good luck.
Take a look at my homepage chocolate
Anonymous (nem ellenőrzött)
sze, 05/16/2018 - 06:55
Permalink
Új hozzászólás | linux.valodi.info
It's great that you are getting thoughts from this post as well as from our
dialogue made at this place.
My blog post; slimmer
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.
Oldalak
Új hozzászólás