Sunday, 9 May 2021

How to Reduce lvm partition in CentOS 7



Sometimes when we are facing issue with high space utilization of the disk in Linux system, then we can make some space by reducing the lvm partition which have unused space available if hard disk partitioned in lvm. Reducing the lvm volume cannot be done online, the volume should be unmounted while reducing. Reducing the logical volume is the risk of data lose and it is always recommended to make a backup of data before reducing the volume. 

Friday, 23 April 2021

How to Install yum-utils on CentOS 8



The yum-utils is an additional package of yum that provides a collection of utilities and commands to manipulate repositories and extended package management. Yum-utils can be installed from CentOS 8 default BaseOS repository.

Friday, 19 March 2021

How To Create User with Gecos/Comment and Add in a Group in CentOS 7



A new user account is created with a group. The group name is same as account name and the user is the only member of this group. The -g [Primary Group] and -G [Secondary Group] options allow to add the user in primary and secondary group and the -c (--comment) option allows to add a short description/User Full Name/GECOS for the new user.

Monday, 18 January 2021

How To Find Operating System Installation Date and Time in CentOS 8




Sometimes, there is a requirement to know operating system installation/build information. The tune2fs Linux command uses to adjust various tunable file system parameters on Linux ext2, ext3, or ext4 file systems. This command also helps to find out the date and time of operating system installation.

Wednesday, 4 November 2020

How to Set Correct Time in CentOS 7 using ntpdate



The ntpdate utility can be used to synch the correct time from a NTP Server or any public NTP Server. Correct time and time zone can help to manage system tasks, user tasks and most of the operations on a Linux System. Ntpdate package is available in CentOS 7 base repository. 

How to Enable/Disable a Specific Repository in CentOS 7



There are two options [--enablerepo=<reponame> and –disablerepo=<reponame>] available to enable or disable a specific repository during yum installation or update of the packages on CentOS7.

Tuesday, 1 September 2020

How to Install and Configure NFS Server on CentOS 8




NFS (Network File System) is a distributed network file sharing system protocol. It is provides to share files and folders between Linux distributions over the network. It can locally mounted the NFS files systems from the NFS server to the client machines and accessible the files and directories like local file system.

Tuesday, 18 August 2020

How to Install the LAMP Stack on CentOS 8




The LAMP (Linux, Apache MySQL/MariaDB and PHP) is a combination of open source software’s that are mostly used for running websites which are written in PHP.