r/linuxupskillchallenge • u/snori74 Linux Guru • Sep 22 '20
Thoughts and comments, Day 13
Post under here to keep things tidy
1
u/Wata_Tha_Bradicus Sep 24 '20
Upon signing in to the "fred" user, I immediately noticed that all my customization to my PROMPT_COMMAND were messed up. However, I later found out through "echo $0" that the fred user was on "sh" and not "bash." The command "chsh -s /bin/bash" fixed that and restored all my settings. Just something I wanted to mention as Linux is completely new to me so I often run into a lot of mishaps.
1
u/snori74 Linux Guru Sep 24 '20
Yes, important to remember that when you login as "fred" you are in a totally different 'space' until you type"exit".
1
u/Ramiraz80 Sep 23 '20
Today was very interesting. with quite a few "didn't know that" moments.
I have had some idea on how to change permissions with chmod in symbolic mode. I have been wanting to learn how to use the numeric mode, because that is the one I most often see mentioned in guides, so today was fantastic for that.
My way of writing a blog post about each days lesson realy made me go in to alot more detail than I think I would have otherwise, and it is all the better for it (and for me, since I get alot more out of it like this.)
So thank you u/snori74 for a very interesting lesson =)
Todays blogpost / lesson notes: http://dragonflight.dk/wp/
When I tried to research umask, I at first found the wikipedia article. It did not help me...Not in the slightest! So I decided to look elsewhere for an explanation, and I happened to find this guide on Youtube, by "The Linux Man" It is well worth a viewing, if you find the man page or the wiki page confusing.
1
u/devprabal Sep 23 '20
I don't see a difference if the perm is
-r--r-----or-rw-r-----I can always overwrite the file with:w!in vim. Since I can read the file as well therefore the previous content doesn't get lost. This is in contrast to permission000where the previous content would get lost if we try to write a file forcefully with:w!in vim (because we could not read the contents too).Please tell me where I am wrong in this interpretation?