<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>TechCrackJack</title><description></description><managingEditor>noreply@blogger.com (YOGESH JADHAV)</managingEditor><pubDate>Mon, 9 Sep 2024 04:23:41 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">8</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>https://techcrackjack.blogspot.com/</link><language>en-us</language><item><title>What happens when you start your computer???</title><link>https://techcrackjack.blogspot.com/2016/12/what-happens-when-you-start-your.html</link><category>Linux</category><category>Open Source</category><category>OS</category><category>ubuntu</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Sun, 18 Dec 2016 05:08:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-1789588813495966496</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
In this post we will discuss about what happens when you start your computer system and how that Linux operating system launched.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
When you start computer system then control goes to BIOS that Basic Input Output System.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
After that control goes to boot loader.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
So question arises in mind that what is boot loader.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Here we will try to understand about boot loader.&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #990000; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b style="background-color: white; border: 0px; color: #990000; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="font-family: inherit;"&gt;What is Boot Loader?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
Boot Loader is small code which is resides in MBR (Master Boot Record) which will load kernel code of operating system and then control goes to operating system.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
When we switched on the computer system then first control &amp;nbsp;goes to BIOS. BIOS will check all peripherals and check booting order of devices.then select highest priority booting device and execute code stored in MBR of that device.&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;For Example :-&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;open sans&amp;quot;;"&gt;From Windows Vista&amp;nbsp;onward&amp;nbsp;they use&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent;"&gt;BOOTMGR&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #444444; font-family: &amp;quot;open sans&amp;quot;;"&gt;as a&amp;nbsp;boot loader.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;Microsoft&amp;nbsp;Windows&amp;nbsp;up to&amp;nbsp;Windows XP comes with &amp;nbsp;&lt;/span&gt;NTLDR&amp;nbsp;&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;boot loader&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;These&amp;nbsp;boot loaders&amp;nbsp;are&amp;nbsp;specifically&amp;nbsp;designed to load Windows OS.&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: &amp;quot;open sans&amp;quot;;"&gt;For the Ubuntu&amp;nbsp;operating system the boot loader is GRUB2 (Grand Unified Boot loader&amp;nbsp;2).&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b style="background-color: white; border: 0px; color: #990000; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="font-family: inherit;"&gt;What is Master Boot Record (MBR)?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #990000; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="font-family: &amp;quot;open sans&amp;quot;; font-weight: normal;"&gt;Its located in first sector of HDD, CD, other device.&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: color 0.2s; vertical-align: baseline;"&gt;&lt;span style="font-family: &amp;quot;open sans&amp;quot;;"&gt;Master Boot Record (MBR) is one block with 512 bytes. The Size of MBR is 512 bytes because&amp;nbsp;smallest sector size on &lt;/span&gt;&lt;span style="font-family: &amp;quot;open sans&amp;quot;;"&gt;hard disk&lt;/span&gt;&lt;span style="font-family: &amp;quot;open sans&amp;quot;;"&gt;&amp;nbsp;is 512 bytes&lt;/span&gt;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: color 0.2s; vertical-align: baseline;"&gt;&lt;span style="font-family: &amp;quot;open sans&amp;quot;; font-weight: normal;"&gt;&amp;nbsp;Its holds the partition entries and boot code.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="color: black; font-family: &amp;quot;open sans&amp;quot;; font-weight: normal;"&gt;Following MBR block, the actual partition are begin.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b style="background-color: white; border: 0px; color: #990000; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;img height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm8Oka9hUfu5TIwu95gDugWLuTH48NWn34QUEuY6ZAUSMn3hYgC1Q6VrFG0u29GpfFHm2-8hKK6U-Ve4iCcvxIdT2Xv2d30uAigCtDwPK1NuSlNPzKq1A23L1bbYQO5tgyRKPLgNmz1MI/s400/MBR.jpg" width="400" /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #990000; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white;"&gt;If you disconnect your hard disk from one machine and attached to another machine then that machine will understand about the partition table and file system from MBR. Because MBR held the data regarding file system and partition table.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;open sans&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b style="background-color: white; border: 0px; color: #990000; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;img height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHO_suYL7AaB24dn1LzLemvc7wu0nDYFvrJ4jqnmKuMpnMR6FTq7-pFJCdQ4CxVkY571xTbiQDBVsHGmt-H1Zm9C7-D3EcvBN5TzCNweojHck04k5GinKc_tTOoqjUI4M90l06pNEbMe0/s400/1.png" width="400" /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="color: black; font-family: inherit;"&gt;As we know that size of MBR is 512 bytes. Out of which 446 bytes are used for boot code (Boot Loader) , 4 partition entry (each entry required 16 bytes so total 16*4=64) and 2 bytes for MBR signature. Total =446+64+2=512 bytes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;b style="background-color: white; border: 0px; font-family: inherit; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="font-weight: normal;"&gt;As MBR can store only four entries for partition due to that resoan in one Hard disk you can create only four partitons. All four will be primary or 3 primary and 1 logical. But you cannot create more than that partitions.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white;"&gt;Here each volume (or) partition has&amp;nbsp;separate&amp;nbsp;boot sector its called&amp;nbsp;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Volume_boot_record" style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; transition: all 0.25s; vertical-align: baseline;" target="_blank"&gt;volume boot record&lt;/a&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;apart from MBR. its used for&amp;nbsp;chain-loader of boot loader. The reason is grub boot loader can boot all&amp;nbsp;Linux .&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: inherit; text-align: center;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: inherit; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;&amp;nbsp;GRUB Boot loader --&amp;gt; Load Linux Kernel&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: inherit; text-align: center;"&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white; font-family: inherit; text-align: center;"&gt;but GRUB Boot loader cannot load windows opearting system because GRUB dont knows windows boot process.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #990000; font-family: &amp;quot;open sans&amp;quot;; font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style="text-align: justify;"&gt;
&lt;span style="background-color: white; color: #990000; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;How GRUB Works?&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #990000; font-family: &amp;quot;open sans&amp;quot;; font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white; color: #444444;"&gt;In 446 bytes in MBR is&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: #fff2cc; border: 0px; color: #444444; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;not enough&lt;/span&gt;&lt;span style="background-color: white; color: #444444;"&gt;&amp;nbsp;to put entire grub code. so MBR contain small code called&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; color: #444444; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="border: 0px; color: #cc0000; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;boot.img&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;span style="background-color: white; color: #444444;"&gt;and its capable to read first block of&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; border: 0px; color: #cc0000; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;b style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;core.img&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #444444;"&gt;&amp;nbsp;file from any partition (logical volume too) before partition is mounted. Because that time they cant understand the file system. so they read directly one sector (block) where core.img file is located.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLRX48VD7ohmtp2Su8AKoLmxAX3v8F7iVXRWOLso_YdEytKmF6XkkTbyaysiFmmuNLFkuOfPt8qCXGpPUEtkKpyGIwL-URo3sndnHAQZ6StUxYt_9nQN2aB0FmRuOm8X3HnxBAEgo9VbY/s1600/boot.img.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLRX48VD7ohmtp2Su8AKoLmxAX3v8F7iVXRWOLso_YdEytKmF6XkkTbyaysiFmmuNLFkuOfPt8qCXGpPUEtkKpyGIwL-URo3sndnHAQZ6StUxYt_9nQN2aB0FmRuOm8X3HnxBAEgo9VbY/s400/boot.img.png" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;boot.img location &amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic-n2QP3OJH61M3cbbj6ou2SKM4wU25juX70hZfabboroNjYiIE2w8A-0QNBVU2B-wAK2BN-AdsEfoCykGC6LVhMLPniu-OxjuPq5G4QoPf7cKXkoHP1t6nkoMGh_dd_S8FdVBVM-2hlY/s1600/core.img.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic-n2QP3OJH61M3cbbj6ou2SKM4wU25juX70hZfabboroNjYiIE2w8A-0QNBVU2B-wAK2BN-AdsEfoCykGC6LVhMLPniu-OxjuPq5G4QoPf7cKXkoHP1t6nkoMGh_dd_S8FdVBVM-2hlY/s400/core.img.png" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;core.img location&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT6UHkndQRRCb6CV_Jgc_IZ8XtlOB9O1cKJS-CLdYLQmme47tp4yWAAo129A7fdOLcOh1QNIIh0e3YuHaBzFrHopjhcM-eKtjJyekZJ7aa_6huJg7RA9A57T7S4-kmLl7sLHj3nbZA2i8/s1600/diskboot.img.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT6UHkndQRRCb6CV_Jgc_IZ8XtlOB9O1cKJS-CLdYLQmme47tp4yWAAo129A7fdOLcOh1QNIIh0e3YuHaBzFrHopjhcM-eKtjJyekZJ7aa_6huJg7RA9A57T7S4-kmLl7sLHj3nbZA2i8/s400/diskboot.img.png" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;diskboot.img location&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #444444; font-family: &amp;quot;open sans&amp;quot;; font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white;"&gt;The first block of core.img is called&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;diskboot.img&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;for HDD&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;b style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;cdboot.img&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;for cd-rom or&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;pxeboot.img&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;for network boot. This block contain many address of blocks , to iterate these address and load blocks then the complete&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;core.img&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white;"&gt;(around 32 KB) comes into memory. This is job for boot code in GRUB.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br style="background-color: white; margin: 0px; padding: 0px;" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white;"&gt;Actually&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;core.img&lt;/b&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;file is generated when GRUB is installed . This file contain one or more necessary module to mount the File system, where GRUB is installed. So&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;core.img&lt;/b&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;file is responsible for mount the File system and access the GRUB configuration file.&amp;nbsp;Once file system is mounted then we can&amp;nbsp;access&amp;nbsp;the files&amp;nbsp;normal&amp;nbsp;like&amp;nbsp;Linux. All other modules are located /boot/grub. Its loaded when its needed.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br style="background-color: white; margin: 0px; padding: 0px;" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white;"&gt;All grub related configuration (menu entries, graphics resolution, timeout, etc...) are stored&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;&lt;span style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;grub.cfg&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;file in&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;/boot/grub/&lt;/span&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp;location. No need to put this line in MBR. because once File system is mounted then we can access through path&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;b style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; transition: 0.2s; vertical-align: baseline;"&gt;/boot/grub/grub.cfg&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; text-align: center;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm8Oka9hUfu5TIwu95gDugWLuTH48NWn34QUEuY6ZAUSMn3hYgC1Q6VrFG0u29GpfFHm2-8hKK6U-Ve4iCcvxIdT2Xv2d30uAigCtDwPK1NuSlNPzKq1A23L1bbYQO5tgyRKPLgNmz1MI/s72-c/MBR.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Admin Commands for linux</title><link>https://techcrackjack.blogspot.com/2016/11/admincommands.html</link><category>Open Source</category><category>ubuntu</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Fri, 18 Nov 2016 06:15:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-2000366087902781364</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;In this post we will
discuss about important admin commands for Ubuntu operating system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: 21.75pt; margin-bottom: 10.5pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-outline-level: 4;"&gt;
&lt;span style="color: red; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 14.0pt;"&gt;1. Hardinfo&lt;/span&gt;&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;This is GUI based command through which
admin can easily all hardware details in Graphical way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;But this package is not by default
present. you have to install this package through command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;for user:&amp;nbsp;&lt;span style="background: #CCCCCC;"&gt;sudo apt-get install hardinfo&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;for root user:&amp;nbsp;&lt;span style="background: #CCCCCC;"&gt;apt-get install hardinfo&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;When you are going to run this command
make sure that your system have internet connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0XXkgojOUpOoUPtqV1B3qOdqnbwi4V8pzJmGzGnXBuSu63MM99GQv_6SXktlesKEjjgIq_wHxgIwRNh4MHlofzhOGlFz0h_74I7PYWZGihE99UtLRjnhVUDKXFYbuH7h8-EgoG9Xz5zI/s1600/New+Picture+%25285%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0XXkgojOUpOoUPtqV1B3qOdqnbwi4V8pzJmGzGnXBuSu63MM99GQv_6SXktlesKEjjgIq_wHxgIwRNh4MHlofzhOGlFz0h_74I7PYWZGihE99UtLRjnhVUDKXFYbuH7h8-EgoG9Xz5zI/s400/New+Picture+%25285%2529.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;After successfully
installation of package you just need to type&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;hardinfo in terminal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;It will display the
GUI &amp;nbsp;based Hardware details.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgoyYTrzoXcDfqoaEg9xSXt42Gmx5FY_0YkT9KyeLSTc49vgiR01lE0hiGW3Rn72t2nY3r7gY6DHozlFUJJKarcsG9XaQX2cukP3GFSjA080uNyzIU1PeTBc_YLivRYJLuy_b2q4lMjo/s1600/New+Picture+%25286%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgoyYTrzoXcDfqoaEg9xSXt42Gmx5FY_0YkT9KyeLSTc49vgiR01lE0hiGW3Rn72t2nY3r7gY6DHozlFUJJKarcsG9XaQX2cukP3GFSjA080uNyzIU1PeTBc_YLivRYJLuy_b2q4lMjo/s400/New+Picture+%25286%2529.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: 22.5pt; margin-bottom: 12.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 20.25pt; mso-outline-level: 3;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;span style="color: red; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 14.0pt;"&gt;2. nmon&lt;/span&gt;&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12.0pt;"&gt;nmon
command is used to check and monitor system performance.&lt;/span&gt;&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12.0pt;"&gt;Nmon
or nigel’s monitor is a tool which displays performance information of the
system.&lt;/span&gt;&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12.0pt;"&gt;Command
to install nmon tool.&lt;/span&gt;&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal; margin-top: 18pt;"&gt;
&lt;span style="background: #CCCCCC; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;$
sudo apt-get install nmon&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12.0pt;"&gt;

