<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to disable color change when going to other directories? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604518#M79384</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just 'cd'-ing to the directory changes the colors or after you do a 'ls' on it? Anyway, try setting your terminal to another thing, like 'linux', 'ansi' or 'vt100' and see the differences.&lt;BR /&gt;&lt;BR /&gt;E.</description>
    <pubDate>Wed, 31 Oct 2001 10:36:10 GMT</pubDate>
    <dc:creator>Eugen Cocalea</dc:creator>
    <dc:date>2001-10-31T10:36:10Z</dc:date>
    <item>
      <title>How to disable color change when going to other directories?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604517#M79383</link>
      <description>I found out that every time when I 'cd' to /bin or /etc, the text color changes and it becomes blur against background color,  how can I disable this feature/bug?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,</description>
      <pubDate>Wed, 31 Oct 2001 00:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604517#M79383</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2001-10-31T00:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable color change when going to other directories?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604518#M79384</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just 'cd'-ing to the directory changes the colors or after you do a 'ls' on it? Anyway, try setting your terminal to another thing, like 'linux', 'ansi' or 'vt100' and see the differences.&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Wed, 31 Oct 2001 10:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604518#M79384</guid>
      <dc:creator>Eugen Cocalea</dc:creator>
      <dc:date>2001-10-31T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable color change when going to other directories?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604519#M79385</link>
      <description>My TERM is vt100. I found /etc/DIR_COLORS, how to modify this file for remote telnet session?</description>
      <pubDate>Thu, 01 Nov 2001 01:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604519#M79385</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2001-11-01T01:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable color change when going to other directories?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604520#M79386</link>
      <description>I think you hit the nail on the head when you pin pointed the DIR_COLOR file. Let's take this a step or two further -- this file is called from the definitions in /etc/profile.d (RedHat Linux 7.x) wherein there are "colorizing" wrappers for all kinds of shells. The files in /etc/profile.d are in turn called by /etc/bashrc, which in, turn is called by your /homedir/.bashrc, which is called by your /homedir/.profile.  -- convoluted, no?&lt;BR /&gt;&lt;BR /&gt;If the issue you have is merely with the vt100 profile, I'd recommend that you just change the entry in /etc/DIR_COLORS for vt100 terminals so that the results will be more to your liking. &lt;BR /&gt;&lt;BR /&gt;If, on the other hand, you just don't want the colorizing in your profile, no matter which terminal type you're using, then change your .bashrc to not call /etc/bashrc, and skip the whole mess. &lt;BR /&gt;&lt;BR /&gt;Best of tweaking....</description>
      <pubDate>Thu, 01 Nov 2001 01:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604520#M79386</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2001-11-01T01:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable color change when going to other directories?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604521#M79387</link>
      <description>I found /etc/profile also calls /etc/profile.d/*.sh. But I don't know how to modify that file as shown in the attachment.  Even I run 'export TERM=ansi', it still doesn't make any difference in terms of text color in my telnet session.  Any idea how to make some changes with this file?</description>
      <pubDate>Thu, 01 Nov 2001 03:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604521#M79387</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2001-11-01T03:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable color change when going to other directories?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604522#M79388</link>
      <description>You're probably telnetting to a Linux box from a broken terminal, that doesn't know how to handle ANSI color sequences properly. I had this a lot in the past when telnetting to Linux from SCO boxes.&lt;BR /&gt;&lt;BR /&gt;The simplest way to check the theory is to do:&lt;BR /&gt;&lt;BR /&gt;unalias ls&lt;BR /&gt;&lt;BR /&gt;And try a ls -l on any directory.&lt;BR /&gt;&lt;BR /&gt;The "ls" command is normally aliased to "ls --color==tty", giving your the color output. If after the 'unalias' command your problem is solved, it's just a matter of editing a few config files (under /etc/profile.d, if I remember correctly) to make it permanent.&lt;BR /&gt;&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Sun, 04 Nov 2001 01:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-disable-color-change-when-going-to-other-directories/m-p/2604522#M79388</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-11-04T01:03:33Z</dc:date>
    </item>
  </channel>
</rss>

