changing directory listing type
Hi, I'm a new FreeBSD user and using FreBSD 4.6.2. I wonder if it is possible to colour directories in blue or symbolic links to another like linux systems. Now all them are in the same white colour. Is this simple? Thanks... Özgür ÖZASLAN http://ozaslan.ifbim.itu.edu.tr To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
hi try ls -G or install gnuls from ports /usr/ports/misc/gnuls and and run ls --color regard On Tue, 26 Nov 2002 15:51:43 +0200 Özgür Özaslan [EMAIL PROTECTED] wrote: n -- If a straight line fit is required, obtain only two data points. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
Hi, I'm a new FreeBSD user and using FreBSD 4.6.2. I wonder if it is possible to colour directories in blue or symbolic links to another like linux systems. Now all them are in the same white colour. Is this simple? Thanks... # man ls The solution is ls -F. If you want to bind it permanently, edit your ~/.cshrc and add a line like this: alias ls ls -F You might consider this as more usefull: alias ll ls -alF -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
alias ls ls -F You might consider this as more usefull: alias ll ls -alF Sorry, it must be alias ls ls -G and alias ll ls -alG -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
On Tue, Nov 26, 2002 at 03:51:43PM +0200, Özgür Özaslan wrote: I'm a new FreeBSD user and using FreBSD 4.6.2. I wonder if it is possible to colour directories in blue or symbolic links to another like linux systems. Now all them are in the same white colour. Is this simple? Thanks... Simple enough. If you log into the console without using X-windows, all you need to do is: ls -G to see the pretty colours. To save typing, you can alias 'ls' to 'ls -G' in your shell configuration files: alias ls ls -G# .tcshrc, .cshrc or alias ls='ls -G' # .shrc, .bashrc If you're using xterm(1) under X-Windows, you need to do the above, plus you need to tell xterm to use a terminal type that supports colours. For some reason hidden in the mists of time, the default 'xterm' terminal type under FreeBSD is better known elsewhere as 'xterm-mono', and you have to change to using 'xterm-color' to get the colourization you want --- this makes quite a difference to several programs like mutt, emacs, /stand/sysinstall which do full screen character based stuff. Simply put: xterm*termName: xterm-color into your ~/.Xdefaults file, and if necessary add: [ -f ${HOME}/.Xdefaults ] /usr/X11R6/bin/xrdb -merge ${HOME}/.Xdefaults somewhere near the top of your .xsession or .xinitrc file. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
At 03:54 PM 11.26.2002 +0200, Ismail YENIGUL wrote: hi try ls -G or install gnuls from ports /usr/ports/misc/gnuls and and run ls --color regard Easier yet, just add the following line in /etc/profile: # alias ls='ls -G' Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
# [EMAIL PROTECTED] / 2002-11-26 14:07:34 +: For some reason hidden in the mists of time, the default 'xterm' terminal type under FreeBSD is better known elsewhere as 'xterm-mono', and you have to change to using 'xterm-color' to get the colourization you want Check the mutt-users@ archives, for example. Thomas E. Dickey, xterm's maintainer doesn't have much nice to say about the FreeBSD's xterm termcap description. -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
alias lsls -alG I made the changes to my .cshrc but I had to reboot to make the changes? Anyway to activate it without rebooting? I also added alias ls='ls -G' my /etc/profile but I couldn't get it to work with 4.5. Do I have to activate this? - Original Message - From: Jack L. Stone [EMAIL PROTECTED] To: Ismail YENIGUL [EMAIL PROTECTED]; Özgür Özaslan [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:21 AM Subject: Re: changing directory listing type At 03:54 PM 11.26.2002 +0200, Ismail YENIGUL wrote: hi try ls -G or install gnuls from ports /usr/ports/misc/gnuls and and run ls --color regard Easier yet, just add the following line in /etc/profile: # alias ls='ls -G' Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
At 12:14 PM 11.26.2002 -0800, Grant Cooper wrote: alias lsls -alG I made the changes to my .cshrc but I had to reboot to make the changes? Anyway to activate it without rebooting? Just log out of the shell and next time back in, it should read the settings. I also added alias ls='ls -G' my /etc/profile but I couldn't get it to work with 4.5. Do I have to activate this? Next time you boot, it will take effect. - Original Message - From: Jack L. Stone [EMAIL PROTECTED] To: Ismail YENIGUL [EMAIL PROTECTED]; Özgür Özaslan [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:21 AM Subject: Re: changing directory listing type At 03:54 PM 11.26.2002 +0200, Ismail YENIGUL wrote: hi try ls -G or install gnuls from ports /usr/ports/misc/gnuls and and run ls --color regard Easier yet, just add the following line in /etc/profile: # alias ls='ls -G' Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
ignore that, Just has to log off and re login. - Original Message - From: Grant Cooper [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:14 PM Subject: Re: changing directory listing type alias lsls -alG I made the changes to my .cshrc but I had to reboot to make the changes? Anyway to activate it without rebooting? I also added alias ls='ls -G' my /etc/profile but I couldn't get it to work with 4.5. Do I have to activate this? - Original Message - From: Jack L. Stone [EMAIL PROTECTED] To: Ismail YENIGUL [EMAIL PROTECTED]; Özgür Özaslan [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:21 AM Subject: Re: changing directory listing type At 03:54 PM 11.26.2002 +0200, Ismail YENIGUL wrote: hi try ls -G or install gnuls from ports /usr/ports/misc/gnuls and and run ls --color regard Easier yet, just add the following line in /etc/profile: # alias ls='ls -G' Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
Just has to log off and re login. Well, if you are using csh or tcsh, etc you can just do 'source .cshrc' to get it to suck in the latest. ... or # rehash To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
At 12:29 PM 11.26.2002 -0800, Grant Cooper wrote: ignore that, Just has to log off and re login. - Original Message - From: Grant Cooper [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:14 PM Subject: Re: changing directory listing type alias lsls -alG I made the changes to my .cshrc but I had to reboot to make the changes? Anyway to activate it without rebooting? I also added alias ls='ls -G' my /etc/profile but I couldn't get it to work with 4.5. Do I have to activate this? On the /etc/profile method, sorry, forgot about not wanting to reboot (although there may be a way w/o reboot). The other method .cshrc should work on logout/login and there may be a way to do the /etc/profile method without a reboot. The .cshrc is limited to each user's shell while the /etc/profile is global to all of the shells except the root. It's been a long time since I set it up, I just know it works and I prefer it for my needs. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
At 02:42 PM 11.26.2002 -0500, Kliment Andreev wrote: Just has to log off and re login. Well, if you are using csh or tcsh, etc you can just do 'source .cshrc' to get it to suck in the latest. ... or # rehash don't you mean just hash rehash is not in an sh shell Guess this is well-covered though by now... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
On Tue, 26 Nov 2002, Grant Cooper wrote: ignore that, Just has to log off and re login. You don't even have to log off and back on. After you make a change to your ~/.cshrc or ~/.tcshrc file, you can simply run `source ~/.cshrc` The only problem you can run into is kind of meshing aliases together, for example if you had three different aliases that do the same exact thing. I have been a tcsh shell user for the past 10+ years so I'd be happy to forward you parts of my ~/.cshrc with commentary about what each part does if you are interested. By the way, it doesn't hurt to use full paths in aliases. That way you don't get into circular stuff, for example, use this instead: alias ls /bin/ls -alG - Original Message - From: Grant Cooper [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:14 PM Subject: Re: changing directory listing type alias lsls -alG I made the changes to my .cshrc but I had to reboot to make the changes? Anyway to activate it without rebooting? I also added alias ls='ls -G' my /etc/profile but I couldn't get it to work with 4.5. Do I have to activate this? - Original Message - From: Jack L. Stone [EMAIL PROTECTED] To: Ismail YENIGUL [EMAIL PROTECTED]; Özgür Özaslan [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:21 AM Subject: Re: changing directory listing type At 03:54 PM 11.26.2002 +0200, Ismail YENIGUL wrote: hi - try ls -G or install gnuls from ports /usr/ports/misc/gnuls and and run ls --color regard Easier yet, just add the following line in /etc/profile: # alias ls='ls -G' Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] -- Peter Leftwich President Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: changing directory listing type
# [EMAIL PROTECTED] / 2002-11-26 15:33:57 -0500: By the way, it doesn't hurt to use full paths in aliases. That way you don't get into circular stuff, for example, use this instead: alias ls /bin/ls -alG which shell has recursive aliases? -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message