LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-20-2005, 12:46 AM   #1
mking007
Member
 
Registered: Jul 2003
Location: China
Distribution: Red Hat, SuSE and Novell Linux Desktop
Posts: 96

Rep: Reputation: 15
where is bashrc on SuSE 9.2 and NLD 9


I use NLD (Novell Linux desktop, based on SuSE) 9 now, and this also happen on SuSE 9.2

each time i use "ls", it execute as "ls -a", so all hiden files get displayed.I don't want that. but i can't find bashrc file to change. so how to configure bash on SuSE 9.2 and NLD 9?
 
Old 01-20-2005, 02:09 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There may be a .bashrc script in your home directory. If not, check a .profile, or .bash_login there also.

Usually, ls is aliased in the /etc/bash.bashrc script, and set to the variable $LS_OPTIONS, so the setting of LS_OPTIONS is probably what you are looking for.

If you don't have a .bashrc in your home directory, you could make one with the line:
LC_OPTIONS='-N --color=tty -T 0' which is what mine is set to.

If you want to make the change global for all users, you could use /etc/profile.local.

____

I reread part of the book "Learning the Bash Shell" by Cameron Newham.

The name of a users bash login script is ~/.bash_profile. If this file doesn't exist, bash looks for ~/.bash_login. If this doesn't exist, it looks for ~/.profile.

The ~/.profile file is also read by some other shells, so what is often done is that the ~/.bash_profile script will contain the line 'source .bash_profile' to execute commands common to bash, and bourne shells.

Last edited by jschiwal; 01-20-2005 at 04:41 PM.
 
Old 01-23-2005, 10:18 PM   #3
mking007
Member
 
Registered: Jul 2003
Location: China
Distribution: Red Hat, SuSE and Novell Linux Desktop
Posts: 96

Original Poster
Rep: Reputation: 15
thank u

SuSE's bash profile is /etc/bash.bashrc, and it works globe for all users.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble mounting /net shares on Suse (NLD) brow27 Linux - Networking 0 10-04-2005 03:00 PM
Can't get NIC working in NLD 9 (SuSE 9.1) archangelnix SUSE / openSUSE 0 07-29-2005 04:35 PM
nld justinr1 Linux - Software 1 07-21-2005 02:20 PM
Dual Head not working with XFree86 4.3, Suse NLD, flgrx 8.14.13 mickeyd SUSE / openSUSE 0 07-13-2005 09:39 PM
.bashrc or .profile for root in SuSE jimsee Linux - General 3 11-15-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration