avatarTeri Radichel

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1970

Abstract

xport</span> <span class="hljs-attribute">LS_COLORS</span>=<span class="hljs-string">"di=0;93:ex=0;36:fi=0;97"</span>

<span class="hljs-built_in">export</span> <span class="hljs-attribute">PS1</span>=<span class="hljs-string">"\e[0;35m(^: \033[1;33m\033[49m\e]0;2nd Sight Lab\a"</span></pre></div><p id="73ee">I also had an issue with getting those settings picked up.</p><p id="f92f">I am not sure if I didn’t just improperly source the file but I commented this code out and then it worked. Then I uncommented this code again and the colors seem to work fine in bash.</p><div id="67ec"><pre><span class="hljs-comment"># User specific aliases and functions</span> <span class="hljs-keyword">if</span> [ -d ~/.bashrc.d ]; <span class="hljs-keyword">then</span> <span class="hljs-keyword">for</span> rc <span class="hljs-keyword">in</span> ~/.bashrc.d/; <span class="hljs-keyword">do</span> <span class="hljs-keyword">if</span> [ -f <span class="hljs-string">"<span class="hljs-variable">rc</span>"</span> ]; <span class="hljs-keyword">then</span> . <span class="hljs-string">"<span class="hljs-variable">rc</span>"</span> <span class="hljs-keyword">fi</span> <span class="hljs-keyword">done</span> <span class="hljs-keyword">fi</span></pre></div><p id="f011">Maybe that was a coincidence and I just incorrectly typed the command ot source the file.</p><div id="b6ad"><pre><span class="hljs-built_in">source</span> ~/.bashrc</pre></div><p id="ea4d">Now the other problem I have is that vim is a set of really hideous colors. Still need to fix this:</p><div id="9479" class="link-block"> <a href="https://vimdoc.sourceforge.net/htmldoc/syntax.html?source=post_page-----6f197dd956f0--------------------------------"> <div> <div> <h2>Vim documentation: syntax</h2> <div><h3>syntax.txt For Vim version 7.3. Last change: 2011 Apr 0

Options

1 VIM REFERENCE MANUAL by Bram Moolenaar Syntax highlighting *…</h3></div> <div><p>vimdoc.sourceforge.net</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><p id="fedb">Follow for updates.</p><p id="4a3a">Teri Radichel | <i>© <a href="https://2ndsightlab.com/?source=post_page---------------------------">2nd Sight Lab</a> 2023</i></p><div id="8b5f"><pre><span class="hljs-section">About Teri Radichel:

⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab</pre></div><div id="caae"><pre><span class="hljs-section">Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation</pre></div><div id="96b9"><pre>Follow <span class="hljs-keyword">for</span> more stories like <span class="hljs-keyword">this</span>:

❤️ Sign Up my Medium Email List ❤️ Twitter: <span class="hljs-meta">@teriradichel</span> ❤️ LinkedIn: https:<span class="hljs-comment">//www.linkedin.com/in/teriradichel</span> ❤️ Mastodon: <span class="hljs-meta">@teriradichel</span><span class="hljs-meta">@infosec</span>.exchange ❤️ Facebook: 2nd Sight Lab ❤️ YouTube: @2ndsightlab</pre></div><figure id="7286"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*4oxP4LXk8l8c3mpRvO7ejg.png"><figcaption></figcaption></figure></article></body>

Changing Terminal Colors On Amazon Linux

Differences when logging into a remote terminal

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics | Code.

🔒 Related Stories: Bugs | Secure Code | Application Security

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I wrote this post on changing terminal colors on a Mac:

But when I used those same settings it didn’t work on Amazon Linux. Why?

I think it may have to do with conflicting colors set locally and not overridden remotely but anyway this works:

export LS_COLORS="di=0;93:ex=0;36:fi=0;97"

export PS1="\e[0;35m(^: \033[1;33m\033[49m\e]0;2nd Sight Lab\a"

I also had an issue with getting those settings picked up.

I am not sure if I didn’t just improperly source the file but I commented this code out and then it worked. Then I uncommented this code again and the colors seem to work fine in bash.

# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
        for rc in ~/.bashrc.d/*; do
                if [ -f "$rc" ]; then
                        . "$rc"
                fi
        done
fi

Maybe that was a coincidence and I just incorrectly typed the command ot source the file.

source ~/.bashrc

Now the other problem I have is that vim is a set of really hideous colors. Still need to fix this:

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
Colors
Bash
Amazon
Linux
Terminal
Recommended from ReadMedium