ugly color for directories in gnome- terminal?
Some of my folders are highlighted in green
What does the green highlighting means? How can I remove the highlight and make them look similar to others?
terminal : gnome-terminal.
system : Ubuntu 16.04
command-line gnome-terminal terminator
add a comment |
Some of my folders are highlighted in green
What does the green highlighting means? How can I remove the highlight and make them look similar to others?
terminal : gnome-terminal.
system : Ubuntu 16.04
command-line gnome-terminal terminator
Apologies - possibly What do the different colors mean in the terminal? is closer to what you are asking: specifically, the green background probably indicates that the directories have "others writeable" permission
– steeldriver
Feb 10 '17 at 15:21
A simple solution is to use thedir
command instead ofls
orls -l
. For a very detailed explanation see askubuntu.com/questions/103913/… In particular see Eliah Kagan's answer.
– ThisIsNotAnId
Feb 11 '17 at 2:19
Reopening this because the other question does not explain how to change the highlighting. This question covers some of it, but I'm not sure it applies here or is enough to answer the question.
– Seth♦
Feb 11 '17 at 3:32
add a comment |
Some of my folders are highlighted in green
What does the green highlighting means? How can I remove the highlight and make them look similar to others?
terminal : gnome-terminal.
system : Ubuntu 16.04
command-line gnome-terminal terminator
Some of my folders are highlighted in green
What does the green highlighting means? How can I remove the highlight and make them look similar to others?
terminal : gnome-terminal.
system : Ubuntu 16.04
command-line gnome-terminal terminator
command-line gnome-terminal terminator
edited Feb 11 '17 at 3:31
Seth♦
33.9k26110161
33.9k26110161
asked Feb 10 '17 at 15:02
Ashu_FalcoN
1,3951226
1,3951226
Apologies - possibly What do the different colors mean in the terminal? is closer to what you are asking: specifically, the green background probably indicates that the directories have "others writeable" permission
– steeldriver
Feb 10 '17 at 15:21
A simple solution is to use thedir
command instead ofls
orls -l
. For a very detailed explanation see askubuntu.com/questions/103913/… In particular see Eliah Kagan's answer.
– ThisIsNotAnId
Feb 11 '17 at 2:19
Reopening this because the other question does not explain how to change the highlighting. This question covers some of it, but I'm not sure it applies here or is enough to answer the question.
– Seth♦
Feb 11 '17 at 3:32
add a comment |
Apologies - possibly What do the different colors mean in the terminal? is closer to what you are asking: specifically, the green background probably indicates that the directories have "others writeable" permission
– steeldriver
Feb 10 '17 at 15:21
A simple solution is to use thedir
command instead ofls
orls -l
. For a very detailed explanation see askubuntu.com/questions/103913/… In particular see Eliah Kagan's answer.
– ThisIsNotAnId
Feb 11 '17 at 2:19
Reopening this because the other question does not explain how to change the highlighting. This question covers some of it, but I'm not sure it applies here or is enough to answer the question.
– Seth♦
Feb 11 '17 at 3:32
Apologies - possibly What do the different colors mean in the terminal? is closer to what you are asking: specifically, the green background probably indicates that the directories have "others writeable" permission
– steeldriver
Feb 10 '17 at 15:21
Apologies - possibly What do the different colors mean in the terminal? is closer to what you are asking: specifically, the green background probably indicates that the directories have "others writeable" permission
– steeldriver
Feb 10 '17 at 15:21
A simple solution is to use the
dir
command instead of ls
or ls -l
. For a very detailed explanation see askubuntu.com/questions/103913/… In particular see Eliah Kagan's answer.– ThisIsNotAnId
Feb 11 '17 at 2:19
A simple solution is to use the
dir
command instead of ls
or ls -l
. For a very detailed explanation see askubuntu.com/questions/103913/… In particular see Eliah Kagan's answer.– ThisIsNotAnId
Feb 11 '17 at 2:19
Reopening this because the other question does not explain how to change the highlighting. This question covers some of it, but I'm not sure it applies here or is enough to answer the question.
– Seth♦
Feb 11 '17 at 3:32
Reopening this because the other question does not explain how to change the highlighting. This question covers some of it, but I'm not sure it applies here or is enough to answer the question.
– Seth♦
Feb 11 '17 at 3:32
add a comment |
2 Answers
2
active
oldest
votes
The answer to your question is hidden in the answers to both What do the different colors mean in the terminal? and How do I change the color for directories with ls in the console?
The cause of the green highlighting is because your directories are writable by other (o+w
) and not sticky.
So that explains why they have green highlighting, but you also ask how to remove it. You say "make it look like the others", by which I assume you mean normal directories. Open up your ~/.bashrc
and append the following to the bottom:
export LS_COLORS="$LS_COLORS:ow=1;34:tw=1;34:"
save the file and then run
source ~/.bashrc
Now they will look the same as any other directory. Take note though that the system thinks this is information you should be able to see, by doing this you will no longer be able to see it easily. Consider choosing a different background color from the list here. I think purple isn't too bad (ow=1;34;45:
)
Explanation:
ow
stands for 'other, writable', tw
is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
add a comment |
This is because you have given write
permission to other, meaning other than file owner and not in the group. Check permissions with ls -l
or ll
. Remove write permission from other by chmod 0755 directory_name
, so it will look similar to other directories.
1
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f881949%2fugly-color-for-directories-in-gnome-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The answer to your question is hidden in the answers to both What do the different colors mean in the terminal? and How do I change the color for directories with ls in the console?
The cause of the green highlighting is because your directories are writable by other (o+w
) and not sticky.
So that explains why they have green highlighting, but you also ask how to remove it. You say "make it look like the others", by which I assume you mean normal directories. Open up your ~/.bashrc
and append the following to the bottom:
export LS_COLORS="$LS_COLORS:ow=1;34:tw=1;34:"
save the file and then run
source ~/.bashrc
Now they will look the same as any other directory. Take note though that the system thinks this is information you should be able to see, by doing this you will no longer be able to see it easily. Consider choosing a different background color from the list here. I think purple isn't too bad (ow=1;34;45:
)
Explanation:
ow
stands for 'other, writable', tw
is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
add a comment |
The answer to your question is hidden in the answers to both What do the different colors mean in the terminal? and How do I change the color for directories with ls in the console?
The cause of the green highlighting is because your directories are writable by other (o+w
) and not sticky.
So that explains why they have green highlighting, but you also ask how to remove it. You say "make it look like the others", by which I assume you mean normal directories. Open up your ~/.bashrc
and append the following to the bottom:
export LS_COLORS="$LS_COLORS:ow=1;34:tw=1;34:"
save the file and then run
source ~/.bashrc
Now they will look the same as any other directory. Take note though that the system thinks this is information you should be able to see, by doing this you will no longer be able to see it easily. Consider choosing a different background color from the list here. I think purple isn't too bad (ow=1;34;45:
)
Explanation:
ow
stands for 'other, writable', tw
is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
add a comment |
The answer to your question is hidden in the answers to both What do the different colors mean in the terminal? and How do I change the color for directories with ls in the console?
The cause of the green highlighting is because your directories are writable by other (o+w
) and not sticky.
So that explains why they have green highlighting, but you also ask how to remove it. You say "make it look like the others", by which I assume you mean normal directories. Open up your ~/.bashrc
and append the following to the bottom:
export LS_COLORS="$LS_COLORS:ow=1;34:tw=1;34:"
save the file and then run
source ~/.bashrc
Now they will look the same as any other directory. Take note though that the system thinks this is information you should be able to see, by doing this you will no longer be able to see it easily. Consider choosing a different background color from the list here. I think purple isn't too bad (ow=1;34;45:
)
Explanation:
ow
stands for 'other, writable', tw
is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
The answer to your question is hidden in the answers to both What do the different colors mean in the terminal? and How do I change the color for directories with ls in the console?
The cause of the green highlighting is because your directories are writable by other (o+w
) and not sticky.
So that explains why they have green highlighting, but you also ask how to remove it. You say "make it look like the others", by which I assume you mean normal directories. Open up your ~/.bashrc
and append the following to the bottom:
export LS_COLORS="$LS_COLORS:ow=1;34:tw=1;34:"
save the file and then run
source ~/.bashrc
Now they will look the same as any other directory. Take note though that the system thinks this is information you should be able to see, by doing this you will no longer be able to see it easily. Consider choosing a different background color from the list here. I think purple isn't too bad (ow=1;34;45:
)
Explanation:
ow
stands for 'other, writable', tw
is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
edited Dec 11 at 9:39
David Foerster
27.7k1364109
27.7k1364109
answered Feb 11 '17 at 4:31
Seth♦
33.9k26110161
33.9k26110161
add a comment |
add a comment |
This is because you have given write
permission to other, meaning other than file owner and not in the group. Check permissions with ls -l
or ll
. Remove write permission from other by chmod 0755 directory_name
, so it will look similar to other directories.
1
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
add a comment |
This is because you have given write
permission to other, meaning other than file owner and not in the group. Check permissions with ls -l
or ll
. Remove write permission from other by chmod 0755 directory_name
, so it will look similar to other directories.
1
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
add a comment |
This is because you have given write
permission to other, meaning other than file owner and not in the group. Check permissions with ls -l
or ll
. Remove write permission from other by chmod 0755 directory_name
, so it will look similar to other directories.
This is because you have given write
permission to other, meaning other than file owner and not in the group. Check permissions with ls -l
or ll
. Remove write permission from other by chmod 0755 directory_name
, so it will look similar to other directories.
edited Feb 10 '17 at 16:34
answered Feb 10 '17 at 16:27
Shivaditya
36923
36923
1
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
add a comment |
1
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
1
1
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
Judging by the names of most of the dirs removed write permission might change the behavior or break some apps. You might want to warn about that.
– chaskes
Feb 11 '17 at 3:46
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f881949%2fugly-color-for-directories-in-gnome-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Apologies - possibly What do the different colors mean in the terminal? is closer to what you are asking: specifically, the green background probably indicates that the directories have "others writeable" permission
– steeldriver
Feb 10 '17 at 15:21
A simple solution is to use the
dir
command instead ofls
orls -l
. For a very detailed explanation see askubuntu.com/questions/103913/… In particular see Eliah Kagan's answer.– ThisIsNotAnId
Feb 11 '17 at 2:19
Reopening this because the other question does not explain how to change the highlighting. This question covers some of it, but I'm not sure it applies here or is enough to answer the question.
– Seth♦
Feb 11 '17 at 3:32