Vi is a default editor in Linux operating systems. Vim is basically the improved version of the Vi editor. In this tutorial, We will learn Vi commands.
If you are new to Linux operating system and you don’t know how to start with Vi, Vim editor then in this tutorial we’ll important commands and their usage .
Top ten most useful Linux commands for beginners
I already mentioned Vi is a default editor in Linux , Ubuntu and all other flavors of Unix operating system. To use Vim editor you need to installed it first.
What is the php.ini file, why we use it ? Where do I find this file on Ubuntu ? How I open and edit the php.ini file on a terminal. This is the most common questions asked by beginners who are either new to PHP or Linux.
The php.ini file is a default configuration file used when your PHP application runs. When PHP starts it reads the configuration setting from the php.ini file.
If you have installed LAMP on a Ubuntu operating system and unable to find and edit this file then this tutorial is for you.
How to check RAM size in Ubuntu. In this tutorial you’ll learn how to check RAM size and system memory information in Ubuntu.
What is recursion and how to use recursion in programming. If you are new to programming, then recursion concept is tough to understand. In this post, i’ll explain the concept of recursion with example.
What is Recursion ?
In Recursion, function call itself repeatedly, until the base condition is reached. It’s a much preferred way to write cleaner and shorter code for many complex problems.
Through recursion, you can reduce complex problem into smaller version.
Last week while i was working on url rewriting i face the problem. I had written the rule in .htaccess but forget to enable the mod_rewrite. Remember your .htaccess rule will not work until you enable the mod_rewrite.
How to install apache2 on ubuntu
Go to terminal (ctrl+Alt+T) and write the following command
sudo apt-get install apache2
Once apache2 installation is complete. Write the command mentioned below to enable mod_rewrite
After enable the mod_rewrite do the changes on following file
Options Indexes FollowSymLinks MultiViews
AllowOverride all /* By default AllowOverride none is written so delete none and write all*/</span>
allow from all
After done the changes restart the apache.
To restart apache2
sudo /etc/init.d/apache2 restart
Enable mod_headers in apache
Remember to restart apache
So to restart apache2 write through terminal
sudo /etc/init.d/apache2 restart
Write a java program to find duplicate elements in an array. There are multiple ways through which we can find duplicate elements in an array. In this tutorial, I’ll discuss three ways to find duplicate elements in an array.
This question is also very important in terms of technical interviews.
Write a selection sort program in C. How selection sort algorithm works and what’s their time complexity.
What is Selection Sort
Selection sort is an in-place comparison sort. Like bubble sort time complexity of Selection sort is also O(n^2). It is not suitable for large elements.
Bubble Sort program, Algorithm & their time complexity.In this tutorial, We are going to learn about bubble sort algorithm and their implementation in various programming languages.
In this tutorial, we are going to cover following things
- What is Bubble Sort?
- Bubble sort algorithm & it’s time complexity
- Bubble sort program in C & C++
- Java program to implement Bubble sort
- Bubble sort implementation in PHP
What is Bubble Sort?
Bubble sort is a sorting algorithm, It works by comparing each pair of adjacent elements and switching their positions if necessary. It repeats this process until all the elements are sorted.