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.

Similar Reads

What are Binary files?

A binary file is a type of computer file that is used to store data in the form of bytes. It can be used to store any kind of data either formatted or unformatted data encoded within the binary format. It is used directly by the computer and non-human readable which is also called binaries. The header of the binary file defines the file type and other relevant information like the block and body sizes. The header might include a few human-readable characters, but a binary file as a whole requires specific software or hardware to read the file....

Installation of shc

Method 1: From the repository...

Example of Binary File:

Step 1: Create a shell script...

Contact Us