Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ls a colori... come???
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
stefanonafets
l33t
l33t


Joined: 10 Feb 2003
Posts: 644

PostPosted: Thu Mar 20, 2003 12:11 am    Post subject: ls a colori... come??? Reply with quote

Come da titolo, come faccio ad avere ls a colori (tipo la redhat o il livecd 1.4-3)
Tank
_________________
registered Linux user number #411324
sed 's/ke/che/g'

<The Deployment Slave is initializing>
Back to top
View user's profile Send private message
skler
n00b
n00b


Joined: 18 Feb 2003
Posts: 14

PostPosted: Thu Mar 20, 2003 12:25 am    Post subject: Reply with quote

scrivi da shell

Code:
alias 'ls'='ls --color'


ogni volta ke eseguirai il comando ls ti darà l'output a colori se vuoi ke venga fatto sempre e x tutte le shell mettilo in qualche file di init...
ti posso consigliare /etc/profile (non ho testato se funziona)
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


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

PostPosted: Thu Mar 20, 2003 8:00 am    Post subject: Reply with quote

Funzica, funzica :D
_________________
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
teknux
Guru
Guru


Joined: 19 Feb 2003
Posts: 517
Location: Rome, IT

PostPosted: Thu Mar 20, 2003 10:24 am    Post subject: Reply with quote

aggiungo una piccola opzione:

Code:
alias 'ls'='ls --color=auto'


in questo modo, ls "capirà" quando dovrà usare i colori e quando non è il caso. ad esempio, dando un

ls /etc | less

senza l'opzione "auto" vicino al --color, vedresti l'output pieno di codici per i colori (qualcosa tipo "ESC1;30" ...).

buon utilizzo ;)

teknux
Back to top
View user's profile Send private message
sciack
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 120
Location: Genoa, Italy.

PostPosted: Sun May 18, 2003 9:44 pm    Post subject: uhmm Reply with quote

ciao,

io avevo travo un'altra soluzione per far vedere i colori a 'less'... però sono passati parecchi mesi, mi sembra fosse qualche opzione da passare a 'less'... non ricordo quali. mi informo, se trovo come facevo.

byez
_________________
the sciack
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