≡ Menu

SathiyaMoorthy

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 }

Snort: 5 Steps to Install and Configure Snort on Linux

Snort is a free lightweight network intrusion detection system for both UNIX and Windows. In this article, let us review how to install snort from source, write rules, and perform basic testing. 1. Download and Extract Snort Download the latest snort free version from snort website. Extract the snort source code to the /usr/src directory [...]

{ 18 comments }

Emacs Macro Tutorial: How to Record and Play

Using Emacs Macro feature you can record and play a sequence of actions inside the editor. This article explains how to perform record and play inside Emacs editor with an example. If you are a Vim editor fan, refer to our How to record and play inside Vim editor article. High Level Steps to Record [...]

{ 3 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. Connection refused error while using wget If http_proxy environment [...]

{ 5 comments }

4 Ways of Executing a Shell Script in UNIX / Linux

There are four ways to execute a shell script. Each way has it’s own meaning as explained in this article. 1. Execute Shell Script Using File Name Use the shell script file name to execute it either by using it’s relative path or absolute path as shown below. $ cd /home/sathiya $ ./scriptfile (or) $ [...]

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

{ 2 comments }

7 Essential emacs Editor Navigation Fundamentals

In this emacs article, let us review the following 7 Emacs navigation options. Line navigation Screen navigation Word navigation Special navigation Paragraph navigation Search navigation Navigation from command line If you don’t have an emacs editor, install emacs editor as we discussed earlier. Notation used in this article: C-a : Ctrl-a M-a : Meta-a ( [...]

{ 1 comment }

You may want to disable ping replies for many reasons, may be for a security reason, or to avoid network congestion. Someone can flood the network with ping -f as shown in “Ping Example 5” in our earlier Ping Tutorial article. If ping reply is disabled we can avoid this flooding. Disable ping reply Temporarily [...]

{ 3 comments }