Re: ls nitpick
On Sat, Jan 03, 2004 at 10:31:41PM -0500, Russ Schneider wrote: When you do an ls on Debian, you see something like the following: file1 file2 file3 dir1 dir2 file4 etc. When you do the same on Mandrake, you get file1 file2 file3 dir1/ dir2/ file4 You see how there's a / at the end of each directory name, making it really easy to tell at a glance what's a directory and what's not? Any way to config Debian's ls to do that? I realize it's just a nitpick, but I am curious. In your home directory, you should have a .bashrc file put there from /etc/skel when your account was created. It contains a lot of goodies that are commented out, in particular: # enable color support of ls and also add handy aliases eval `dircolors -b` alias ls='ls --color=auto' If you uncomment the above two lines, and add a -F option to the ls alias, it will walk and talk similarly to how Mandrake's ls presumably does. Run 'alias ls' on your Mandrake box to determine exactly how they've aliased it if you want to make it identical. Naturally, you will need to log in and log out again (or close and open a fresh xterm, as the case may be). You may also wish to uncomment the lines in your .bash_profile that source the .bashrc if it exists. HTH Andrew signature.asc Description: Digital signature
Re: ls nitpick
Russ Schneider wrote: When you do an ls on Debian, you see something like the following: file1 file2 file3 dir1 dir2 file4 etc. When you do the same on Mandrake, you get file1 file2 file3 dir1/ dir2/ file4 You see how there's a / at the end of each directory name, making it really easy to tell at a glance what's a directory and what's not? Any way to config Debian's ls to do that? I realize it's just a nitpick, but I am curious. In your .bashrc file you can enable console colors. It's not the same, but it's a way to differentiate different types of files (the default is dir's re a bluish color, executables are green, plain files (html, txt, mp3's etc.) are white/gray and archives are red). -- Joseph A. Nagy, Jr. Student at Motlow State Community College Political Activist Extrodinaire The only fallacy is the inaction on our part to stave off the worst of horrors, the stripping of personal freedom. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: ls nitpick
On Sat, Jan 03, 2004 at 10:31:41PM -0500, Russ Schneider wrote: When you do an ls on Debian, you see something like the following: file1 file2 file3 dir1 dir2 file4 etc. When you do the same on Mandrake, you get file1 file2 file3 dir1/ dir2/ file4 I doubt that either alphabetizes an 'f' before a 'd'. You see how there's a / at the end of each directory name, making it really easy to tell at a glance what's a directory and what's not? Any way to config Debian's ls to do that? I realize it's just a nitpick, but I am curious. Have done 'man ls'? Try 'ls -F'. -- But a government in which the majority rule in all cases can not be based on justice ... Can there not be a government in which the majorities do not virtually decide right and wrong, but conscience? -- Henry David Thoreau Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: ls nitpick
On Sat, Jan 03, 2004 at 09:38:01PM -0600, Joseph A. Nagy, Jr. wrote: Russ Schneider wrote: When you do an ls on Debian, you see something like the following: file1 file2 file3 dir1 dir2 file4 etc. When you do the same on Mandrake, you get file1 file2 file3 dir1/ dir2/ file4 You see how there's a / at the end of each directory name, making it really easy to tell at a glance what's a directory and what's not? Any way to config Debian's ls to do that? I realize it's just a nitpick, but I am curious. This is the -p switch to ls. I guess what most people tell you to do is create a ls command earlier in your path or in /usr/local/bin that calls /bin/ls -p $*. I think there's something in /etc somewhere that controls this but I can't remember. In your .bashrc file you can enable console colors. It's not the same, but it's a way to differentiate different types of files (the default is dir's re a bluish color, executables are green, plain files (html, txt, mp3's etc.) are white/gray and archives are red). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: ls nitpick
On Sat, Jan 03, 2004 at 09:38:01PM -0600, Joseph A. Nagy, Jr. wrote: Russ Schneider wrote: Any way to config Debian's ls to do that? I realize it's just a nitpick, It seems quite important to me, though ;-) In your .bashrc file you can enable console colors. It's not the same, ...or even both. My favorite is: $ cat ~/.bashrc ls(){ ls --color=auto --classify $@; } Equivalents in shells' other startup script. Cheers, Jan. -- Jan Minar Please don't CC me, I'm subscribed. x 7 pgp0.pgp Description: PGP signature
Re: ls nitpick
On Saturday, Jan 3, 2004, at 20:38 America/Denver, Joseph A. Nagy, Jr. wrote: Russ Schneider wrote: When you do an ls on Debian, you see something like the following: file1 file2 file3 dir1 dir2 file4 etc. When you do the same on Mandrake, you get file1 file2 file3 dir1/ dir2/ file4 You see how there's a / at the end of each directory name, making it really easy to tell at a glance what's a directory and what's not? Any way to config Debian's ls to do that? I realize it's just a nitpick, but I am curious. In your .bashrc file you can enable console colors. It's not the same, but it's a way to differentiate different types of files (the default is dir's re a bluish color, executables are green, plain files (html, txt, mp3's etc.) are white/gray and archives are red). Mandrake just aliased ls to ls -F --color=auto Type alias in your shell on the Mandrake box to see what else they set. Look in /etc/profile and follow it to /etc/profile.d to see the other stuff they do and how. Easy to add to any other linux box. Standard shell customization stuff. -- Nate Duehr, [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]