Category Archives: LINUX INTERNALS

Here You can find some Linux Internals technical notes…

How to setup yum repository in centos

Yum Detailed configuration according to specific requirement: Introduction: YUM (Yellowdog Updater Modifier) is the package manager which contains the RPM package files for Linux. RPM package file is a Red Hat Package Manager file that enables easy software installation on Red Hat/CentOS Linux. YUM Repositories hold RPM package files and enable download and installation of… Read More »

A must have handy CD/DVD/USB for Linux Admins: Knoppix Linux Live CD

A must have handy tool for Linux Admins: Knoppix Knoppix is Linux Live CD, with a collection of GNU/Linux software, automatic hardware detection, and support for most of the graphics card, sound cards, SCSI and USB devices and other peripherals. Knoppix can be used as a Linux demo, educational CD, rescue system, there is no… Read More »

How to check if a service is running or not in a Linux Machine

In this example’s  iam checking the servicename “iptables” Method 1: Using the service name Example: #service iptables status Output of the above command #iptables(pid 3243) is running… Method 2: Using init.d scripts from the /etc/init.d folder Example: #/etc/init.d/iptables status Output of the above command #iptables start/running, process 3231 Method3: Using status command Example: #status iptables… Read More »

Important Port Number’s a System Admin Should Know..

Portnumber……..Service 22…………….SSH 25…………….SMTP 23…………….TELNET 53…………….DNS 80…………….HTTP 443……………HTTPS 110……………pop3 465……………SMTP(SSL) 143……………IMAP4 993……………IMAP4(SSl) 2082…………..cpanel 2083…………..cpanel(SSL) 3128…………..Squid 3306…………..MySql 5432…………..PortgreSQL

Capture raw traffic using tcpdump

tcpdump is a powerful command-line packet analyzer, its an excellent way to capture raw traffic and then run it through various tools later. Example to use tcpdump &  exclude my ssh session traffic. tcpdump -i eth0  -s 1500 port not 22 Example to skip additional ports including ssh port: tcpdump -i eth0  -s 1500 port… Read More »

Linux Directory Structure

/bin – This directory contains most non-privileged system commands such as ls, mkdir, rm, etc. /boot – Contains the systems boot image, boot loader, and the kernel /dev – Contains Symbolic links to system devices such as optical and removable drives /etc – Contains all system configuration files and most configurations for installed packages /home… Read More »