se provo a fare un alias di un comando, non me lo memorizza.
Ossia se faccio un alias l='ls'
e lo esegui funziona.
Ma se chiudo e riapro la console non me lo riconosce
se provo a fare un alias di un comando, non me lo memorizza.
Ossia se faccio un alias l='ls'
e lo esegui funziona.
Ma se chiudo e riapro la console non me lo riconosce
Mettili in ~/.bashrc o ~/.bash_profile
crealo
If I like a program I
must share it with other people who like it.
creo il file /home/manu/.bashrc
con dentro cosa?
cioè scrivo semplicemente alias l='ls' ????
certo. Il mio ad esempio è così:
# /etc/skel/.bashrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $
# This file is sourced by all *interactive* bash shells on startup. This
# file *should generate no output* or it will break the scp and rcp commands.
# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color"
If I like a program I
must share it with other people who like it.
Sì, praticamente il file .bashrc è un "listato" di comandi come potresti impartirli alla shell, solo che viene interpretato quando apri un terminale o fai il login...
(i commenti vanno dopo un #)