Category: Linux Administration

Touch command tips and tricks

Touch command tips and tricks

Changing modification time using touch: touch -d ‘-4 day’ filename touch -d ‘-4 hour’ filename touch -d "30 days ago" filename Setting Timestamp : touch -t 201606101712 filename

ZIP tips and tricks in Linux

ZIP tips and tricks in Linux

View List of files inside a zip file: unzip -l filename.zip (list files ) Extract Single File from a zip file: unzip -j "archive.zip" "archive/filename.zip" -d .

Download RPM Packages with yum

Download RPM Packages with yum

Sometimes, it is desirable to download packages from yum repo.Here is how you can do that. Yum download only plugin is required. yum install yum-downloadonly After installing that plugin , you can download the...

Email Server Utilities

Email Server Utilities

To check for email report including SPF, Domain Keys , send a blank email to : check-auth@verifier.port25.com and wait for the reply with all the report.

yum update error: Error: pkgKey doesn’t exist in repo base

yum update error: Error: pkgKey doesn’t exist in repo base

You can solve this problem by cleaning your yum metadata and cache. yum clean all yum clean metadata

Disabling SELINUX

Disabling SELINUX

In order to disable selinux , run the following commands : To Disable SeLinux For Current Session only : setenforce permissive or echo 0 > /selinux/enforce To Disable Selinux permanently: vi /etc/sysconfig/selinux SELINUX=disabled

Crontab Format

Crontab Format

If you have hard time remembering the crontab format , you can actually get the format form the info page of crontab. Run this command and you will see the format of the crontab....

Bash Command and output History

Bash Command and output History

You can keep track of bash command and output history by using script command. Login to a server and run script /tmp/commandouput.log Now you can continue working. Once you logout and come back into...

Linux filesystem check utility

Linux filesystem check utility

fsck is a unix file system check utility. It is used to repair , recover and fix disk issues. The following examples display various use cases and options that can be used with fsck....