Created
April 30, 2021 01:50
-
-
Save GuiMarthe/0a9b3dd2713fc65b23d77dd005c41a4d to your computer and use it in GitHub Desktop.
When you copy a file from an external drive onto linux, the files gets weird permissions and gets colored differently by your standard `ls` std outupt. This changes the permission so that it degreens it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//When you copy a file from an external drive onto linux, the files gets weird permissions and gets colored differently by your standard `ls` std outupt. | |
//This changes the permissions so that it degreens it. | |
function degreen() { | |
chmod -R a-x,o-w,+ $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this in this SO answer
https://unix.stackexchange.com/questions/94498/what-causes-this-green-background-in-ls-output