+ 1
Bash/Shell
What's the difference between a file with extension ".sh" and a file with extension ".bashrc"?
6 Antworten
+ 3
Did you find your answer ? Because when I checked there were many links, and even a question on stackoverflow
+ 2
Ever heard of google ?
+ 1
Aymane Boukrouh, thank you for replying 👍🏾
+ 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
+ 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.
0
Thank you Nathan Stanley