+ 1

Bash/Shell

What's the difference between a file with extension ".sh" and a file with extension ".bashrc"?

15th Oct 2019, 5:16 PM
Joseph Ahouandjinou
Joseph Ahouandjinou - avatar
6 Answers
+ 3
Did you find your answer ? Because when I checked there were many links, and even a question on stackoverflow
15th Oct 2019, 7:21 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Ever heard of google ?
15th Oct 2019, 6:58 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Aymane Boukrouh, thank you for replying đŸ‘đŸŸ
15th Oct 2019, 7:17 PM
Joseph Ahouandjinou
Joseph Ahouandjinou - avatar
+ 1
Aymane Boukrouh, I'm looking for more specific answers so far from what I've seen and understood there isn't any difference so i asked the same question here to make sure
15th Oct 2019, 7:24 PM
Joseph Ahouandjinou
Joseph Ahouandjinou - avatar
+ 1
afaik, .sh means it is a BASH script file. the equivalent on WIndows would be a .bat batch file. what i previously thought: an 'rc' file, is a configuration file. .bashrc is usually found in a user's home directory. it starts with a dot in the filename, so it is a hidden file. it is a bash rc file, so its some type of configuration file for BASH. after looking it up rc has various names but usually called "run command" file. so rc files probably run at specific times, like different stages of system startup, when X starts up etc. also, i don't understand why people say "use google". isn't this a community? you can literally say "use google" to every question out there. why not just help out? that's what a community is for.
28th Oct 2019, 8:53 AM
Nathan Stanley
Nathan Stanley - avatar
0
Thank you Nathan Stanley
28th Oct 2019, 1:09 PM
Joseph Ahouandjinou
Joseph Ahouandjinou - avatar