rm command to delete files in linux

Linux yum

rm command to delete files in linux   The rm command (short for remove) is a Unix / Linux command which is used to delete files from a file system. Here is few example of rm command 1) To remove a file named test.txt, use the following command. $ rm test.txt Here rm test would … Read more

MySQL where condition

mysql 5.7

MySQL where condition   WHERE Syntax SELECT column1, column2, … FROM table_name WHERE condition; Note: The WHERE clause is not only used in SELECT statement, it is also used in UPDATE, DELETE statement, etc.!   SELECT * FROM Customers WHERE Country=’Mexico’;   Operators in The WHERE Clause The following operators can be used in the WHERE clause: Operator Description = Equal <> Not equal. Note: In … Read more

Linear search program in c

c program to sort array

Linear search program in c   #include <stdio.h> int main() { int array[100], search, c, n; printf(“Enter number of elements in array\n”); scanf(“%d”, &n); printf(“Enter %d integer(s)\n”, n); for (c = 0; c < n; c++) scanf(“%d”, &array[c]); printf(“Enter a number to search\n”); scanf(“%d”, &search); for (c = 0; c < n; c++) { if … Read more

Sorting program in c

c program to sort array

Sorting program in c /* * C program to accept N numbers and arrange them in an ascending order */ #include <stdio.h> void main() { int i, j, a, n, number[30]; printf(“Enter the value of N \n”); scanf(“%d”, &n); printf(“Enter the numbers \n”); for (i = 0; i < n; ++i) scanf(“%d”, &number[i]); for (i … Read more

Write a program to convert temperature Fahrenheit to Centigrade

temperature Fahrenheit to Centigrade degrees c program

Write a program to convert temperature Fahrenheit to Centigrade Input temperature in fahrenheit from user. Store it in some variable say fahrenheit. Apply the temperature conversion formula celsius = (fahrenheit – 32) * 5 / 9. Print the value of celsius. Example Input Temperature in fahrenheit = 205 Output Temperature in celsius = 96.11 C Temperature conversion formula … Read more

C program to open a website url

c graphics program

C program to open a website url This program will launch Mozilla Firefox web browser to open a website so it should be installed on your computer, if you are using an another web browser then you can change path in the program.   #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <graphics.h> #include <dos.h> #include … Read more

asterisk 1.4 installation with libpri and DAHDI

asterisk

asterisk 1.4 installation with libpri and DAHDI Update the system before start installation and reboot the system. yum -y update   Install MySQL yum -y install mysql-server /etc/init.d/mysqld start chkconfig mysqld on Install Pre-Install Packages yum -y install kernel-devel make bison flex gcc-c++ gcc httpd php php-cli php-mysql php-pear php-gd curl sox ncurses-devel openssl-devel mysql-devel … Read more