Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1848  / 2 Years ago, wed, may 11, 2022, 6:19:08

I want to change the color of particular file type:




  • for .c files red

  • for .out files green

  • for .sh files orange



Like this, how to make these colors as default color for the corresponding file type?


More From » bash

 Answers
0

I needed the color difference whenever try ls -l or ls commmand.



So I just used $LS_COLOR variable and modified it like this.



LS_COLORS='*.c=01;32:*.out=31:*.sh=01;35:'



for more this source about bash


[#33903] Wednesday, May 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
nerta questions
Thu, May 12, 22, 16:04, 2 Years ago
Thu, Dec 2, 21, 09:19, 2 Years ago
Thu, May 27, 21, 00:41, 3 Years ago
Sun, Dec 11, 22, 08:33, 1 Year ago
;