what is "sourcing" in unix/linux shell..

Let me explore “sourcing” in a UNIX/LINUX shell by few words. I have seen the usage of “sourcing” for a long time in my linux systems. Today I thought of making it familiar to my friends by this blog.. [humble@humble ]$ cat /etc/rc5.d/S07iscsid |head -n 30|grep -v “#” . /etc/rc.d/init.d/functions exec=/sbin/iscsid prog=iscsid config=/etc/iscsi/iscsid.conf lockfile=/var/lock/subsys/$prog [humble@humble …

Read more

Generate and Apply patch in linux using diff and patch commands

Generate patch file: Patch file says the difference between the existing version and the ‘patched’ version of the file. Once you have edited the source you can create patch file using diff command… I normally use below syntax of “diff” for creating a patch file.. #diff -Naur “original file” “modified version” for ex: suppose u …

Read more