Linux Basic Commands and Description – Part 2

grep Commands: # grep root /etc/passwd (To print lines containing word root) # grep -c root /etc/passwd (To count the no. of lines containing word root) # grep -v root /etc/passwd (To print all lines except containing matched word “root”) # grep -cv root /etc/passwd (To count no. of lines occurred by –v) # grep […]

Some useful “YUM” and “RPM” Commands

some useful “yum” and “rpm” commands: # rpm –checksig <.rpm> (Need to check signature of an rpm) # rpm -ivh <rpm-package> (Installing an rpm package) # rpm -qpR <rpm-package> (Checking dependencies of rpm package before installing it) # rpm -ivh –nodeps <rpm-package> (Installing a rpm without dependencies) # rpm -qa <rpm> (Checking installed rpm) # […]

Sudo in Linux

Sudoers file is a file which plays a very important role in managing user and group access which can be performed on system. You can assign privileges to users and groups as per requirement. Root is super user and have all access. You can also provide root level access to normal user. Root user has […]

Configure Static IP Address in Ubuntu 20.04.6 LTS

For configuring static IP Address in Ubuntu Server you need to make netplan configuration changes in /etc/netplan/ directory. # cd /etc/netplan/ Now go and edit the configuration file there named “00-installer-config.yaml” and add below configuration for static IP address: (Bold are added lines) # vi 00-installer-config.yaml # This is the network config written by ‘subiquity’ […]

User and Group Management

Any User can be assigned to any physical user or accounts that exists for specific application to use. Each user is assigned with a unique numerical identification number called UID. User ID (UID) 0-999 reserved for system purpose and we can create other user with 1000+.Groups are logical expression of organization where multiple users can […]

How to delete and unmount a zfs filesystem from a Solaris Zone

Run below commands to delete filesystem (fs) from zone named zone01: # zonecfg -z zone01 zonecfg:zone01> remove fs dir=/data01 zonecfg:zone01> remove fs dir=/data02 zonecfg:zone01> commit zonecfg:zone01> exit # Now destroy the zfs filesystem from the hosts: # zfs destroy data_pool/data01/zone01 # zfs destroy data_pool/data02/zone01

How To Find Default Gateway IP Address in Linux

A gateway is a network node used in telecommunications that connects two networks with different transmission protocols together. Gateways serve as an entry and exit point for a network as all data must pass through or communicate with the gateway prior to being routed. All the possible ways to find default gateway in Linux The most commonly used tools […]

Installation of SAR on Ubuntu/Debian

We can simply install and configure the SAR on Linux servers. In debian based server we can use the command “apt” to install the SAR utility.  First install sysstat package on the server with the help of apt command root@Ubuntu:~# apt install sysstat After install When we try to run sar  command to get below […]

A brief knowledge of Network Management in RHEL8

In RHEL8, Network is managed by NetworkManager daemon. We can use it to configure and manage networks in system.NetworkManager package is preinstalled in RHEL8.nmcli tool can be used to configure networks using command line. nmtui is text-based user interface for NetworkManager.You can still use ifcfg files to configure network configurations. Service “NetworkManager” is used for starting/stopping […]

Subscription Management for RHEL OS

To register your system to RedHat Customer Portal Subscription management. Use below commands and use your RedHat login credential: # subscription-manager register #it will ask Username/Password. To get List of available subscriptions: # subscription-manager list –available –all To active a subscription, you need to subscribe it through Pool ID (which can be get from above […]