December 2010

50 UNIX / Linux Sysadmin Tutorials

by Ramesh Natarajan on December 25, 2010

Merry Christmas and Happy Holidays to all TGS Readers.

To wrap this year, I’ve collected 50 UNIX / Linux sysadmin related tutorials that we’ve posted so far. This is lot of reading. Bookmark this article for your future reference and read it whenever you get free time.
(more…)

{ 18 comments }

6 Expect Script Command Line Argument Examples

by Balakrishnan Mariyappan on December 21, 2010

This article explains the command line options that can be passed to an expect script.

If you are new to expect scripting language, first start with our expect hello world example.
(more…)

{ 0 comments }

Nagios: How to Enable check_nrpe Command Line Arguments

by Ramesh Natarajan on December 21, 2010

Question: When I execute check_nrpe command with some arguments, I get the message “CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.”. How do I fix this issue?

Answer: The issue is very straight forward. check_nrpe doesn’t take any arguments by default. You should enable the command line arguments for check_nrpe as shown below.
(more…)

{ 0 comments }

How To Send Desktop Notifications on Ubuntu Using notify-send

by SathiyaMoorthy on December 20, 2010

notify-send command sends notification to the desktop. It is non intrusive. It does not ask user to press ok, and it does not take any control away from the user.

This article explains how to send various types of desktop notifications using notify-send program.
(more…)

{ 9 comments }

How Do I ftp and Download files from a UNIX Shell Script

by SathiyaMoorthy on December 14, 2010

Question: I would like to execute ftp from inside a shell script. I would also like to provide the username and password required for the FTP file download inside the shell script itself. Can you explain me how to perform this bath ftp from a shell script?

Answer: For downloading / uploading files using ftp in batch mode, you can either user FTP scripting using HERE document from command line, or call FTP from a shell script as explained below.
(more…)

{ 4 comments }

How to Fix DELL PowerEdge Server E1810 HDD 1 Fault error message

by Ramesh Natarajan on December 14, 2010

Question: On my DELL PowerEdge server, the front LCD displays “E1810 HDD 1 fault” error message. How do I fix this issue?

Answer: The message itself is self explanatory as it says “HDD 1 fault” indicating that the hard drive #1 failed. Following are my recommendations on what you can do to fix this.
(more…)

{ 0 comments }

Question: I know how to execute a Unix command in the foreground. Can you please explain me how I can execute a Linux command in the background?

Answer: You can use one of the 5 methods explained in this article to execute a Linux command, or shell script in the background.
(more…)

{ 6 comments }

6 mv Command Examples to Move or Rename Linux File and Directory

by Balakrishnan Mariyappan on December 7, 2010

Linux mv command is used to move files and directories from one location to another. Apart from moving the files, it can also rename a file or directory.
(more…)

{ 4 comments }