What exactly does the Unix bash command do when run without options

0 votes

When you type bash into the terminal and press enter, you go into what looks like an interactive bash interpreter... As far as I know, Terminal pretty much is, anyway.

The only visible difference is that the command prompt line says

bash-3.2$

instead of

Marcos-MacBook-Pro-3:Desktop marcoprins$

So what is happening when you run bash without options?

Apr 14, 2022 in Linux Administration by Soham
• 9,710 points
498 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

 The Bash runs your .bashrc when it is interactive, which is true of the bash spawned by terminal emulators. Hope this helps answer your question!!

answered Apr 20, 2022 by Rahul
• 9,680 points

edited Mar 5

Related Questions In Linux Administration

0 votes
0 answers

What does the 'export' command do?

I happen to run some commands blindly, ...READ MORE

Apr 14, 2022 in Linux Administration by Rahul
• 9,680 points
761 views
0 votes
0 answers

On Linux, does the remove command "rm" run in the background?

I am trying to run my test ...READ MORE

Apr 20, 2022 in Linux Administration by Edureka
• 13,690 points
757 views
0 votes
0 answers

What does "&" at the end of a linux command mean?

I am a system administrator and I ...READ MORE

Apr 21, 2022 in Linux Administration by Edureka
• 13,690 points
703 views
0 votes
1 answer

What does “sudo echo nameserver 8.8.8.8 > /etc/resolv.conf” do?

If executing this command resolved your issue ...READ MORE

answered Jan 23, 2019 in Linux Administration by joey
3,324 views
0 votes
1 answer

What is the difference between ctrl z and ctrl c in command line?

Hi@akhtar, Generally, these two commands are used to ...READ MORE

answered Feb 24, 2020 in Linux Administration by MD
• 95,460 points
48,149 views
0 votes
1 answer

What is the linux command to find Memory and CPU usage in percent for last 30 days?

Try the following: Cat proc/meminfo top top -i less /proc/memin ...READ MORE

answered Oct 14, 2020 in Linux Administration by Kim
2,771 views
0 votes
1 answer
0 votes
1 answer

Make a unix alias with python script

The scope of an alias command is the shell ...READ MORE

answered Sep 10, 2018 in Python by Priyaj
• 58,020 points
984 views
0 votes
1 answer

Make a unix alias with python script

The scope of an alias command is the shell ...READ MORE

answered Sep 20, 2018 in Python by Priyaj
• 58,020 points
5,938 views
0 votes
1 answer

How can I find out which files differ in two directory trees?

Use this; diff -qr dir1/ dir2/ READ MORE

answered Jun 13, 2019 in Linux Administration by Upasana
• 8,620 points
908 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP