-->

EveryBrickMatters

Chmod Command in Linux

chmod is used to change the permissions of files or directories. Let's say you are the owner of a file named myfile, and you want to...


Shell Scripting to check file exist and whether file is writable or not

Write a shell script to check to see if the file "/etc/shadow" exists. If it does exist, display "Shadow passwords are enabl...


What goes into the body of a good bug report?

A good bug report contains a descriptive summary of the bug, the steps to reproduce the bug, the expected behavior of the bug, and the actu...


What is difference between Priority and Severity?

Priority refers to how important a bug is to be fixed, and severity refers to how detrimental or damaging the bug is to the system or user ...


Shell Scripts to print the files present in one directory but not present in other directory

# cmp_dir - program to compare two directories and print the files # which are present in first directory but not in second directory # ...


Scripts to check,String checks operator and techniques

#String checks operator and techniques str1="ishant" str2="gaurav" str3="" # to check if two string are equal...


Scripts to find one file and append data to it

#This scripts find one file in current directory and append data to it if [ -f $1 ] then     if [ -w $1 ]     # -w option is used to write...


Script to find if file exist, then change its name

#This scripts find one file in current directory and changes its name if [ -f $1 ] then mv $1 $2 echo "File name has been changed,Let...


Reverse a String in Java using Recursion

public class ReverseOfString {               public static void main(String args[])        {               String str = ...


What is the difference between List and Set?

What is the difference between List and Set? List can contain duplicate elements whereas Set does not allow duplicate elements. List ma...


Custom object as key in Collection

What do you need to do to use a custom object as key in Collection classes like Map or Set? Answer : If you are using any custom object ...


ArrayList Vs Vector

ArrayList and Vector both implements List interface and maintains insertion order. 1) ArrayList is  not synchronized  whereas   Vector is...


Iterator Vs Enumeration VS ListIterator in Java Collection

Iterator , Enumeration and ListIterator are interface which  are used to iterate over the collections in Java. Iterator provide iterato...


SQL Interview Question Set 2

Write a SQL query to print the Name of the managers with id who are having more than 3 employee under him.  employees(EMPLOYEE_ID,FIRST_N...


Script to print the last modification time of file if exists

Write a script that accepts a file name as arguments and display the last modification time if the file exists and a suitable message if it...


"grep" command interview Questions

We have three files in our current directory as below : Newfile.txt This is ishant gaurav I love to play cricket I am bit confused no...