[RASPBERRY Pi]ll コマンドを追加する, add [ll] as command to Raspberry Pi

 Raspberry PiはDebianですから、デフォルトに「ll」を対応しないので、利用するために、追加の対応が必要です。

# Custom aliases alias l='ls -a' alias ll='ls -l' alias la='ls -la'

簡単ですが、非常に役に立つコマンドですから、Linuxユーザーはぜひ覚えてください。

ついでに、再起動後でも自動的に反映できるよう設定しましょう。

1. [.bashrc]で設定しましょう。

vi ~/.bashrc

    .bashrcが開いたら、以下のように追記しましょう。
alias ll='ls -al'

2.  [.bash_profile]で[.bashrc]の設定を読み込みましょう。

vi ~/.bash_profile

    .bash_profileが開いたら、下のように追記しましょう。

source ~/.bashrc


As Raspberry Pi is Debian based system, it doesn't have [ll] as default command.

For using [ll], additional step is necessary.

# Custom aliases alias l='ls -a' alias ll='ls -l' alias la='ls -la'

It is very simple, but useful. It was a [must] action for a Linux user, I think. 

If you want to affect them even after server reboot, you have to proceed below.

1. Modify [.bashrc]

vi ~/.bashrc

    Add below.

alias ll='ls -al'

2. Modify [.bash_profile] to run [.bashrc]

vi ~/.bash_profile

     Then add below.    

source ~/.bashrc

コメント