≡ Menu

September 2010

How To: 2 Methods To Change TimeZone in Linux

Question: When I installed the Linux OS, I forgot to set the proper timezone. How do I change the timezone on my Linux distribution. I use CentOS (Red Hat Linux). But, can you please explain me how to do this on all Linux distributions with some clear examples. Answer: Use one of the following methods [...]

{ 20 comments }

6 Useful Linux One Liners

Individual Linux commands can be combined in the command line, to accomplish tasks that otherwise would require shell scripts to be written. This article provides 6 linux one liners that will help you accomplish few useful tasks. 1. Display Username and UID sorted by UID Using cut, sort and tr cut command is used to [...]

{ 7 comments }

7 Linux sudo Command Tips and Tricks

Using sudo command, an user can execute root only commands. In this article, let us review how to setup sudo environment along with some sudo command examples, tips, and tricks. 1. Set up sudo Environment in /etc/sudoers You can provide sudo privilege to an individual user or a group by modifying /etc/sudoers. sudo access to [...]

{ 21 comments }

Get Your Copy of Nagios Core 3 eBook

If you are a sysadmin, dba, network administrator, IT manager, or someone who is responsible for keeping the IT infrastructure up and running, you should implement a robust monitoring solution that will notify you when there is an issue. It should also notify the right people at the right time about a potential issue, even [...]

{ 3 comments }

How To: 5 Steps to Install phpMyAdmin on Linux

Do you have a MySQL database in your environment? Did you know that the easy (and most effective) way to manage MySQL database is using phpMyAdmin? phpMyAdmin is a web-based tool written in PHP to manage the MySQL database. Apart from viewing the tables (and other db objects), you can perform lot of DBA functions [...]

{ 14 comments }

If you are a sysadmin, who is responsible for managing multiple servers, you should learn the fundamentals of virtualization and implement it in your environment. On a very high-level, you should get started by installing VMWare ESXi server, which can be managed using vSphere Client. Using vSphere client, you can create several virtual machines. If [...]

{ 4 comments }

7 Linux fdisk Command Examples to Manage Hard Disk Partition

On Linux distributions, fdisk is the best tool to manage disk partitions. fdisk is a text based utility. Using fdisk you can create a new partition, delete an existing partition, or change existing partition. Using fidsk you are allowed to create a maximum of four primary partition, and any number of logical partitions, based on [...]

{ 20 comments }

6 Perl File Handle Examples to Open, Read, and Write File

In this article, let us discuss how to manipulate the file handlers in Perl. 1. Typical Way of Opening a Perl File Handlers The perl example below opens a file with a bareword. This is a typical perl file open scenario. #!/usr/bin/perl open FH,"</tmp/msg"; Read Operation with Bareword file handle: #!/usr/bin/perl open FH,"</tmp/msg"; $line = [...]

{ 6 comments }