menu
What is the Difference Between Using source and sh

date_range Nov. 12, 2019 - Tuesday

Short Answer:

When you call source (or its alias .), you insert the script in the current bash process. So you could read variables set by the script.

When you call sh, you initiate a fork (sub-process) that runs a new session of /bin/sh, which is usually a symbolic link to bash. In this case, environment variables set by the sub-script would be dropped when the sub-script finishes.

Caution: sh could be a symlink to another shell.

NodeJS vs Django

date_range Nov. 01, 2019 - Friday

Node.js, Django, which is better?

Node.js has a “JavaScript everywhere” motive to ensure JavaScript is used on the server-side and client-side of web applications and Django has a “framework for perfectionists with deadlines” motive to help developers build applications quickly.

How to Customize Bash Colors and Content

date_range Oct. 31, 2019 - Thursday

How to Customize Bash Colors and Content in Linux Terminal Prompt

» How to Customize Bash Colors and Content in Linux Terminal Prompt

linux-system-administration

date_range Oct. 26, 2019 - Saturday

Haven’t posted anything for a long time. Let the notes go on.

In this post, I’d collect all (if possible) necessary knowledge and information about linux account and permission administration.