From the category archives:

Linux

Three Sysadmin Rules You Can’t (And Shouldn’t) Break

by Ramesh Natarajan on July 27, 2010

When I drafted this article, I really came-up with 7 sysadmin habits. But, out of those 7 habits, three really stood out for me.

While habits are good, sometimes rules might even be better, especially in the sysadmin world, when handling a production environment.

Rule #1: Backup Everything ( and validate the backup regularly )

Experienced sysadmin knows that production system will crash someday, no matter how proactive we are. The best way to be prepared for that situation is to have a valid backup.
(more…)

{ 28 comments }

In bash shell, when you use a dollar sign followed by a variable name, shell expands the variable with its value. This feature of shell is called parameter expansion.

But parameter expansion has numerous other forms which allow you to expand a parameter and modify the value or substitute other values in the expansion process. In this article, let us review how to use the parameter expansion concept for string manipulation operations.

This article is part of the on-going bash tutorial series. Refer to our earlier article on bash { } expansion.
(more…)

{ 5 comments }

Question: While downloading using wget, I get the following error “Connecting to <URL>.. failed: Connection refused.”. I’m behind a proxy server. How do I fix it?

Answer: Export the http_proxy variable with your proxy server name or ip address and then try downloading as explained below.
(more…)

{ 4 comments }

In this article, let us discuss about how to setup tftpboot, including installation of necessary packages, and tftpboot configurations.

TFTP boot service is primarily used to perform OS installation on a remote machine for which you don’t have the physical access. In order to perform the OS installation successfully, there should be a way to reboot the remote server — either using wakeonlan or someone manually rebooting it or some other ways.

In those scenarios, you can setup the tftpboot services accordingly and the OS installation can be done remotely (you need to have the autoyast configuration file to automate the OS installation steps).
(more…)

{ 1 comment }

5 Steps to Setup User and Group Disk Quota on UNIX / Linux

by Ramesh Natarajan on July 21, 2010

On Linux, you can setup disk quota using one of the following methods:

  • File system base disk quota allocation
  • User or group based disk quota allocation

(more…)

{ 1 comment }

4 Ways of Executing a Shell Script in UNIX / Linux

by SathiyaMoorthy on July 20, 2010

There are four ways to execute a shell script. Each way has it’s own meaning as explained in this article.

(more…)

{ 7 comments }

Question: How do I view all the current iptables rules? Once I view it, is there a way to delete all the current rules and start from scratch?

Answer: Use the iptables list option to view, and iptables flush option to delete all the rules as shown below. You should have root permission to perform this operation.

(more…)

{ 0 comments }

7 Essential emacs Editor Navigation Fundamentals

by SathiyaMoorthy on July 15, 2010

In this emacs article, let us review the following 7 Emacs navigation options.

  1. Line navigation
  2. Screen navigation
  3. Word navigation
  4. Special navigation
  5. Paragraph navigation
  6. Search navigation
  7. Navigation from command line

(more…)

{ 1 comment }