&lt;/span&gt;&lt;br /&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal; margin-top: 18pt;"&gt;
&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;to check cpu
information you can type&amp;nbsp;&lt;/span&gt;&lt;span style="background: #EEEEEE; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;nmon cpu info (press c)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVAksqoHwjOmUWL2c73Tm_a4fUgTz7GqWn4LKGaV3lUctMbbPheTZsAp6Y5IFcy9ikV1iMbg7y17NkRQ76Sw5xSJqX8RA56GtwPB3Vb_tjZnTK9e4jrpRR9aTOJXyLJFv6wvdtjAEY1zU/s1600/New+Picture+%25287%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="130" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVAksqoHwjOmUWL2c73Tm_a4fUgTz7GqWn4LKGaV3lUctMbbPheTZsAp6Y5IFcy9ikV1iMbg7y17NkRQ76Sw5xSJqX8RA56GtwPB3Vb_tjZnTK9e4jrpRR9aTOJXyLJFv6wvdtjAEY1zU/s400/New+Picture+%25287%2529.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: #CCCCCC; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;nman
disk info (press d)&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0160OMb92IKA9HGr1MyCFTHQkzM329hH7P1hzpTNNXg_bvGm34_cAzZ3bQsQ2d7XQukt1WzdS-9_acCu6AcGJObzdDwJK15ureOPB0LVhOcZCSotKrhdNf0z05s-TiMzJaHT16LmScoE/s1600/New+Picture+%25288%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="137" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0160OMb92IKA9HGr1MyCFTHQkzM329hH7P1hzpTNNXg_bvGm34_cAzZ3bQsQ2d7XQukt1WzdS-9_acCu6AcGJObzdDwJK15ureOPB0LVhOcZCSotKrhdNf0z05s-TiMzJaHT16LmScoE/s400/New+Picture+%25288%2529.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: 21.75pt; margin: 18pt 0cm 10.5pt;"&gt;
&lt;span style="color: red; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;3. lsblk&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;This
command will be give installed devices on system&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt; &lt;span style="background: white;"&gt;It
will generates&amp;nbsp;tree based output.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;command
need to type&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;





