shell  A Unix shell is a command-line interpreter or shell that provides a traditional Unix-like command line user interface. Users direct the operation of the computer by entering commands as text for a command line interpreter to execute, or by creating text scripts of one or more such commands. Users typically interact with a Unix … Continue reading Shell
mailq
[mshaik@omd ~]$ mailq | grep -c "^[A-F0-9]" 2019 flushing the mailque [mshaik@omd ~]$ sudo postfix flush [mshaik@omd ~]$ mailq | grep -c "^[A-F0-9]" 0
HOW DO I CHANGING RUN LEVELS 3 TO 5?
How do I changing run levels 3 to 5? Default run level is defined in /etc/inittab file. In order to change Linux runlevel from 3 to 5, you need to modify this file. Please follow the instructions outlined below: 1) Login as root user 2) Open /etc/inittab file using vi text editor or gedit GUI … Continue reading HOW DO I CHANGING RUN LEVELS 3 TO 5?
WHAT IS MAXIMUM PARTITION SIZE SUPPORTED BY LINUX?
What is Maximum Partition size supported by Linux? A file system is a method for storing and organizing computer files and the data they contain to make it easy to find and access them. Some time it is necessary to know maximum file and partition size. Currently the most commonly used Linux file systems are … Continue reading WHAT IS MAXIMUM PARTITION SIZE SUPPORTED BY LINUX?
RESTRICT USERS TO USE OLD PASSWORDS
Restrict Users to Use Old Passwords This is very useful if you want to disallow users to use same old passwords. The old password file is located at /etc/security/opasswd. This can be achieved by using PAM module. [root@localhost ~]# cat /etc/pam.d/system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next … Continue reading RESTRICT USERS TO USE OLD PASSWORDS
domain mapping
How To Map DOMAIN & IP on cloud set-up Purchase a server from any cloud server selling vendor EX:I have purchased a one virtual machine from godaddy and  static-IP address assigneed to it is "192.169.170.133" try ping ans ssh to server mohammedrafi@NOC-RAFI:~$ ping 192.169.170.133 PING 192.169.170.133 (192.169.170.133) 56(84) bytes of data. 64 bytes from 192.169.170.133: … Continue reading domain mapping
vmstat,iostat,mpstat
vmstat,iostat,mpstat commands for (Performance Observation) vmstat – Summary information of Memory, Processes, Paging etc. vmstat reports virtual memory statistics. [root@li1250-113 ~]# yum provides */bin/vmstat And install the package which is not there [root@li1250-113 ~]# vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r  b  swpd  free     buff  cache   … Continue reading vmstat,iostat,mpstat
patching
Patching Work [root@PEARLSCRIPT ~]# rpm -qa glibc glibc-2.12-1.166.el6_7.3.x86_64 [root@PEARLSCRIPT ~]# yum update glibc Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package glibc.x86_64 0:2.12-1.166.el6_7.3 will be updated --> Processing Dependency: glibc = 2.12-1.166.el6_7.3 for package: glibc-headers-2.12-1.166.el6_7.3.x86_64 --> Processing Dependency: glibc = 2.12-1.166.el6_7.3 for package: glibc-devel-2.12-1.166.el6_7.3.x86_64 --> … Continue reading patching
banner
How To Set Up BANNER       IF U WANT TO SEE THE BANNER BEFORE LOGIN THIS IS PROCEDURE [root@ORACLE ~]# cat /etc/issue.net Red Hat Enterprise Linux Server release 6.7 (Santiago) Kernel \r on an \m [root@ORACLE ~]# cat >> /etc/issue.net #################################### #########WRITE WHAT EVER U WANT TO RIGHT######### ######################################################## [root@ORACLE ~]# … Continue reading banner
Monitor User Activities
psacct or acct both are similar packages and there is not much difference between them, but the psacct package only available for rpm based distributions such as RHEL, CentOS and Fedora, whereas acct package available for distributions like Ubuntu, Debian and Linux Mint. [root@localhost ~]# yum provides psacct Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror … Continue reading Monitor User Activities


