How to a Add and Remove User Account on RHEL 6/7, CentOS 6/7, Oracle Linux 6/7

This article will explain and share how to add and remove user account with useradd(add) and userdel (remove) from the command-line on linux RHEL 6/7, CentOS 6/7, Oracle Linux 6/7 server. 1. Adding a New User to an Linux¬†System. a) Get the useradd manual : # man useradd useradd – create a new user or […]

How to Enable EPEL and Remi Repository into CentOS 6

EPEL stand for Extra Packages for Enterprise Linux. EPEL repository is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux(OEL). Remi repository is a yum repository […]

4 Top Command Howto on Linux RHEL 6/CentOS 6

In this article, i will help you to explore most frequently used top commands that linux system administrator use when analyzing the linux performance and use for daily system administrative jobs. Top command displays system summary information such as tasks currently being managed by the Linux kernel, displays ongoing look at processor activity in real […]

How to Check and Display Runlevel on Unix or Linux System

This example shows the correct ways to check run level on unix or linux server. The runlevel is a software configuration of the system which allows only a selected group of processes to exist. The processes spawned by init command/process for each of these runlevels are defined in the /etc/inittab file. Usually runlevel 0, 1 […]

How to Properly Shutdown and Reboot Linux CentOS 5/CentOS 6/RHEL 5/RHEL 6

rhel

This post will show you the proper command to shutdown and reboot the linux server. To shut down Red Hat Enterprise Linux(RHEL) and CentOS, the root user may issue the /sbin/shutdown command. All the command has been tested on CentOS 6.2 but may workings on other CentOS and RHEL version. The shutdown man page has […]

How to Change Timezone Linux on RHEL 6/7 and CentOS 6/7

This post assumed that we will change the System Timezone from the command line without using redhat-config-date. There are several files and directories that are used for time zones. In RHEL 6 and RHEL 6, there is one directory that very useful to select the appropriate time zone which is /usr/share/zoneinfo directory. Sometimes we forget […]

How to Grep Multiples Lines and using Specific Keyword on Linux

linux

grep is a command line text search utility originally written for Unix or linux. In linux you can grep multiple lines before or after matching the keywords. This examples has been tested on linux CentOS 6.2, but it may workings on other linux version such as Redhat Enterprise Linux 5 (RHEL5) or (RHEL6). Get grep […]

How to Create and Extract a gzip Compressed Archive File on Linux

rhel

Archiving and compressing files are useful when creating backups and transferring data across a network. One of the oldest and most common commands for creating and working with the backup archives is tar command. tar originally stood for tape archiver. With tar, we cab gather large sets of the files into a single file(archive). We […]

How to use Basic Regular Expression with grep command on Linux

rhel

Regular expressions are special text strings that used to search for and match patterns in text. To make the search expression more specific, it can work together with the grep command. The grep command is the General Regular Expression Parser; it searches a file for strings matching a given regular expression, and by default it […]

How Display Logged in User Information and Terminal number on Linux Server

rhel

In this post i will show on how to display logged in user information and terminal number on Linux server. This post provides practical examples for future references. This steps has been tested on Redhat Linux Enterprise server 6 and may working CentOS server as well. 1. “who am i” command is use to display […]