&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;lsblk&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;output:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;b&gt;&lt;span style="color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;NAME&amp;nbsp;&amp;nbsp; MAJ:MIN
RM&amp;nbsp;&amp;nbsp; SIZE RO&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;b&gt;&lt;span style="color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;sda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
8:0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 465.8G&amp;nbsp; 0 disk &lt;/span&gt;&lt;/b&gt;&lt;span style="color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;├─sda1&amp;nbsp;&amp;nbsp;
8:1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1K&amp;nbsp; 0 part &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;├─sda4&amp;nbsp;&amp;nbsp;
8:4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 307.5G&amp;nbsp; 0 part /media/supertux/BA1CCF4D1CCF037D&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;├─sda5&amp;nbsp;&amp;nbsp;
8:5&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 5.3G&amp;nbsp; 0 part /boot&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;├─sda6&amp;nbsp;&amp;nbsp;
8:6&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 14.9G&amp;nbsp; 0 part [SWAP]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;















&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;└─sda7&amp;nbsp;&amp;nbsp;
8:7&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 138.1G&amp;nbsp; 0 part /&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: 12.75pt; mso-outline-level: 3; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;
&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: 12.75pt; mso-outline-level: 3; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;
&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;&lt;span style="color: red; font-size: 14pt;"&gt;4.
slurm&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: 12.75pt; mso-outline-level: 3; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;
&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;A command line utility
used for command based network interface bandwidth monitoring, it will display
ascii based graphic.command need to type:&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal; margin-top: 18pt;"&gt;
&lt;span style="background: white; font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;$ apt-get install slurm&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeiPYGT-AxMhLsE3XWc6bG4BfJ2aXevwoTfoqAze_YKh3nJQysoV9wV99_vSkRTO1ncbw3QngmO_-YqiTGA-yPBYyr43Q3LQF89o0yHx0TlLz2ZfiPgtfSdM1y_gKbgWYIz1rRfMSseb0/s1600/New+Picture+%25289%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="203" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeiPYGT-AxMhLsE3XWc6bG4BfJ2aXevwoTfoqAze_YKh3nJQysoV9wV99_vSkRTO1ncbw3QngmO_-YqiTGA-yPBYyr43Q3LQF89o0yHx0TlLz2ZfiPgtfSdM1y_gKbgWYIz1rRfMSseb0/s400/New+Picture+%25289%2529.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal; margin-top: 18pt;"&gt;
&lt;span style="background: white; font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: 22.5pt; margin-bottom: 12.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 20.25pt; mso-outline-level: 2; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;
&lt;span style="color: red; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;5.
ranwhen.py&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;A python
based terminal utility that can be used to display system activities
graphically. Details are presented in a very colourful histogram.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;First you
need to install python for that run following command in terminal.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;$ sudo
apt-add-repository ppa:fkrull/deadsnakes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;Update
system:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;$ sudo
apt-get update&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;Download
python:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;$ sudo
apt-get install python3.2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;/a&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;Download
ranwhen.py&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;Run the tool.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;$ python3.2
ranwhen.py&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background: white; line-height: 22.5pt; margin-bottom: 12.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 20.25pt; mso-outline-level: 2; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;
&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://www.blogger.com/blogger.g?blogID=7829462086176086957" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;





































&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="background: white; line-height: normal;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 12pt;"&gt;output:&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj78yIycdlpqFZM1YRRoivqh4MEXLbcEt9SfSDTlUM0jmBtpG7YcK1Cu6_k4s_Aoa5242dk8ePZjjtLigC9CI2ZLm5sD6WFuGQoDqmq3jrmjpuDhyphenhyphenGoxznCf_NiyqqF9ZoFWQW-WoYgI9M/s1600/New+Picture+%252810%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="257" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj78yIycdlpqFZM1YRRoivqh4MEXLbcEt9SfSDTlUM0jmBtpG7YcK1Cu6_k4s_Aoa5242dk8ePZjjtLigC9CI2ZLm5sD6WFuGQoDqmq3jrmjpuDhyphenhyphenGoxznCf_NiyqqF9ZoFWQW-WoYgI9M/s400/New+Picture+%252810%2529.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: white; color: #222222; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;



