aliasとは

このエントリーをはてなブックマークに追加
コマンドを定義する別名をaliasという

aliasを利用すれば、よく使うコマンドを別名として登録して、簡単に使うことができます。
よく設定されているのは、
ll

ls -l
(ファイル一覧をリスト形式オプションで)を呼び出すようになっているaliasですね。

現在どんなaliasが設定されているかは、aliasコマンドで確認できます。

現在のaliasのリストを表示する

[user@myserver ~]$ alias
alias ll=’ls -l –color=tty’
alias ls=’ls –color=tty’

独自のaliasを設定する

自分用のaliasを独自に設定する場合は、ホームディレクトリにある.bashrcに記述します。

例えば、viコマンドでvimを実行したい時はこんなふうに記述します。

$ vi ~/.bashrc
alias vi=’vim’
# User specific aliases and functions
alias vi ="vim"

記述して保存したら、一旦ログインし直すか、sourceコマンドで先程の.bashrcを実行することで反映されます。

source ~./bashrc

aliasとは」への34件のフィードバック

  1. here are the findings

    I just want to say I am just newbie to blogs and absolutely enjoyed this website. More than likely I’m want to bookmark your blog . You surely come with tremendous articles and reviews. Thanks a lot for sharing your blog site.

    返信
  2. Abogados Para Accidentes Texas

    Unquestionably believe that which you stated. Your favorite justification appeared to be on the internet the simplest thing to be aware of. I say to you, I certainly get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks

    返信
  3. Irving

    Simply put, just how do i look for blogs that fit what I intend to read about? Does anybody understand exactly how to CHECK OUT blog sites by subject or whatever on blog owner?.

    返信
  4. Tashia Ruhl

    That is a really good tip particularly to those new to the blogosphere. Simple but very accurate info… Appreciate your sharing this one. A must read post.

    返信
  5. Benton Arjune

    I seriously love your website.. Excellent colors & theme. Did you develop this site yourself? Please reply back as I’m hoping to create my own personal site and would love to find out where you got this from or exactly what the theme is called. Cheers.

    返信
  6. Vivan Segler

    Hello here, just turned out to be aware about your writings through Yahoo and bing, and have found that it is seriously informational. I’ll like should you decide continue this.

    返信
  7. Charley Freidhof

    It’s appropriate time to put together some schemes for the longer term. I have digested this blog posting and if I should, I want to encourage you very few remarkable assistance.

    返信
  8. Sarita Mosha

    Greetings, I do believe your blog could be having browser compatibility issues. When I take a look at your site in Safari, it looks fine however, if opening in Internet Explorer, it has some overlapping issues. I simply wanted to give you a quick heads up! Besides that, great site.

    返信
  9. John Deere Service Manuals

    It’s the best time to make a few plans for the longer term and it is time to be happy. I’ve read this post and if I could I want to suggest you some interesting issues or suggestions. Perhaps you could write subsequent articles relating to this article. I desire to read even more issues about it!

    返信
  10. pescuit pe dunare 2017 forum

    Wonderful goods from you, man. I have understand your stuff previous to and you
    are just too wonderful. I really like what you have acquired here,
    certainly like what you’re stating and the way
    in which you say it. You make it entertaining and you still care for to keep it wise.
    I cant wait to read much more from you. This is really
    a terrific website.

    返信
  11. blog here

    I simply want to say I am just very new to blogging and definitely loved this website. Likely I’m likely to bookmark your website . You actually have terrific writings. Kudos for sharing your website page.

    返信
  12. does adding tradelines work

    Great post. I was checking constantly this blog and I am impressed! Extremely useful info particularly the last part :) I care for such information much. I was seeking this particular information for a very long time. Thank you and best of luck.

    返信
  13. creare site web bucuresti

    Greetings I am so excited I found your blog page, I really found
    you by accident, while I was researching on Bing for something
    else, Nonetheless I am here now and would just like to say thanks for a tremendous post and
    a all round exciting blog (I also love the theme/design), I don’t
    have time to read through it all at the minute but I have book-marked it and also added in your RSS feeds, so
    when I have time I will be back to read more, Please do
    keep up the fantastic b.

    返信
  14. creare site web bucuresti

    I don’t know whether it’s just me or if everybody else encountering issues with your blog.

    It seems like some of the text in your posts are running off the screen. Can somebody
    else please provide feedback and let me know if this is happening to them
    as well? This might be a issue with my web browser because I’ve had this
    happen previously. Thanks

    返信
  15. web design bucuresti

    Does your blog have a contact page? I’m having a tough time locating it but, I’d like
    to shoot you an e-mail. I’ve got some suggestions for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing
    it expand over time.

    返信
  16. www.VSLprint.com

    It is convenient time to create some schemes for the foreseeable future. I’ve scan this blog post and if I have the ability to, I desire to propose you handful of insightful pointers.

    返信
  17. free psn codes generator

    Hello There. I found your weblog the usage of msn. That is a really
    neatly written article. I will make sure to bookmark it and
    come back to learn more of your useful information. Thanks for the post.

    I will definitely comeback.

    返信
  18. free google play gift card codes

    This design is steller! You most certainly 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 loved what you had to say, and more than that, how you presented it.
    Too cool!

    返信
  19. Sol Reighley

    Hi folks there, just turned out to be alert to your blog page through Google, and have found that it is pretty entertaining. I’ll like should you decide persist this.

    返信
  20. Carmine Niesen

    It happens to be the right day to get some goals for the future. I’ve go through this posting and if I can possibly, I desire to suggest you handful appealing instruction.

    返信

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>