Installation of shc
Method 1: From the repository
It can be downloaded and installed from the repository using the below commands,
For Ubuntu/Debian :
sudo apt install shc
For RHEL/Centos/Fedora:
sudo yum install shc
Method 2: Download and Install SHC
SHC can also be installed by downloading the source RPM from the official webpage using the below commands,
cd /root/shc
wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz
tar xzf shc-3.8.9.tgz
Now let’s compile the SHC source code and install it using “make install” which will copy the shc binary to /usr/local/bin directory,
cd shc-3.8.9 make install
Thus shc is successfully installed in the system,
Shell Scripting – Creating a Binary file
While working in Linux systems, we have used so many commands on a day-to-day basis. Most of the commands are in the binary format resides under /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, etc directories. As system administrators, we would have to write many shell scripts to do a few tasks or automate them. In this article, we shall see how to create a binary file from our own shell script so that no one can see the source code and it can also be used as a normal system command.
Contact Us