On Tue, 2012-02-21 at 12:50 +0000, Πας Παρτού wrote:
Ψάχνω να βρω τα ψευδώνυμα. Πρώτη λεπτομέρεια, φυσικά υπάρχουν:
$ alias alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias ls='ls --color=auto' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
Το πρόβλημα είναι ότι δεν τα βρίσκω πουθενά! πχ: $ cat .bashrc # .bashrc
# Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
# User specific aliases and functions
όπως βλέπετε δεν είναι στο "~/.bashrc" αλλά δεν είναι ούτε στο "~/.bash_profile", ούτε στο "/etc/profile", ούτε στο "/etc/bashrc". Επίσης "~/.bash_login" δεν υπάρχει.
Πού είναι;
Στον κατάλογο /etc/profile.d/ και συγκεκριμένα στα αρχεία colorgrep.sh, colorls.sh και which2.sh.
Στα σχόλια του /etc/bashrc εξηγεί γιατί βρίσκονται εκεί:
# It's NOT a good idea to change this file unless you know what you # are doing. It's much better to create a custom.sh shell script in # /etc/profile.d/ to make custom changes to your environment, as this # will prevent the need for merging in future updates.