I am very new to the bashshell and unix. I am proficient with Java and I know a bit of C, so bash and scripting is very new to me.
I am trying to modify the .profile in my home profile to have it echo my name every time I log on - however I encountered a situation. It is missing. I have checked for the hidden files in my directory using ls - a but it isn't there.
So do I just create a .profile file? I know that there is a /etc/profile that is given to me by my administrator but I am not allowed to overwrite that file.
Also, what would I include in the .profile file if I make my own? Would it just be as simple as creating the file and adding an echo statement with it accessing my username? I have tried this, and it failed.
Here is what my current script looks like(that fails):
PATH=/usr/bin:/usr/lbin:$HOME/bin:.:
export PATH
echo "My user profile has executed. Greetings!"
I'd like to add I'm not sure if this PATH is showing the correct path either - it is what I copied from my book.
Hope that's not inappropriate to ask in the comments.
– AeriaGlorisia Feb 04 '17 at 16:00