but in others linux distros i just do .. instead of cd ..
in fedora i get this message
You are using a different shell or aliases/shell functions there.
First I would urge you to NOT become dependent on aliases and functions for short everyday commands. Many years ago I built a really extensive set of commands for some ancient VAPL environmnet or similar - and although it was very clean and convenient - I later found that I forgot how to use the basic commands well which made it very difficult to do anything without the magic bag of tricks.
So consider tricks like these ...
and particularly these
Quote:
colorls.sh: alias ll='ls -l' 2>/dev/null
colorls.sh: alias l.='ls -d .*' 2>/dev/null
alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
|
to be harmful.
aliases like ....
Quote:
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
|
that merely change default options (to prevent accidents) are useful.
Aliases that reduce tedious typing are fine, so I have no problem with ...
Quote:
alias cdm='cd /run/media/gene/'
alias lsm='ls /run/media/gene'
alias llm='ls -l /run/media/gene'
|
in principle, but it would be a lot better to just name the directory with a variabe ....
Quote:
|
export mymedia="/run/media/$USER"
|
then use the obvious commands
cd $mymedia
ls $mymedia
ls -ladR $mymedia
There is no advantage and a lot of limitations for aliasas vs shell functions, so
..(){ cd ..;}
instead of
alias ..='cd ..'