Dear luggers,
I have SuSe 9.1 installed on my machine. I dont want to see the filenames started with dot (as output of ls command). Red Hat does it by default. How it can be done in SuSe ???
Thaks in advance.
--- Sachin A Chavan sachin.chavan@softhome.net wrote:
I dont want to see the filenames started with dot (as output of ls command).
Here is one way.
alias ls='ls | grep -v ^.'
Regards,
Nadiem.
__________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250
On Thu, Jan 13, 2005 at 11:46:32AM -0800, Nadiem wrote:
--- Sachin A Chavan sachin.chavan@softhome.net wrote:
I dont want to see the filenames started with dot (as output of ls command).
Here is one way.
alias ls='ls | grep -v ^.'
ls doesn't show dot files by default. Sachin's system has ls aliased to something like 'ls -a'. Check /etc/bash* and similar files.
Satya wrote:
On Thu, Jan 13, 2005 at 11:46:32AM -0800, Nadiem wrote:
--- Sachin A Chavan sachin.chavan@softhome.net wrote:
I dont want to see the filenames started with dot (as output of ls command).
Here is one way.
alias ls='ls | grep -v ^.'
ls doesn't show dot files by default. Sachin's system has ls aliased to something like 'ls -a'. Check /etc/bash* and similar files.
Or alternatively to get the unalised (original) output of the command, or for that matter any command,
\ls
HTH, Rajen.
-- ... Don't be humble ... you're not that great. -- Golda Meir
On Friday 14 January 2005 00:25, Rajen M. Parekh wrote:
Satya wrote:
On Thu, Jan 13, 2005 at 11:46:32AM -0800, Nadiem wrote:
--- Sachin A Chavan sachin.chavan@softhome.net
wrote:
I dont want to see the filenames started with dot (as output of ls command).
Here is one way.
alias ls='ls | grep -v ^.'
ls doesn't show dot files by default. Sachin's system has ls aliased to something like 'ls -a'. Check /etc/bash* and similar files.
Or alternatively to get the unalised (original) output of the command, or for that matter any command,
\ls
HTH, Rajen.
--
Satya was right! I checked LS_OPTION environment variable. it was set to '-a -N --color=tty -T 0'. I removed -a. and it worked.
Thanks to all of you giving different solutions.
... Don't be humble ... you're not that great. -- Golda Meir
Sachin A Chavan wrote:
Dear luggers,
I have SuSe 9.1 installed on my machine. I dont want to see the filenames started with dot (as output of ls command). Red Hat does it by default. How it can be done in SuSe ???
Hi Sachin,
This is true only for the root user, it is a precaution taken by suse to show you all files and not hide them from the root user. Search for LS_OPTIONS variable in /etc/bash.bashrc for a solution to remove this.
Amish.
Sometime Today, Amish Munshi assembled some asciibets to say:
Sachin A Chavan wrote:
I have SuSe 9.1 installed on my machine. I dont want to see the filenames started with dot (as output of ls command).
This is true only for the root user, it is a precaution taken by suse
Sachin, if you are logged in as root, I'd suggest that your solution be to _not_ log in as root, and not to change LS_OPTIONS.