Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I am new to the bash shell scripting and have come across the challenge. I think I can reload my ".profile" file by just doing:

. .profile

but I'm trying to execute the same code in the bash script when I try to writing and it is just not working. Any ideas why this is happening?

1 Answer

0 votes
by (36.8k points)
edited by

Try this to reload your current shell:

source ~/.profile

To know about Linux join the Linux training

Related questions

0 votes
1 answer
asked Feb 4, 2021 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer
asked Dec 5, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...