You can create virtual IP address with linux service. I designed the linux service to create a virtual IP address when operating system is rebooted. My System Properties Ethernet Adaptor Name : ens14025 Virtual IP : 192.168.44.55 1. Create Bash Script To Create Virtual IP Address [root@test ~]# vi /opt/scripts/virtual_ip_up.sh #!/bin/bash ifconfig ens14025:1 192.168.44.55 netmask…
Tag: Linux
Delete File or Directory from Linux System
rm and rmdir commands uses to delete from linux system. rm command use for delete file. On the other hand, rmdir command uses for delete directory from linux system. Also, rm command can delete directory with -rf option. Firstly, we would create a directory and files for test. create directory and files #> mkdir /testdirectory…
pg_dumpall with shell script and crontab in Linux
You can take schedule backup with shell script. Firstly, You must create shell script file in operating system. After you can append to crontab. Crontab is a UNIX command that creates a table or list of commands, each of which is to be executed by the operating system at a specified time. crontab is used…