Linux is open-source operating system.Linux said to give complete freedom to the user unlike any other operating system.It provides command-line interface to its user. Learning linux commands can really can save a lot of time.
For example.If I wanted to create a file with a extention .c with some code in it.In linux i would simply use the following syntax.
echo "<File contents>" -> ~/<file name>.<extention>
and the required file would be created in your home folder.
Whereas in windows i would havee to first save my code in a text document and then change the extention to .c, but by default windows hides extentions of known files.You will have to uncheck "Hide extentions of known file types" from folder options in an explorer.
There are various linux distributions.The most famous are Debian,ubuntu,red hat linux,fedora.Anyone can download it for free of cost from their official sites.linux is worth learning and great for any programmer.
Installing C compiler:-
-Open Linux Terminal.Type the following command without quotes
"sudo apt-get install build-essential"
-It would request for your root password if you are not logged in as root.
-If you get any dependency errors.Typing "sudo apt-get install -f" should resolve those dependency errors.
Compiling C programs:-
-Navigate to the folder where the source code is located using cd command.
cd <path>
-Then type gcc -o filename filename.c
-The command will compile the source code and creates the executable in the same folder.To load the program type ./filename at the terminal.
NOTE:-
- The attribute -o gives the specified name to the output file. Typing gcc filename.c with create a output file "a.out".