&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal; margin-top: 18pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="MsoNormal" style="line-height: normal;"&gt;
&lt;span style="background: #CCCCCC; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0XXkgojOUpOoUPtqV1B3qOdqnbwi4V8pzJmGzGnXBuSu63MM99GQv_6SXktlesKEjjgIq_wHxgIwRNh4MHlofzhOGlFz0h_74I7PYWZGihE99UtLRjnhVUDKXFYbuH7h8-EgoG9Xz5zI/s72-c/New+Picture+%25285%2529.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>What happens in memory when you run Java Program.</title><link>https://techcrackjack.blogspot.com/2016/11/what-happens-in-memory-when-you-run.html</link><category>heap</category><category>java</category><category>memory</category><category>stack</category><category>static variable</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Sun, 13 Nov 2016 05:27:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-2760143621166316345</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
As we are knowing java is object oriented programming.when you are writing java program with class then when you are going to run java program you have to provide memory to that class.&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
As class in only skeleton it doesn't possess any memory so to give that memory you have to create object of that class.&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
we will further discuss that thing.&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
As we know java possesses two types of memory one is called as&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
-stack memory&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
and another is&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
-heap Memory&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
&amp;nbsp;As stack memory holding memory for methods.&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
and heap memory holding memory for objects.&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
Let us consider simple java program.&lt;/div&gt;
&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;verdana&amp;quot;; font-size: 13px; text-align: justify;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;span style="background-color: white; font-family: &amp;quot;verdana&amp;quot;; font-size: 13px; text-align: justify;"&gt;
&lt;li&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: transparent; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Student{&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;span class="keyword" style="background-color: transparent; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;id;&lt;/span&gt;&lt;span class="comment" style="background-color: transparent; border: none; color: #008200; margin: 0px; padding: 0px;"&gt;//data&amp;nbsp;member&amp;nbsp;(also&amp;nbsp;instance&amp;nbsp;variable)&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;String&amp;nbsp;name;&lt;span class="comment" style="background-color: transparent; border: none; color: #008200; margin: 0px; padding: 0px;"&gt;//data&amp;nbsp;member(also&amp;nbsp;instance&amp;nbsp;variable)&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp; Static int a;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;span class="keyword" style="background-color: transparent; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: transparent; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: transparent; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;main(String&amp;nbsp;args[]){ &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp; Student s1=&lt;span class="keyword" style="background-color: transparent; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Student();&lt;/span&gt;&lt;span class="comment" style="background-color: transparent; border: none; color: #008200; margin: 0px; padding: 0px;"&gt;//creating&amp;nbsp;an&amp;nbsp;object&amp;nbsp;of&amp;nbsp;Student&lt;/span&gt;&lt;span style="background-color: transparent; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp; System.out.println(s1.id); &amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp; System.out.println(s1.name); &amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;} &amp;nbsp;&lt;/li&gt;
&lt;li&gt;}&lt;/li&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;span style="background-color: white; text-align: justify;"&gt;
&lt;/span&gt;&lt;span style="background-color: white; font-family: inherit; text-align: justify;"&gt;In the above java program &amp;nbsp;we are able to see student class contains one method that is public static void main() as it is static means its memory location will be fixed throughout the execution of program.memory location allocated to static method will be fixed and Java Virtual Machine cannot change or replace its memory location throughout the program.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="background-color: white; text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="font-family: inherit; font-size: 13px;"&gt;as main() is method so it will get memory space&amp;nbsp;from stack memory.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white; font-family: inherit;"&gt;at the line number 6 you can able to see that we created object for the same class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white; font-family: inherit;"&gt;now the s1 is instance of student class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white; font-family: inherit;"&gt;Let us discuss about object creation&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white; font-family: inherit;"&gt;Student s1=new Student();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white; font-family: inherit;"&gt;in the above line Student is class name and s1 is object name or you can say it as reference variable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtuoQzxKD8C6t-HrRylm1EB6YpGv6Iwe1Mr8LG-MwPVnPXWW3YW7V2EUwkk5R-u58nf4O-KJd0e-2Jwf2nKHSr9cIrUk75wyPLK017yBNRpr1aarH7quyylQ42Jo_frD0AHTltTwxbr0E/s1600/stack.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;img border="0" height="318" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtuoQzxKD8C6t-HrRylm1EB6YpGv6Iwe1Mr8LG-MwPVnPXWW3YW7V2EUwkk5R-u58nf4O-KJd0e-2Jwf2nKHSr9cIrUk75wyPLK017yBNRpr1aarH7quyylQ42Jo_frD0AHTltTwxbr0E/s400/stack.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;when you use new keyword in program after = symbol it will create memory space for the object.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;as we can able to see in diagram that heap memory having object s1 and the id and and name are instance variable in that. so now you will able to refer those variable with reference of s1.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;so id becomes s1.id and name becomes name.id.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;Student() is constructor so we will discuss about that later on.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;but in the program at line number 4 there is static variable a.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;so we will discuss about it.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;as we know that to use &lt;/span&gt;static&lt;span style="font-family: inherit;"&gt;&amp;nbsp;variable there is no need to create object for the same.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;but where is the &lt;/span&gt;memory&lt;span style="font-family: inherit;"&gt;&amp;nbsp;location for that.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;we will try to find out answer for the same.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;now we will discuss about heap &lt;/span&gt;memory&lt;span style="font-family: inherit;"&gt;&amp;nbsp;in the details.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;Heap memory divided into three major parts&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;-Young &lt;/span&gt;Generation&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;Memory&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;-Old Generation Memory&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;-Permanent &lt;/span&gt;Generation&lt;span style="font-family: inherit;"&gt;&amp;nbsp;Memory&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicfzEEGcwGu6SCMqu-2qSl_VBMyi1Flma5Pc6mGXE8q3rX3sIoB-_2r2Z0poVZalJrCqQD6gvZXp9GDBOSMNiLXVeePWK9fjo5_nSF1Chl3SWyEHmFqGHQ5cIxJBofTodu2Zk0v59u5QQ/s1600/memory.png" imageanchor="1"&gt;&lt;span style="font-family: inherit;"&gt;&lt;img border="0" height="318" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicfzEEGcwGu6SCMqu-2qSl_VBMyi1Flma5Pc6mGXE8q3rX3sIoB-_2r2Z0poVZalJrCqQD6gvZXp9GDBOSMNiLXVeePWK9fjo5_nSF1Chl3SWyEHmFqGHQ5cIxJBofTodu2Zk0v59u5QQ/s400/memory.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;As you can able to see in the above figure newly created objects resides in Young Generation memory. If objects &lt;/span&gt;present&lt;span style="font-family: inherit;"&gt;&amp;nbsp;in system for long time so the state of objects is maintained and stored by Old Generation memory. When any class posses static variable then it get store in Permanent Generation Memory and memory location for &lt;/span&gt;static&lt;span style="font-family: inherit;"&gt;&amp;nbsp;variable will be fixed throughout the program.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtuoQzxKD8C6t-HrRylm1EB6YpGv6Iwe1Mr8LG-MwPVnPXWW3YW7V2EUwkk5R-u58nf4O-KJd0e-2Jwf2nKHSr9cIrUk75wyPLK017yBNRpr1aarH7quyylQ42Jo_frD0AHTltTwxbr0E/s72-c/stack.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>What is "Dirty Cow" vulnerability in Linux? </title><link>https://techcrackjack.blogspot.com/2016/11/DirtyCow.html</link><category>Dirty Cow</category><category>Linux</category><category>Open Source</category><category>ubuntu</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Thu, 10 Nov 2016 02:19:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-8151021146822119431</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"&gt;
&lt;img height="227" src="http://media.bestofmicro.com/0/O/627288/original/dirty-cow.PNG" width="320" /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Merriweather, serif;"&gt;If you are using android&amp;nbsp;phone or Linux&amp;nbsp;operating system&amp;nbsp;then read this very carefully.“Dirty COW” is a serious Linux kernel vulnerability that was recently discovered to have been lurking in the code for more than nine years. It is pretty much guaranteed that if you’re using any version of Linux or Android released in the past decade, you’re vulnerable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;Dirty COW (CVE-2016-5195) is a privilege escalation vulnerability in the Linux Kernel.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;CVE-2016-5195 is the official reference to this bug. CVE (Common Vulnerabilities and Exposures) is the Standard for Information Security Vulnerability Names.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white;"&gt;This vulnerability&amp;nbsp;is identified by&amp;nbsp;&lt;/span&gt;&lt;span style="color: cyan;"&gt;&lt;a href="https://access.redhat.com/security/cve/CVE-2016-5195" style="background-color: white; box-sizing: border-box; text-decoration: none;"&gt;Phil Oester&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="color: cyan;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Before understanding this vulnerability we will try to understand atomic transaction.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
In the atomic transaction the system will maintain initial state of system until the particular action completed.for that purpose we will going to lock the particular resource until the execution completed.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
but there is one flaw for the same in Linux.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
there is race condition present in memory mapping.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white;"&gt;A race condition is an undesirable situation that occurs when a&amp;nbsp;&lt;/span&gt;device&lt;span style="background-color: white;"&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;system&amp;nbsp;&lt;span style="background-color: white;"&gt;attempts to perform two or more operations at the same time, but because of the nature of the device or system, the operations must be done in the proper sequence to be done correctly.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: Merriweather, serif;"&gt;&amp;nbsp;Linux uses the “Copy on Write” (COW) approach to reduce unnecessary duplication of memory&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: Merriweather, serif;"&gt;objects. &amp;nbsp;Lets understand this concept:&lt;/span&gt;&lt;/div&gt;
&lt;pre style="background: rgb(238, 238, 238); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-radius: 2px; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 0px 4px; box-sizing: inherit; font-family: monospace, monospace; line-height: 1; margin-bottom: 10.5px; padding: 5px; word-break: break-all; word-wrap: break-word;"&gt;a = ‘COW’

