On October 8, 2014 3:05:17 AM PDT, "Carlos E. R."
On 2014-10-08 08:51, Felix Miata wrote:
cer@Telcontar:~> l .alias -rw-r--r-- 1 cer users 116 Jul 3 2006 .alias cer@Telcontar:~>
I did not put it there.
So I see, but I can't recall ever finding one around here. All my own aliases come from .bashrc. Can you find out where .alias came or comes from? Maybe it's a bug only on en_US systems to not have one, or a feature of selected locales?
I don't know... I looked at /etc/skeleton, it is not there. Maybe from an older release. I'd have to look at them in vmware installs.
[...]
On 5.3 the alias is working, but it is not in the .alias file. There is no .bashrc either (I'm looking at root's). Ah, got it, from /etc/profile. I can't copy here the definition, I haven't managed to start sshd server on it. Ah, got it: telnet.
# Further options for the 'ls' command are in /etc/DIR_COLORS. alias ls='ls --color=tty' alias dir='ls -l' alias ll='ls -l' alias la='ls -la' alias l='ls -alF' alias ls-l='ls -l' alias o='less' alias ..='cd ..' alias ...='cd ../..' alias +='pushd .' if [ -z "$KSH_VERSION" ]; then alias -- -='popd' fi alias rd=rmdir alias md='mkdir -p' alias unix2dos='recode lat1:ibmpc' alias dos2unix='recode ibmpc:lat1' alias unzip='unzip -L' alias which='type -p'
In 11.4 I don't see where it comes. There is /etc/profile and /etc/profile.d/, but I don't locate the definition. Ah! Got it:
/etc/profile.d/ls.bash
Same in 13.1. Definition is:
alias dir='ls -l' alias ll='ls -l' alias la='ls -la' alias l='ls -alF' alias ls-l='ls -l'
Telcontar:~ # rpm -qf /etc/profile.d/ls.bash aaa_base-extras-13.1-16.46.1.x86_64
:-))
-- Cheers / Saludos,
Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Yes, and every time I install any 'nix-ish system, I dig out those last 5 and put them in the profile, because the are so useful. Even on systems which doesn't use bash. These work in other shells like ksh too. I use them on OpenBSD and NetBSD. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org