Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alias
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Tue May 20, 2003 7:00 pm    Post subject: alias Reply with quote

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Tue May 20, 2003 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Tue May 20, 2003 9:00 pm    Post subject: ... Reply with quote

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Tue May 20, 2003 9:27 pm    Post subject: Reply with quote

8O 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
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Tue May 20, 2003 11:02 pm    Post subject: ... Reply with quote

No, al successivo riavvio non ne va nemmeno uno....
Il dilemma si fa angosciante :roll: :roll: :roll: :roll: :roll: :roll:
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30881
Location: here

PostPosted: Wed May 21, 2003 6:14 am    Post subject: Reply with quote

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
Quote:
. /etc/profile

Con questo dovrebbe funzionare

P.S.: ricordati che quando hai modificato il file .bashrc devi riavviare la console
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed May 21, 2003 6:34 am    Post subject: Reply with quote

Ma il flie profile viene caricato sempre! Serve per quello.

Con
Code:
. /etc/profile
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
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Wed May 21, 2003 8:10 am    Post subject: Terminale Reply with quote

Uso Eterm e xterm. Stasera provo.
Grazie mille ancora
Jaco
Back to top
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Wed May 21, 2003 6:54 pm    Post subject: che casino... Reply with quote

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu May 22, 2003 7:23 am    Post subject: Reply with quote

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
View user's profile Send private message
AEn|gMa
n00b
n00b


Joined: 18 May 2003
Posts: 6

PostPosted: Thu May 22, 2003 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Thu May 22, 2003 8:27 pm    Post subject: grazie mille Reply with quote

Grazie mille a tutti.
Ho risolto..
CIao
Jaco
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum