≡ Menu

2010

50 UNIX / Linux Sysadmin Tutorials

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. Disk to disk backup using dd command: dd [...]

{ 35 comments }

6 Expect Script Command Line Argument Examples

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. 1. Execute expect script from the command line using -c option expect also also allows you to execute it directly in the command line [...]

{ 3 comments }

Nagios: How to Enable check_nrpe Command Line Arguments

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 [...]

{ 7 comments }

How To Send Desktop Notifications on Ubuntu Using notify-send

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. 1. Simple Notification notify-send can be used to send simple notification [...]

{ 11 comments }

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

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 [...]

{ 4 comments }

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

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. Verify [...]

{ 3 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. 1. Execute a command [...]

{ 9 comments }

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

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. 1. Rename a File While renaming a file using mv command, it keeps the inode number same even after moving it to a different name. If you [...]

{ 5 comments }