<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-995042261466689914</id><updated>2012-02-16T20:15:44.949-08:00</updated><title type='text'>Collection of Linux Interview Questions</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-4847386161759236572</id><published>2010-07-01T21:23:00.000-07:00</published><updated>2010-07-01T21:26:20.909-07:00</updated><title type='text'>More questions to study</title><content type='html'>&lt;a href="http://jobinterviewquestions.co.in/"&gt;Job Interview Questions&lt;/a&gt; : More than 10000 software job interview questions which can help in your job interview&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-4847386161759236572?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/4847386161759236572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/07/more-questions-to-study.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/4847386161759236572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/4847386161759236572'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/07/more-questions-to-study.html' title='More questions to study'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-6288663986248487472</id><published>2010-06-15T20:25:00.000-07:00</published><updated>2010-06-15T20:27:06.678-07:00</updated><title type='text'>SED Linux command</title><content type='html'>&lt;span style="font-weight:bold;"&gt;SED Linux Command &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    sed stands for "stream editor".&lt;br /&gt;&lt;br /&gt;SYNOPSIS&lt;br /&gt;&lt;br /&gt;    % sed [-an] command [file ...]&lt;br /&gt;    % sed [-an] [-e command] [-f command_file] [file ...]&lt;br /&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;&lt;br /&gt;    sed can be used to filter text files. The pattern to match is typically included between a pair of slashes // and quoted.&lt;br /&gt;    For EXAMPLE, to print lines containing the string "1024", you may use:&lt;br /&gt;&lt;br /&gt;        cat filename | sed -n '/1024/p'&lt;br /&gt;&lt;br /&gt;    Here, sed filters the output from the cat command. The option "-n" tells sed to block all the incoming lines but those explicitly matching the expression. The sed action on a match is "p"= print.&lt;br /&gt;    Here is another EXAMPLE, this time for deleting selected lines:&lt;br /&gt;&lt;br /&gt;        cat filename | sed '/.*o$/d' &gt; new_file&lt;br /&gt;&lt;br /&gt;    In this EXAMPLE, lines ending with an "o" will be deleted. It uses a regular expression for matching any string followed by an "o" and the end of the line. The output (i.e., all lines but those ending with "o") is directed to new_file.&lt;br /&gt;&lt;br /&gt;    To search and replace, use the sed 's' action, which comes in front of two expressions:&lt;br /&gt;&lt;br /&gt;        cat filename | sed 's/string_old/string_new/' &gt; newfile&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-6288663986248487472?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/6288663986248487472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/06/sed-linux-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/6288663986248487472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/6288663986248487472'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/06/sed-linux-command.html' title='SED Linux command'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-82572050324153996</id><published>2010-04-24T06:12:00.000-07:00</published><updated>2010-04-24T06:18:13.977-07:00</updated><title type='text'>Linux Books and Interview Questions</title><content type='html'>Its really important to read right book for your interview and suggesting right books for interview question is the most important thing .&lt;br /&gt;&lt;br /&gt;Some books are paid and doesnt contain right questions but some are free and it would be really good if the books are free&lt;br /&gt;&lt;br /&gt;Below are some of the free books which is available&lt;br /&gt;&lt;a href="http://freeonlinebookstore.org/Linux.htm"&gt;free Linux books&lt;/a&gt;&lt;br /&gt;&lt;a href="http://freeonlinebookstore.org/linuxSecurity.htm"&gt;Linux Security Books&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://freeonlinebookstore.org/interview/"&gt;Technical Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://allquestionbank.com/forum/index.php/board,9.0.html"&gt;Linux Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://java501.blogspot.com"&gt;Java Interview Questions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-82572050324153996?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/82572050324153996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/04/linux-books-and-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/82572050324153996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/82572050324153996'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/04/linux-books-and-interview-questions.html' title='Linux Books and Interview Questions'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-5621206963118953779</id><published>2010-03-20T21:33:00.000-07:00</published><updated>2010-03-20T21:52:57.072-07:00</updated><title type='text'>GDB Commands</title><content type='html'>Qdb commands quick reference . GDB is used to debug C/C++ program on unix.&lt;br /&gt;&lt;br /&gt;Below are the quick command of C/C++&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Starting GDB&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gdb  &lt;/span&gt;   start GDB, with no debugging _les&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gdb program  &lt;/span&gt;         begin debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gdb program core &lt;/span&gt;  debug coredump core produced by program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gdb --help &lt;/span&gt;   describe command line options&lt;br /&gt;&lt;br /&gt;More Help on gdb on starting , stoping setting breakpoint in gdb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;embed src="http://users.ece.utexas.edu/~adnan/gdb-refcard.pdf" height="560" width="800"&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-5621206963118953779?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/5621206963118953779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/03/gdb-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/5621206963118953779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/5621206963118953779'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/03/gdb-commands.html' title='GDB Commands'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-6135130883672081764</id><published>2010-03-20T21:12:00.000-07:00</published><updated>2010-03-20T21:15:10.125-07:00</updated><title type='text'>How to access Oracle from C++ on Linux ?</title><content type='html'>It is &lt;br /&gt;Oracle C++ Call Interface&lt;br /&gt;Oracle C++ Call Interface (OCCI) is a high-performance and comprehensive API to access the Oracle database. Based on Standard C++ and object-oriented paradigm, OCCI is designed for improved productivity and quality in developing Oracle database applications.&lt;br /&gt;&lt;br /&gt;Introduced in Oracle9i, OCCI is being successfully used for client-server, middle-tier, and complex object modeling applications.&lt;br /&gt;&lt;br /&gt;The Instant Client feature makes it extremely easy and fast to deploy an OCCI based application by eliminating the need and disk space of a full Oracle Client install. Users just need to install a small sized archive containing all the Oracle dynamic libraries to run their OCCI applications.&lt;br /&gt;&lt;br /&gt;What's new in OCCI in Oracle 11g R1 release :&lt;br /&gt;&lt;br /&gt;    * Database Resident Connection Pooling(DRCP)&lt;br /&gt;    * SecureFile LOBs, Compression, Encryption, and Deduplication&lt;br /&gt;    * Client ResultSet cache&lt;br /&gt;    * Runtime Connection Load balancing&lt;br /&gt;    * Fault Diagnosability&lt;br /&gt;    * Objects access performance improvements&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-6135130883672081764?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/6135130883672081764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/03/how-to-access-oracle-from-c-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/6135130883672081764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/6135130883672081764'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/03/how-to-access-oracle-from-c-on-linux.html' title='How to access Oracle from C++ on Linux ?'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-9144563460093587575</id><published>2010-03-20T21:04:00.000-07:00</published><updated>2010-03-20T21:11:56.664-07:00</updated><title type='text'>Connecting MySQL with C++ on Linux</title><content type='html'>MySQL API ..&lt;br /&gt;The C API code to connect mysql on unix ( linux ) is being distributed with MySQL. It is the part of mysqlclient library and allows C programs to access a database.&lt;br /&gt;&lt;br /&gt;Following packages needs to be compiled to access mysql from C/C++ on unix.&lt;br /&gt;&lt;br /&gt;    * mysql: MySQL client programs and shared library&lt;br /&gt;    * mysqlclient: Backlevel MySQL shared libraries (old libs)&lt;br /&gt;    * mysql-devel: Files for development of MySQL applications (a must have)&lt;br /&gt;    * mysql-server: Mysql server itself&lt;br /&gt;    * gcc, make and other development libs: GNU C compiler&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;How do I compile and link program against MySQL libs?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ mysql_config --libs&lt;br /&gt;$ mysql_config --cflags&lt;br /&gt;&lt;br /&gt;$ gcc -o output-file $(mysql_config --cflags) mysql-c-api.c $(mysql_config --libs)&lt;br /&gt;&lt;br /&gt;$ ./output-file&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Sample Program&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;/* Simple C program that connects to MySQL Database server*/&lt;br /&gt;#include &lt;mysql.h&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;main() {&lt;br /&gt;   MYSQL *conn;&lt;br /&gt;   MYSQL_RES *res;&lt;br /&gt;   MYSQL_ROW row;&lt;br /&gt;&lt;br /&gt;   char *server = "localhost";&lt;br /&gt;   char *user = "root";&lt;br /&gt;   char *password = "PASSWORD"; /* set me first */&lt;br /&gt;   char *database = "mysql";&lt;br /&gt;&lt;br /&gt;   conn = mysql_init(NULL);&lt;br /&gt;&lt;br /&gt;   /* Connect to database */&lt;br /&gt;   if (!mysql_real_connect(conn, server,&lt;br /&gt;         user, password, database, 0, NULL, 0)) {&lt;br /&gt;      fprintf(stderr, "%s\n", mysql_error(conn));&lt;br /&gt;      exit(1);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   /* send SQL query */&lt;br /&gt;   if (mysql_query(conn, "show tables")) {&lt;br /&gt;      fprintf(stderr, "%s\n", mysql_error(conn));&lt;br /&gt;      exit(1);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   res = mysql_use_result(conn);&lt;br /&gt;&lt;br /&gt;   /* output table name */&lt;br /&gt;   printf("MySQL Tables in mysql database:\n");&lt;br /&gt;   while ((row = mysql_fetch_row(res)) != NULL)&lt;br /&gt;      printf("%s \n", row[0]);&lt;br /&gt;&lt;br /&gt;   /* close connection */&lt;br /&gt;   mysql_free_result(res);&lt;br /&gt;   mysql_close(conn);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-9144563460093587575?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/9144563460093587575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/03/connecting-mysql-with-c-on-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/9144563460093587575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/9144563460093587575'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/03/connecting-mysql-with-c-on-linux.html' title='Connecting MySQL with C++ on Linux'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995042261466689914.post-1332368768285717391</id><published>2010-02-04T11:24:00.000-08:00</published><updated>2010-02-04T11:29:14.229-08:00</updated><title type='text'>Linux Commands Interview Questions</title><content type='html'>&lt;span style="font-weight: bold;"&gt;zcat- &lt;/span&gt;The zcat utility allows you to examine the contents of a  compressed file much the same way that cat displays a  file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;top&lt;/span&gt;-The top utility shows a listing of all running processes  that is dynamically updated.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How do you find out what’s your shell?&lt;/b&gt; - echo $SHELL&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How do you write a for loop in shell?&lt;/b&gt; -&lt;br /&gt;&lt;br /&gt;for {variable name} in {list} do {statement} done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995042261466689914-1332368768285717391?l=linux-interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-interviewquestions.blogspot.com/feeds/1332368768285717391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/02/linux-commands-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/1332368768285717391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995042261466689914/posts/default/1332368768285717391'/><link rel='alternate' type='text/html' href='http://linux-interviewquestions.blogspot.com/2010/02/linux-commands-interview-questions.html' title='Linux Commands Interview Questions'/><author><name>vikas</name><uri>http://www.blogger.com/profile/13999250810437213517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
