Best Way to Edit sudoers File in Linux

In Linux, the sudoers file present in the /etc directory will determine the permissions and other settings  while the sudo command is used. If you edit the file directly using terminal or using an editor, if there is any error in your code, the whole sudo command will break. So it is not the best way to edit the sudoers file.

The best way to edit the sudoers file is to use the following command :

$ sudo visudo

This will open the sudoers file in vi editor and you will be able to edit the file here. Once you try to save, it will check for errors and will let you know the same with options to save, not save or re-edit the file.

So it is the safer option while trying to edit sudoers file.

How to Create Directory Structure using Terminal

In this article, we are going to see how to create a directory structure using terminal.

The “mkdir” command  is used to create a folder or a directory using terminal. Now for creating a folder within another folder (multilevel directory structure), if  you use the “mkdir” command like the following command, you will get one error message like this “mkdir: dir1/dir2: No such file or directory”.

$ mkdir dir1/dir2/dir3

Now if you want the terminal to create the structure itself when you try to create a directory, you will have to use the command like this :

$ mkdir -p dir1/dir2/dir3

This will first create the directory, “dir1”, then inside dir1, it will create the directory “dir2” and finally inside dir2, it will create the directory “dir3”.

Single Line Conditional Statement for Terminal

In terminal, it is possible for you to write single line conditional statements, where you can execute a single line of statement if a condition satisfies or otherwise.

Here is the command which you can use.

$ [ -d yourfolder ] && echo “Directory Exists.” || echo “Directory does not exists.”

This command will first check whether there is a file named “yourfolder” in the current location and based on the result, it will decide which statement to execute.

Here if the folder is there, then it will display the line “Directory Exists.” in the terminal and if the folder is not there, then it will display the line “Directory does not exists.”.

How to Create a Directory if Not Already Created using Terminal

In this article, we are going to see how to check whether a directory is that or not in terminal and create the directory if not already there.

For this, then you can use the following command :

$ [ -d yourdirectory ] || mkdir yourdirectory

This is similar to an if condition. First it will check whether there is a directory name “yourdirectory” in the current path and if the directory is there, then it will do nothing. But if the directory is not there, it will create the directory.

How to Delete a Folder using Terminal

In this article, we are going to see how to delete a folder using terminal.

If you want to delete an empty folder, then you can use the following command :

$ rmdir emptyfoldertodelete

This will delete the folder if it is empty. But if the folder is not empty, then it will display one error message like this.

rmdir: emptyfoldertodelete: Directory not empty

If you want to delete the folder which is not empty, then you can use the following command :

$ rm -r foldertodelete

This will delete the folder even if the folder is not empty.

How to Delete the Contents of a Folder using Terminal

In this article, we are going to see how to delete the contents of a folder using terminal without deleting the folder itself.

For this, you can execute the following command :

$ rm -r “yourfoldernamewithpath/“*

This command will remove all the contents of the folder that you specify without deleting the folder. Please ensure that no space is there between the file name and *

DSO Nano V2 – Pocket-Sized Digital Oscilloscope

DSO Nano v2 is a Digital Storage Oscilloscope designed for basic electronic engineering tasks. Within its smart shell, the device runs on ARM Cortex™-M3 32 bit platform, provides basic waveform monitoring with extensive functions. It is equipped with a 320×240 color LCD, microSD card storage, portable probes, LiPo battery, USB connection and signal generator. Due Love horoscope Aries avows that marriage is quite a difficult thing for this sign, much more difficult casino than for others. to palm size and handy performance, it fits in-field diagnosis, quick measurement, hobbyist projects and wherever convenience matters. Schematic and source files are also open for re-innovating.


* Portable and lightweight
* Color display
* Waveform storage and playback
* 6 triggering mode
* 1Mhz Analog Bandwidth
* Complete measurement markers and signal characteristic
* Built-in Signal Generator
* Accessories available
* Open Source

Exerciser Monkey – Scrutinize your application (Bruteforce Testing)

Exerciser Monkey is a command-line program that runs on your emulator or device and generates pseudo-random(false) streams of user events such as clicks, touches, or gestures, as well as a number of system-level events. You can use the Monkey to stress-test applications that you are developing, in a random yet repeatable manner. Show no mercy on your applications. Test’em until you fix them to be tough enough for release.

For more Information on Monkey Visit the following Android Developer Reference

Starting Monkey:

Open the shell or command prompt and navigate to the “android-sdk” Install location. Type the following command

adb shell monkey -p -v 500

GNUStep Objective-C using Cocoa Framework on Windows

Install GNUStep and come to the GNUStep shell prompt!
File: hello.h

#include <Foundation/Foundation.h>

@interface Hello: NSObject

- (void) sayHelloTo: (NSString *)name;

File: hello.m

#include <Foundation/Foundation.h>
#include "hello.h"

@implementation Hello

- (void) sayHelloTo: (NSString *)name
   NSLog(@"Hello World, %@", name);


File: main.m

#include <Foundation/Foundation.h>
#include "hello.h"

int main (int argc, const char * argv[])
   NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

   id speaker;
   NSString *name = @"GNUstep ... Sree";
   speaker = [[Hello alloc] init];
   [speaker sayHelloTo:name];

   [speaker release];
   [pool drain];
   return 0;


gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Libraries hello.m main.m -o Hello -lgnustep-base -lobjc

File created:

-rw-r--r-- 1 sree Administrators 20685 Jul 14 16:18 Hello.d
-rwxr-xr-x 1 sree Administrators 42508 Jul 14 16:18 Hello.exe
-rw-r--r-- 1 sree Administrators   113 Jul 14 16:17 hello.h
-rw-r--r-- 1 sree Administrators   161 Jul 14 16:17 hello.m
-rw-r--r-- 1 sree Administrators   340 Jul 14 16:17 main.m

Run by:


2010-07-14 16:18:25.203 Hello[5716] Hello World, GNUstep ... Sree