How do I reload .bashrc without logging out and back in??

If I make changes to .bashrc, how do I reload it without logging out and back in? ...

How do I reload .bashrc without logging out and back in??

If I make changes to .bashrc, how do I reload it without logging out and back in? ...

How to echo shell commands as they are executed?

In a shell script, how do I echo all shell commands called and expand any variable names? For example, given the fo...

Using the RUN instruction in a Dockerfile with 'source' does not work?

I have a Dockerfile that I am putting together to install a vanilla python environment (into which I will be install...

Shell - Write variable contents to a file?

I would like to copy the contents of a variable (here called var) into a file. The name of the file is stored in an...

How to call one shell script from another shell script??

I have two shell scripts, a.sh and b.sh. How can I call b.sh from within the shell script a.sh? ...

Reload .profile in bash shell script (in unix)??

I'm new to bash shell scripting, and have come across a challenge. I know I can reload my ".profile" file by just do...

ImageMagick: put white background under transparent PNG, then invert colors?

I have a PNG image with a black shape on transparent background. I need a white shape on a solid black background in...

Bash ignoring error for a particular command?

I am using following options set -o pipefail set -e In bash script to stop execution on error. I have ~100 lines ...

How to check if a variable is set in Bash??

How do I know if a variable is set in Bash? For example, how do I check if the user gave the first parameter to a f...

Rounding up float point numbers bash?

Ok, so I'm trying to round up an input of 17.92857, so that it gets an input of 17.929 in bash. My code so far is: ...

PostgreSQL - query from bash script as database user 'postgres'?

I have a table in my PostgreSQL database which has 3 columns - c_uid, c_defaults and c_settings. c_uid simply stores...

How to include file in a bash shell script?

Is there a way to include another shell script in a shell script to be able to access its functions? Like how in PH...

Calculating the power in bash?

I'm pretty new to bash scripting. I'm trying to work out calculations, and what I'm specifically trying to do is wr...