Linux

How to Disable Automatic update and upgrade - Ubuntu

1.Why we have to disable Automatic Update or Upgrade? When you want to install any application you may get the below messages root@ubuntu1804:~# sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb dpkg: error: dpkg frontend is locked by another process it is because of periodic update running in the background. Some update may cause to need your machine restart. 2. Disable Automatic Updates from
Read More »

How to See the Environment Variables of the Process or Application

Why do we need this?. You are in the process of investigating an issue and seems that process is not running as expected compared with other environment or compared to previous execution. There could be chance that your process might have started with wrong environment variables then the regular execution. To identify it you can check the process and its
Read More »

How to add bridge network

Problem Statement: You might have created VM in your laptop which is running on different network segment 10.x.x.x. your laptop is running on wired/wireless network on different segment 192.168.x.x. Now we need to bridge these two network to transfer files and access internet. How to achieve it? Solution: In your VM add another network interface as bridged network device name is
Read More »

How to scp from remote server multiple files

What is Secure Copy? scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh. Basic syntax of SCP scp source_file_name username@destination_host:destination_folder “copy source_file_name” into “destination_folder” at “destination_host” using “username account”. How to copy single file $scp -p username@hostname:/u01/local/oracle/db_01/backup/<FileName> .  
Read More »

How to rotate log files

We can use simple linux commands to rotate logs. There are some tools also available to rotate the logs. Method 1: Backup the log and make the log empty without stopping the service. 1.1 Backup the current Log $ tail -100000 alert_UPGR.log > alert_UPGR.log.bak $ ls -ltr alert_UPGR.log* -rw-r—– 1 oracle oinstall 353665 Jul 4 00:41 alert_UPGR.log -rw-r–r– 1 oracle
Read More »

Older Entries »