How to Create and Use Alias Command in Linux | Top Docs with Jay LaCroix

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 21

  • @jim7smith
    @jim7smith 3 месяца назад

    Thanks, Jay. Like you, I have gotten the majority of my aliases from others, kudos to them!
    Been doing aliases for years, but I always put them in the .bash_aliases file instead of .bashrc. That way they are always in the same place and I can quickly copy the .bashrc to other desktops.

  • @Carnyx_1
    @Carnyx_1 2 года назад +3

    I think aliases are great, except when I use them for longer commands I tend to forget those commands, and I have to create them manually on every server on which I work. Which makes me forget the important longer commands faster. Great video none the less.

  • @alandouglasrandall9961
    @alandouglasrandall9961 Год назад

    This geriatric newbie signed back in to RUclips after a long while away because of this very useful tutorial. Thanks a bunch :-) Subscribing NOW!

  • @tubeDude48
    @tubeDude48 2 года назад +5

    You should edit: *.bash_aliases* for all your aliases. Leave *.bashrc* for other things!

  • @hootiebubbabuddhabelly
    @hootiebubbabuddhabelly Год назад

    This is how I got my "Thanks!" with a "My pleasure." response. I was trying to write a bash script for it but what a hassle! But the no contraction thing is a pain...ROFL!

  • @herrkatzegaming
    @herrkatzegaming 2 года назад +1

    one of my favourites on my laptop is alias cls = "clear", What it does is it allows me to use the windows command "cls" in my linux terminals, I have it on my laptop's .bash_aliases file

  • @hamzasahman772
    @hamzasahman772 Год назад

    Hello i have one question if it’s possible to answer me.
    I want to create alias like..when i turn on linux i want them to ask me for number and when i put number i want to list some names.
    Do you have any idea how to do that?

  • @ponybeargrumpyface5289
    @ponybeargrumpyface5289 Год назад

    Very Helpful....Thank you very much😆😆😆

  • @12Q46HPRN
    @12Q46HPRN 2 года назад +1

    Great video, as always!
    What are your thoughts on placing the aliases in the .bash_aliases file vs .bashrc file?

  • @heckyes
    @heckyes 2 года назад

    Can you chain together a bunch of other alias's for alias-ception?

  • @guillermolopez7327
    @guillermolopez7327 Год назад

    Thank you very much!

  • @chadtsai
    @chadtsai Год назад

    Is there a limitation of how many aliases we can use? Is there a way to increase the number of aliases? Thanks.

  • @busyrand
    @busyrand Год назад

    All Hail the Mighty Algorithm for recommending this video....

  • @dibanpitchaimuthu9336
    @dibanpitchaimuthu9336 2 года назад

    I had to write this command "source ~/.bashrc" for it to work, but when I restart my terminal I had to do that again. Anyone else has the same problem?

  • @sk6532
    @sk6532 Год назад

    good info

  • @guilherme5094
    @guilherme5094 2 года назад

    👍!

  • @mattcargile
    @mattcargile 3 месяца назад

    A bit dangerous to have an alias always download a file from GitHub and run it ad-hoc. Would be better to just pull down the python script and review first.

  • @waltsullivan8986
    @waltsullivan8986 Год назад

    I like alias mtu="ip l | grep \$(ip r| awk '/default/ {print \$5}')|awk '{print \$2, \$4, \$5}'"

  • @venkatrevanth5386
    @venkatrevanth5386 2 года назад

    mysshd="service sshd "