b = a&lt;/pre&gt;
&lt;div style="text-align: justify;"&gt;
Lets consider above syntax in which there are two different objects but they are referencing same memory location that is memory location of variable a.&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Merriweather, serif;"&gt;there is no need to take up twice the amount of RAM for two identical values.so ram will maintain&amp;nbsp;same memory location.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: inherit; font-family: Merriweather, serif; line-height: 1.875rem; margin-bottom: 20px; text-align: justify;"&gt;
Next, the OS will wait until the value of the duplicate object is actually modified:&lt;/div&gt;
&lt;pre style="background: rgb(238, 238, 238); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-radius: 2px; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 0px 4px; box-sizing: inherit; font-family: monospace, monospace; line-height: 1; margin-bottom: 10.5px; padding: 5px; word-break: break-all; word-wrap: break-word;"&gt;b += ‘ Dirty’&lt;/pre&gt;
Following steps are performed :&lt;br /&gt;
&lt;ol style="background-color: white; box-sizing: inherit; font-family: Merriweather, serif;"&gt;
&lt;li style="box-sizing: inherit;"&gt;&lt;div style="box-sizing: inherit; font-size: 1rem; line-height: 1.875rem; margin-bottom: 20px;"&gt;
allocate memory for the new, modified version of the object&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: inherit;"&gt;&lt;div style="box-sizing: inherit; font-size: 1rem; line-height: 1.875rem; margin-bottom: 20px;"&gt;
read the original contents of the object being duplicated (‘COW’)&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: inherit;"&gt;&lt;div style="box-sizing: inherit; font-size: 1rem; line-height: 1.875rem; margin-bottom: 20px;"&gt;
perform any required changes to it (append ‘ Dirty’)&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: inherit;"&gt;&lt;div style="box-sizing: inherit; font-size: 1rem; line-height: 1.875rem; margin-bottom: 20px;"&gt;
write modified contents into the newly allocated area of memory&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="background-color: white; box-sizing: inherit; line-height: 1.875rem; margin-bottom: 20px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;Unfortunately, there is a race condition between step 2 and step 4 which tricks the memory mapper to write the modified contents into the original memory range instead of the newly allocated area, such that instead of modifying memory belonging to “b” we end up modifying&amp;nbsp;the value of "a".&lt;/span&gt;&lt;/div&gt;
&lt;h2 style="background-color: white; box-sizing: inherit; font-family: Merriweather, serif; line-height: 1.875rem; margin-bottom: 20px; text-align: justify;"&gt;
&lt;span style="font-size: small;"&gt;How this will affect to your system:&lt;/span&gt;&lt;/h2&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-size: small;"&gt;In the Linux&amp;nbsp;the permissions are read only or read-write.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Merriweather, serif;"&gt;For example, as a non-privileged user you should be able to read “/bin/bash” in order to start a shell session when you log in, but not write to it. Only a privileged user that is “root” should be able to modify this file, otherwise any malicious user could replace the bash binary with a modified version that,and create &amp;nbsp;backdoor to your system&amp;nbsp;through which he can access your system&amp;nbsp;remotely.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: Merriweather, serif; font-size: 16px;"&gt;The race condition &amp;nbsp;allows the attacker to bypass this permissions by using the COW mechanism to modify the original read-only objects instead of their copies. In other words, a carefully crafted attack can&amp;nbsp;&lt;/span&gt;&lt;em style="background-color: white; box-sizing: inherit; font-family: Merriweather, serif; font-size: 16px;"&gt;indeed&lt;/em&gt;&lt;span style="background-color: white; font-family: Merriweather, serif; font-size: 16px;"&gt;&amp;nbsp;replace "/bin/bash" with a malicious version by an unprivileged user.&lt;/span&gt;&lt;/div&gt;
&lt;h2 style="text-align: left;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Merriweather, serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: Merriweather, serif; font-size: 16px;"&gt;&lt;div style="text-align: justify;"&gt;
&lt;b&gt;The Solution:&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/h2&gt;
&lt;div style="text-align: justify;"&gt;
The patch is available with latest Linux kernel. so update your kernel.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
for the Android OS which is &amp;nbsp;using Linux kernel there is not any patch yet present. hope google will solve this in the latest release of android.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How c program runs in os?</title><link>https://techcrackjack.blogspot.com/2016/10/how-c-program-runs-in-os.html</link><category>C programs</category><category>OS</category><category>ubuntu</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Mon, 24 Oct 2016 23:31:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-6540876517341008496</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Today we are going do discuss when you are going to run any user application or any program in Linux operating system. Here we are considering c program.&lt;br /&gt;
in the last post we seen how we are executing c program in Linux.&lt;br /&gt;
Now we are going to discuss how c program handled by operating system.&lt;br /&gt;
before starting with it. we need to go through some basic concepts of OS and kernel.&lt;br /&gt;
Basically there are two spaces in system&lt;br /&gt;
1) User space:- Where we are going to run user application. Most of the user program runs in this space.&lt;br /&gt;
2) Kernel space:- In the kernel space is reserved for kernel programs and device drivers.&lt;br /&gt;
In kernel space all file management , memory management and scheduling programs are executed.&lt;br /&gt;
&lt;br /&gt;
In the following figure you can able to see the clear difference between user space and kernel space.&lt;br /&gt;
when you are going to run any user program its runs in user space.&lt;br /&gt;
&lt;img alt="Image result for user space and kernel space in linux" height="157" src="https://rhelblog.files.wordpress.com/2015/07/user-space-vs-kernel-space-simple-container.png" width="400" /&gt;&lt;br /&gt;
In the figure there is linkage present between user space and kernel space and that is system calls.&lt;br /&gt;
Now we will see what is use of system call in simple way.&lt;br /&gt;
user processes can directly communicated to kernel or access hardware due to security purpose.&lt;br /&gt;
so they communicated through the system calls.&lt;br /&gt;
you can say system call is systematic way for user process to request kernel service such as hard disk access or any other device access, creation of any new process or process scheduling.....&lt;br /&gt;
&amp;nbsp; In the Linux operating system the system calls are handled by POSIX libraries.&lt;br /&gt;
&lt;br /&gt;
lets discuss briefly about POSIX.&lt;br /&gt;
POSIX is Portable Operating System Interface.&lt;br /&gt;
POSIX defines Application Programming Interface(API) and some command shell and utilities.&lt;br /&gt;
lets understands in easy way lets consider I want to develop application for Linux operating system so I have to follow posix standard so my application will able to communicate with kernel.&lt;br /&gt;
&lt;br /&gt;
You can get detailed function set of POSIX &lt;a href="http://pubs.opengroup.org/onlinepubs/009696699/functions/contents.html"&gt;here.&lt;/a&gt;&lt;br /&gt;
you will understand this concept after this example.&lt;br /&gt;
&lt;br /&gt;
Let us consider you written down simple C program. Now in the c program you used c system function &amp;nbsp;printf("hello world") which is function of c.&lt;br /&gt;
&lt;br /&gt;
So when you are going to execute c program you have to tell to the OS that you have to display hello world on terminal but c program is running in user space so c program dont have privilege to access the output window. only kernel can access that so C program requests to POSIX and the POSIX carry forward that request to kernel.&lt;br /&gt;
and then we are able to see hello world message on terminal.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
printf()----&amp;gt; write()----&amp;gt;kernel code&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
C program Function-----&amp;gt;POSIX fuction-------&amp;gt;Kernel code for write()&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
to see how the system call works:&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
run the c program to create temporary file for the same refer &lt;a href="http://techcrackjack.blogspot.com/2016/10/Compilerworking.html" target="_blank"&gt;previous post&lt;/a&gt;.&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
that is $gcc -save-temps -o hi.c&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
now open the file hi.s&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
that is assembly code.&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
the below code is for hi.s&lt;/div&gt;
&lt;h4 style="background: rgb(244, 251, 244); border: 1px solid rgb(51, 51, 51); color: #8ca68c; font-family: &amp;quot;Computer Modern Typewriter&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14.4px; line-height: 1.4em; margin-bottom: 1em; padding: 10px; text-align: left;"&gt;
&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;.&lt;/span&gt;&lt;span class="kwd" style="color: #ad2bee;"&gt;global&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; _start&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;text&lt;br /&gt;_start&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;_start&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;:&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# write(1, message, 13)&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mov &amp;nbsp; &amp;nbsp; $1&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rax &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# system call 1 is write&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mov &amp;nbsp; &amp;nbsp; $1&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rdi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# file handle 1 is stdout&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mov &amp;nbsp; &amp;nbsp; $message&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rsi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# address of string to output&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mov &amp;nbsp; &amp;nbsp; $13&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rdx &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# number of bytes&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; syscall &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# invoke operating system to do the write&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# exit(0)&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mov &amp;nbsp; &amp;nbsp; $60&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rax &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# system call 60 is exit&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xor &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rdi&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;%&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;rdi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# we want return code 0&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; syscall &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="com" style="color: #809980; font-style: italic;"&gt;# invoke operating system to exit&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;message&lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;:&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="color: #131513;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: #131513;"&gt;ascii &amp;nbsp;&lt;/span&gt;&lt;span class="str" style="color: #29a329;"&gt;"hi h r u"&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span class="str"&gt;In this you can understand from the comments.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="str"&gt;This way you can able to see how c program runs by OS.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How Compiler works on C program??</title><link>https://techcrackjack.blogspot.com/2016/10/Compilerworking.html</link><category>Assembly</category><category>C programs</category><category>Compiler</category><category>GCC</category><category>gcc compiler</category><category>pre-processing</category><category>working of compiler</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Mon, 17 Oct 2016 03:34:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-6313807436537932237</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Last post we seen that &lt;a href="http://techcrackjack.blogspot.com/2016/10/how-to-run-c-program-in-linux.html" rel="nofollow" target="_blank"&gt;how to compile C program&lt;/a&gt;.Now we will see how the compiler working on the C programming.&lt;br /&gt;
As we know that compiler converting source code into machine code that we are going to execute on the hardware then we will going to get output.&lt;br /&gt;
But we do not know how the compiler working internally on the C program. The answer is here. First we will see the internal architecture of compiler.&lt;br /&gt;
There are 4 major stages when compiler compiles the C program.&lt;br /&gt;
These steps are&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="background-color: white; color: #111111; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; margin: 0px 0px 26px 26px; padding: 0px; word-wrap: break-word;"&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Pre-processing&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Compilation&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Assembly&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Linking&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;We are going to discuss these steps are in details.&lt;/span&gt;&lt;/div&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;1. Pre-Processing&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;In this step compiler will going to do&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style="background-color: white; color: #111111; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; margin: 0px 0px 26px 26px; padding: 0px; word-wrap: break-word;"&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Macro substitution&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Comments are stripped off&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px; word-wrap: break-word;"&gt;Expansion of the included files&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;In this step header files we added after pre-processor tag that is #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;get expanded.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;Let us see the example of it.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;To see the output of pre-processing stage, we need to &amp;nbsp;run following command in terminal:&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;gcc -E hi.c -o bye&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;&lt;span id="goog_733560159"&gt;&lt;/span&gt;&lt;span id="goog_733560160"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU9GUbDobCKJc1jTczPFDO6uwdW9oqEvch8A2QF0xfCMV3XFDDmvaBMFOh5bh3n_-O89O5oRz1tmiJ3yyffYTRDbHAEf3eLdibqATONWYnFqvWalRQSg1zDSfL8v6LCtQNNXH4xTk3V2c/s1600/Screenshot+from+2016-10-17+14%255E%252548%255E%252516.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="55" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU9GUbDobCKJc1jTczPFDO6uwdW9oqEvch8A2QF0xfCMV3XFDDmvaBMFOh5bh3n_-O89O5oRz1tmiJ3yyffYTRDbHAEf3eLdibqATONWYnFqvWalRQSg1zDSfL8v6LCtQNNXH4xTk3V2c/s400/Screenshot+from+2016-10-17+14%255E%252548%255E%252516.png" width="400" /&gt;&lt;/a&gt;&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
The output of this command will create file of name bye.&lt;br /&gt;
open that file then you will able to see expanded code.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUZMXMQQ-rcgt9vL35IcLTsdPQC35WhqS3idn-hmUmvgH1vlSB01pQnBIoOTRj9RNa8jkLbvNcYA53C60Rxlzo6cWmrTru5AJ3Qw_GpBjwnYNYuK7WgQZkNYDUTqI1rU4YQOGb8AxEKY/s1600/Screenshot+from+2016-10-17+15%255E%252533%255E%252505.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUZMXMQQ-rcgt9vL35IcLTsdPQC35WhqS3idn-hmUmvgH1vlSB01pQnBIoOTRj9RNa8jkLbvNcYA53C60Rxlzo6cWmrTru5AJ3Qw_GpBjwnYNYuK7WgQZkNYDUTqI1rU4YQOGb8AxEKY/s400/Screenshot+from+2016-10-17+15%255E%252533%255E%252505.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
you can able to see your written code at the bottom of that file.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
you can easily get all intermediate file by simple command :&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="color: blue;"&gt;gcc -save-temps hi.c -o bye&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUKI4R6hyphenhyphenXd0vYOlJHy3ZCfg_8HVrQAHetInXnAfi9MAXwflpl05UllHYZdULSmvVejtpHoCUP4eO9oPffjdhwLhp7089lMgp504moOY2NH8eyK600gwELA9oyivSw8iCGo-y1LwV4s8s/s1600/Screenshot+from+2016-10-17+15%255E%252544%255E%252546.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="57" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUKI4R6hyphenhyphenXd0vYOlJHy3ZCfg_8HVrQAHetInXnAfi9MAXwflpl05UllHYZdULSmvVejtpHoCUP4eO9oPffjdhwLhp7089lMgp504moOY2NH8eyK600gwELA9oyivSw8iCGo-y1LwV4s8s/s400/Screenshot+from+2016-10-17+15%255E%252544%255E%252546.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="" style="clear: both; text-align: left;"&gt;
&amp;nbsp;This command will generate three intermediate files.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
1. hi.i &amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
2. hi.s&amp;nbsp;&lt;/div&gt;
&lt;div class="" style="clear: both; text-align: left;"&gt;
3. hi.o&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Here hi.i file is output of pre-processing step.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style="clear: both; text-align: left;"&gt;
2. Compilation&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
In the next step the pre-processed file will work as input to Compilation process.&lt;/div&gt;
&lt;div&gt;
now we will submit hi.i file to compilation process.&lt;/div&gt;
&lt;div&gt;
This step will convert the code into Assembly code.&lt;/div&gt;
&lt;div&gt;
so the output of this step will be hi.s&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJUEWBK9_slZP4JZ_qUrBRVaG5_rw-u-tf7lnMxLaZbXrK13TrLN0d5xNmXeDt4cTK4Zo_fT4576PVnEV8Jk3HhUHlwGefF9naObaaxdOHszGVfosIMaQ4C3du-XWNs9J_C8WHSCg7CRg/s1600/Screenshot+from+2016-10-17+15%255E%252551%255E%252519.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJUEWBK9_slZP4JZ_qUrBRVaG5_rw-u-tf7lnMxLaZbXrK13TrLN0d5xNmXeDt4cTK4Zo_fT4576PVnEV8Jk3HhUHlwGefF9naObaaxdOHszGVfosIMaQ4C3du-XWNs9J_C8WHSCg7CRg/s400/Screenshot+from+2016-10-17+15%255E%252551%255E%252519.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
As you are able to see the hi.s is assembly code.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style="clear: both; text-align: left;"&gt;
3.Assembly&lt;/h3&gt;
&lt;div&gt;
Now in this step the hi.s file is taken as input and it get converted into object code that is hi.o&lt;/div&gt;
&lt;div&gt;
This file is object code file which contains machine code which is we can not understand.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXrqXcyjEhlojfXw244Hwsajxr7t6OUW4onmdk9RXdTG_MqJ0EVujowITGXn-wbV4CJ5RVHYtrs8PkbAro7IXmUkCkpgCGXMY1Rc2bbWKIQfs_sJ9yJhbbytduRybcu1OIJ6dlcBkw-0s/s1600/Screenshot+from+2016-10-17+15%255E%252557%255E%252519.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXrqXcyjEhlojfXw244Hwsajxr7t6OUW4onmdk9RXdTG_MqJ0EVujowITGXn-wbV4CJ5RVHYtrs8PkbAro7IXmUkCkpgCGXMY1Rc2bbWKIQfs_sJ9yJhbbytduRybcu1OIJ6dlcBkw-0s/s400/Screenshot+from+2016-10-17+15%255E%252557%255E%252519.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style="clear: both; text-align: left;"&gt;
4.Linking&lt;/h3&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;"&gt;This is the final stage at which all the linking of function calls with their definitions are done.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;"&gt;The linker also does some extra work; it combines some extra code to our program that is required when the program starts and when the program ends. For example, there is code which is standard for setting up the running environment like passing command line arguments, passing environment variables to every program. Similarly some standard code that is required to return the return value of the program to the system.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;Now we are able to see what&amp;nbsp;actually&amp;nbsp;happening when we are running c program.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="color: #111111; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , &amp;quot;times&amp;quot; , serif;"&gt;In the next post we will discuss regarding how &amp;nbsp;operating system runs c program.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU9GUbDobCKJc1jTczPFDO6uwdW9oqEvch8A2QF0xfCMV3XFDDmvaBMFOh5bh3n_-O89O5oRz1tmiJ3yyffYTRDbHAEf3eLdibqATONWYnFqvWalRQSg1zDSfL8v6LCtQNNXH4xTk3V2c/s72-c/Screenshot+from+2016-10-17+14%255E%252548%255E%252516.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to run C program in Linux??</title><link>https://techcrackjack.blogspot.com/2016/10/how-to-run-c-program-in-linux.html</link><category>C programs</category><category>Compiler</category><category>GCC</category><category>turbo c</category><category>ubuntu</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Sat, 15 Oct 2016 03:10:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-4750129859228708884</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Most of the students are having habit of using Turbo-C to write C &amp;nbsp;and C++ programs.They think it as easy to use and easy to run. But Turbo-C software is not giving actual sense of running c program.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&amp;nbsp;When you runs c program in turbo-c you have to write getch() to block or freeze output window.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Actually you are not freezing output window that is called as incomplete execution of program.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;your program is waiting to get character from keyboard to come out from that command prompt.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;When you are using Linux operating system to run your C program there is need of GCC compiler that is GNU Compiler Collection is used to compile c program. Most of the time it is by default present in Linux operating system. The explanation given below is related with Ubuntu.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;You can check GCC version and whether it is installed or not by using simple command on terminal.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Command: &lt;span style="color: blue;"&gt;&lt;b&gt;gcc -v&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0E4OBt96ofdI0INVMFZz9O-r0Gv0OwjWojBr13Jo_LiLy9Fj13rOPIhx5beTUnDDK5XpRu3sr9rlWmQ37M4WEmzNzYtYeOlVLEMq_JAKRWx05Aj1ltvHrm-_9KdiryxpxZXJSrf112bA/s1600/Screenshot+from+2016-10-15+14%255E%252529%255E%252551.png" imageanchor="1"&gt;&lt;img border="0" height="245" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0E4OBt96ofdI0INVMFZz9O-r0Gv0OwjWojBr13Jo_LiLy9Fj13rOPIhx5beTUnDDK5XpRu3sr9rlWmQ37M4WEmzNzYtYeOlVLEMq_JAKRWx05Aj1ltvHrm-_9KdiryxpxZXJSrf112bA/s400/Screenshot+from+2016-10-15+14%255E%252529%255E%252551.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
If It is not showing the result then you have to install it through terminal.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Command for the same: &lt;span style="color: blue;"&gt;&lt;b&gt;sudo apt-get install gcc&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggodQ9OSkSIRodCRr7-BsKOQndQuWacjQ6mrJ99LT-p7ifHcg1oUvbiY_QQuwL6RNaIKPJMNOmkeMvKElBpsC6y8khdE7_nKgvQ_OdP4DIhRpMR_iqqMuAp_8qQDt3S1W7_eAwaEij9II/s1600/Screenshot+from+2016-10-15+14%255E%252542%255E%252528.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="108" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggodQ9OSkSIRodCRr7-BsKOQndQuWacjQ6mrJ99LT-p7ifHcg1oUvbiY_QQuwL6RNaIKPJMNOmkeMvKElBpsC6y8khdE7_nKgvQ_OdP4DIhRpMR_iqqMuAp_8qQDt3S1W7_eAwaEij9II/s400/Screenshot+from+2016-10-15+14%255E%252542%255E%252528.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
After successful installation of GCC major question is how to run your c program.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Type your c program in editor such as gedit or any other editor which you like.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Save that program with .c extension.now from your terminal go to respective directory where you saved your c program.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
After that you have to compile your C program with GCC.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Command for that is: &lt;span style="color: blue;"&gt;&lt;b&gt;gcc hi.c -o bye&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
I would like to explain the command&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
gcc is command for compilation. Instead of gcc you can also use cc.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
hi.c is file name&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
-o is attribute for output&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
bye is output file name.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
This Command will create executable file having name "bye".&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoqV2KRldIlkj_PyI-fY8IdZrIC90mfeX16oOhvQPuyKdyQLa3IImRTSO5umUoMkb9xaWo3aijEmB5rKlRhF19Q-Gbn5onXu-bW_XMnDbM1UrVeP2zlGaiCNT6SlgC8EnrCicgJWje-uM/s1600/Screenshot+from+2016-10-15+15%255E%252513%255E%252514.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="52" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoqV2KRldIlkj_PyI-fY8IdZrIC90mfeX16oOhvQPuyKdyQLa3IImRTSO5umUoMkb9xaWo3aijEmB5rKlRhF19Q-Gbn5onXu-bW_XMnDbM1UrVeP2zlGaiCNT6SlgC8EnrCicgJWje-uM/s400/Screenshot+from+2016-10-15+15%255E%252513%255E%252514.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div&gt;
After successful compilation compiler will create executable file bye.&lt;/div&gt;
&lt;div&gt;
now we have just type &lt;span style="color: blue;"&gt;./bye&lt;/span&gt; to run that executable.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLr3v9phxJ7I5fmf3bFP08e5gcw3SDq1yyHSxMP-1PBcvag6bWYDFYwAPRrIQLVxbWHRQI1b-CWUT8_MHO1OJHEpK4aoFIRRtIzAN0_VQvX8W0rDzq9CdoRKVvyPWJAKG7_Uiz_DS2PZI/s1600/Screenshot+from+2016-10-15+15%255E%252525%255E%252548.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="65" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLr3v9phxJ7I5fmf3bFP08e5gcw3SDq1yyHSxMP-1PBcvag6bWYDFYwAPRrIQLVxbWHRQI1b-CWUT8_MHO1OJHEpK4aoFIRRtIzAN0_VQvX8W0rDzq9CdoRKVvyPWJAKG7_Uiz_DS2PZI/s400/Screenshot+from+2016-10-15+15%255E%252525%255E%252548.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
You successfully executed c program.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
In Next post we will see what actually happen behind the screen when you compile c program.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0E4OBt96ofdI0INVMFZz9O-r0Gv0OwjWojBr13Jo_LiLy9Fj13rOPIhx5beTUnDDK5XpRu3sr9rlWmQ37M4WEmzNzYtYeOlVLEMq_JAKRWx05Aj1ltvHrm-_9KdiryxpxZXJSrf112bA/s72-c/Screenshot+from+2016-10-15+14%255E%252529%255E%252551.png" width="72"/></item><item><title>What is future of JAVA???????</title><link>https://techcrackjack.blogspot.com/2016/06/why-java-is-important-first-of-all-java.html</link><category>future of java</category><category>java</category><author>noreply@blogger.com (YOGESH JADHAV)</author><pubDate>Wed, 29 Jun 2016 23:45:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-7829462086176086957.post-2775114264986069195</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h2 style="text-align: left;"&gt;
&lt;span style="font-size: x-large;"&gt;Why java is important???????????????&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style="margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.2pt; text-align: justify; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-weight: normal;"&gt;&lt;span style="font-family: inherit; font-size: large;"&gt;First of all java is a open source programming language.&lt;br /&gt;-Java is a platform Independent.&lt;br /&gt;-Till date there is no programming language more secure
than java .&lt;br /&gt;-Speed of Execution is fast.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="font-size: large;"&gt;-97%
of Enterprise Desktops Run Java&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large;"&gt;-89%
of Desktops (or Computers) in the U.S. Run Java&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large;"&gt;-9
Million Java Developers Worldwide&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large;"&gt;-#1
Choice for Developers&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large;"&gt;-#1
Development Platform&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large;"&gt;-3
Billion Mobile Phones Run Java&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large; text-indent: -0.38in;"&gt;-5
Billion Java Cards in Use&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large; text-indent: -0.38in;"&gt;-125
million TV devices run Java.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large; text-indent: -0.38in;"&gt;-5
of the Top 5 Original Equipment Manufacturers Ship Java ME.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: x-large;"&gt;&lt;b&gt;More
about JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-size: large;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;;"&gt;•&lt;/span&gt;&lt;span style="color: white; font-family: &amp;quot;arial&amp;quot;;"&gt;I&lt;/span&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;;"&gt;t
is Object Oriented Programming.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-size: large;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;; mso-special-format: bullet;"&gt;•&lt;/span&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;;"&gt;By
knowing JAVA you can easily generate &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: &amp;quot;arial&amp;quot;;"&gt;&lt;span style="font-size: large;"&gt;Desktop Applications,
Web Applications.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="direction: ltr; language: en-GB; margin-bottom: 0pt; margin-left: .38in; margin-top: 7.68pt; mso-line-break-override: restrictions; punctuation-wrap: simple; text-align: justify; text-indent: -.38in; text-justify: inter-ideograph; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-size: large;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;; mso-special-format: bullet;"&gt;•&lt;/span&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;;"&gt;Develop server-side
applications for online forums, stores, polls, HTML forms processing, and more.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div style="direction: ltr; language: en-GB; margin-bottom: 0pt; margin-left: .38in; margin-top: 7.68pt; mso-line-break-override: restrictions; punctuation-wrap: simple; text-align: justify; text-indent: -.38in; text-justify: inter-ideograph; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-size: large;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 7.68pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: inherit; font-size: large; text-indent: -0.38in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>