View previous topic :: View next topic |
Author |
Message |
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Tue May 20, 2003 7:00 pm Post subject: alias |
|
|
Ciao a tutti.
Ho cercato su google e dopo thread kilometrici nei quali si disquisiva quale fosse il file piu appropriato a contenere gli alias, sono giunto alla conclusione che per avere gli alias per tutti gli utenti devo metterli in /etc/profile.
Ho fatto cio e come per magia andava. Ho riavviato e boom nn funzionano piu.
Io li ho messi alla fine del file /etc/profile, dopo queste righe:
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
export INPUTRC="/etc/inputrc"
fi
Cosa ho sbagliato.
Mi sento un po' un idiota a nn sapere dove bisogna mettere gli alias (
Grazie mille ancora a tutti e scusate per il disturbo e per la mole di domande che vi faccio.
Grazie.
Jaco |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Tue May 20, 2003 7:27 pm Post subject: |
|
|
Il file e' quello.... come li hai settati? _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Tue May 20, 2003 9:00 pm Post subject: ... |
|
|
Ho messo queste righe:
alias cd..='cd ..'
alias cp='cp -i'
alias d='ls'
alias kde='xinit /usr/bin/startkde'
alias l='ls'
alias la='ls -a'
alias ll='ls -l -k'
alias ls='ls -F --color=auto'
alias lsd='ls -d */'
alias md='mkdir'
alias mv='mv -i'
alias p='cd -'
alias rd='rmdir'
alias rm='rm -i'
alias s='cd ..'
Cosa può essere??
Grazie mille.
Jaco |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Tue May 20, 2003 9:27 pm Post subject: |
|
|
non ne va nemmeno uno? _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Tue May 20, 2003 11:02 pm Post subject: ... |
|
|
No, al successivo riavvio non ne va nemmeno uno....
Il dilemma si fa angosciante |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30925 Location: here
|
Posted: Wed May 21, 2003 6:14 am Post subject: |
|
|
Non ne sono sicuro ma prova a scrivere il comando:
Quote: | source /etc/profile |
Se funziona poi me puoi aggiungere nel file .bashrc la linea
Con questo dovrebbe funzionare
P.S.: ricordati che quando hai modificato il file .bashrc devi riavviare la console |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Wed May 21, 2003 6:34 am Post subject: |
|
|
Ma il flie profile viene caricato sempre! Serve per quello.
Con forzi il fatto che debba essere ricaricato nella shell corrente.
Che terminal usi? _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Wed May 21, 2003 8:10 am Post subject: Terminale |
|
|
Uso Eterm e xterm. Stasera provo.
Grazie mille ancora
Jaco |
|
Back to top |
|
|
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Wed May 21, 2003 6:54 pm Post subject: che casino... |
|
|
Dunque ho provato a fare . /etc/profile il tutto funziona. se pero cambio utilizzando il mio utente e poi ritorno root il tutto nn funziona piu.
Per il mio utente che ho creato invece funziona...
Cosa puo essere???
Grazie 1k
Jaco |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Thu May 22, 2003 7:23 am Post subject: |
|
|
Che il tuo terminale per qualche strano motivo non processa /etc/profile. Ma Eterm e qualsiasi terminal decente lo deve fare. _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
AEn|gMa n00b
Joined: 18 May 2003 Posts: 6
|
Posted: Thu May 22, 2003 4:27 pm Post subject: |
|
|
Specifica a xterm che apra /bin/bash come shell di login (forse --login)
Usando rxvt ad esempio l'ho impostata così:
Code: | rxvt -e /bin/bash --login |
Se hai qualche dubbio consulta i man di entrambi i terminali. |
|
Back to top |
|
|
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Thu May 22, 2003 8:27 pm Post subject: grazie mille |
|
|
Grazie mille a tutti.
Ho risolto..
CIao
Jaco |
|
Back to top |
|
|
|