≡ Menu

source command

Unix / Linux: Initialize Dot Files Without Restarting The Current Shell Session

I‘m a new Linux, OS X or Unix-like system users. I’m using bash shell. I made changes to my $HOME/.profile ($HOME/.bash_profile) file. How can I restart my session without doing logout and login again?
[click to continue…]

Sysadmin because even developers need heroes!!!

RHEL / CentOS: Install and Activate Bash Autocomplete Feature

How do I use bash auto complete features with various command on CentOS / RHEL / Fedora / Scientific Linux based systems?
[click to continue…]

SSH: Use Remote Bash / KSH source Command Set Variable Locally From a Remote Server

I have setup a master / local server combination using OpenSSH. My local server depends upon master server for a remote sourcing. The remote sourcing should set a large number of variables locally in a bash shell script. The code is:

user@slave $ source ssh user@master "/service/dyn.master.setenv.sh --mode=slave"
echo “$var”

The var is not setting and I am getting various errors. How can I do a remote “source” of a bash script file (from master.example.com) and set a shell variable locally at slave.example.com?
[click to continue…]

UNIX Source Command: Read And Execute Commands From File

What is the use of UNIX source command under bash or any other shell? How do I use source command under UNIX / OS X / Linux operating systems?
[click to continue…]

Linux / UNIX source Command Examples

How do I use source command under UNIX / Linux / BSD / OS X operating systems?
[click to continue…]