<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Prepare 4 interview - Recent questions and answers in UNIX Interview Questions and Answers</title>
<link>http://prepare4interview.com/qa/unix-interview-questions-and-answers</link>
<description>Powered by Question2Answer</description>
<item>
<title>What is Unix?</title>
<link>http://prepare4interview.com/1780/what-is-unix</link>
<description>What is UniX</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1780/what-is-unix</guid>
<pubDate>Thu, 22 Sep 2011 07:21:51 +0000</pubDate>
</item>
<item>
<title>Answered: options for using df command</title>
<link>http://prepare4interview.com/1751/options-for-using-df-command#a1752</link>
<description>u can use df -kh&lt;br /&gt;
for showing disk utilization in MB or GB</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1751/options-for-using-df-command#a1752</guid>
<pubDate>Wed, 02 Feb 2011 11:44:18 +0000</pubDate>
</item>
<item>
<title>Can I find several patterns and refer to them in the replacement string?</title>
<link>http://prepare4interview.com/1709/can-find-several-patterns-and-refer-them-replacement-string</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1709/can-find-several-patterns-and-refer-them-replacement-string</guid>
<pubDate>Fri, 22 Oct 2010 17:34:53 +0000</pubDate>
</item>
<item>
<title>Answered: How do you inject text with sed?</title>
<link>http://prepare4interview.com/1707/how-do-you-inject-text-with-sed#a1708</link>
<description>&amp;amp; in the substitution string defines the pattern found in the search string. As an example, here’s us trying to find a word ‘hello’ and replacing it with ‘hello and how are you’:&lt;br /&gt;
&amp;nbsp;echo ‘hello there’ | sed ’s/^hello/&amp;amp; and how are you/’</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1707/how-do-you-inject-text-with-sed#a1708</guid>
<pubDate>Fri, 22 Oct 2010 17:34:14 +0000</pubDate>
</item>
<item>
<title>How do you substitute strings with sed?</title>
<link>http://prepare4interview.com/1705/how-do-you-substitute-strings-with-sed</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1705/how-do-you-substitute-strings-with-sed</guid>
<pubDate>Fri, 22 Oct 2010 17:12:13 +0000</pubDate>
</item>
<item>
<title>Answered: What is sed?</title>
<link>http://prepare4interview.com/1703/what-is-sed#a1704</link>
<description>sed is stream editor, a Unix tool for working with streams of text data.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1703/what-is-sed#a1704</guid>
<pubDate>Fri, 22 Oct 2010 17:03:02 +0000</pubDate>
</item>
<item>
<title>Answered: List some UNIX Commands</title>
<link>http://prepare4interview.com/821/list-some-unix-commands#a822</link>
<description>ls&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list files and directories&lt;br /&gt;
ls &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list all files and directories&lt;br /&gt;
mkdir&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; make a directory&lt;br /&gt;
cd directory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change to named directory&lt;br /&gt;
cd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change to home&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; directory&lt;br /&gt;
cd ~&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change to home&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; directory&lt;br /&gt;
cd ..&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change to parent directory&lt;br /&gt;
pwd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display the path of the current directory&lt;br /&gt;
&lt;br /&gt;
cp file1 file2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; copy file1 and call it file2&lt;br /&gt;
mv file1 file2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; move or rename file1 to file2&lt;br /&gt;
rm file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; remove a file&lt;br /&gt;
rmdir directory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; remove a directory&lt;br /&gt;
&lt;br /&gt;
cat file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display a file&lt;br /&gt;
more file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display a file a page at a time&lt;br /&gt;
head file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display the first few lines of a file&lt;br /&gt;
tail file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display the last few lines of a file&lt;br /&gt;
grep 'keyword' file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; search a file for keywords&lt;br /&gt;
wc file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count number of lines/words/characters in file&lt;br /&gt;
&lt;br /&gt;
command &amp;gt; file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; redirect standard output to a file&lt;br /&gt;
command &amp;gt;&amp;gt; file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; append standard output to a file&lt;br /&gt;
command &amp;lt; file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; redirect standard input from a file&lt;br /&gt;
command1 | command2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pipe the output of command1 to the input of command2&lt;br /&gt;
cat file1 file2 &amp;gt; file0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; concatenate file1 and file2 to file0&lt;br /&gt;
sort&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sort data&lt;br /&gt;
who&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list users currently logged in&lt;br /&gt;
a2ps &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pprinter textfile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print text file to named printer&lt;br /&gt;
lpr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pprinter psfile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print postscript file to named printer&lt;br /&gt;
&lt;br /&gt;
*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match any number of characters&lt;br /&gt;
?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match one character&lt;br /&gt;
man command&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; read the online manual page for a command&lt;br /&gt;
whatis command&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; brief description of a command&lt;br /&gt;
apropos keyword&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match commands with keyword in their man pages&lt;br /&gt;
&lt;br /&gt;
ls &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lag&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list access rights for all files&lt;br /&gt;
chmod [options] file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change access rights for named file&lt;br /&gt;
command &amp;amp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run command in background&lt;br /&gt;
^C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kill the job running in the foreground&lt;br /&gt;
^Z&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; suspend the job running in the foreground&lt;br /&gt;
bg&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; background the suspended job&lt;br /&gt;
jobs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list current jobs&lt;br /&gt;
fg %1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreground job number 1&lt;br /&gt;
kill %1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kill job number 1&lt;br /&gt;
ps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list current processes&lt;br /&gt;
kill 26152&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kill process number 26152</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/821/list-some-unix-commands#a822</guid>
<pubDate>Sat, 24 Jul 2010 12:40:44 +0000</pubDate>
</item>
<item>
<title>Answered: Explain about Pipes in UNIX?</title>
<link>http://prepare4interview.com/819/explain-about-pipes-in-unix#a820</link>
<description>To see who is on the system with you, type&lt;br /&gt;
&lt;br /&gt;
% who&lt;br /&gt;
&lt;br /&gt;
One method to get a sorted list of names is to type,&lt;br /&gt;
&lt;br /&gt;
% who &amp;gt; names.txt&lt;br /&gt;
% sort &amp;lt; names.txt&lt;br /&gt;
&lt;br /&gt;
This is a bit slow and you have to remember to remove the temporary file called names when you have finished. What you really want to do is connect the output of the who command directly to the input of the sort command. This is exactly what pipes do. The symbol for a pipe is the vertical bar |&lt;br /&gt;
&lt;br /&gt;
For example, typing&lt;br /&gt;
&lt;br /&gt;
% who | sort&lt;br /&gt;
&lt;br /&gt;
will give the same result as above, but quicker and cleaner.&lt;br /&gt;
&lt;br /&gt;
To find out how many users are logged on, type&lt;br /&gt;
&lt;br /&gt;
% who | wc -l&lt;br /&gt;
Exercise 3b&lt;br /&gt;
&lt;br /&gt;
a2ps -Phockney textfile is the command to print a postscript file to the printer hockney.&lt;br /&gt;
&lt;br /&gt;
Using pipes, print all lines of list1 and list2 containing the letter 'p', sort the result, and print to the printer hockney.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/819/explain-about-pipes-in-unix#a820</guid>
<pubDate>Sat, 24 Jul 2010 12:38:36 +0000</pubDate>
</item>
<item>
<title>What is the use of Unix command : history</title>
<link>http://prepare4interview.com/817/what-is-the-use-of-unix-command-history</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/817/what-is-the-use-of-unix-command-history</guid>
<pubDate>Sat, 24 Jul 2010 12:37:02 +0000</pubDate>
</item>
<item>
<title>What is the use of Unix command : file?</title>
<link>http://prepare4interview.com/815/what-is-the-use-of-unix-command-file</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/815/what-is-the-use-of-unix-command-file</guid>
<pubDate>Sat, 24 Jul 2010 12:36:55 +0000</pubDate>
</item>
<item>
<title>What is the use of Unix command : gzip?</title>
<link>http://prepare4interview.com/813/what-is-the-use-of-unix-command-gzip</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/813/what-is-the-use-of-unix-command-gzip</guid>
<pubDate>Sat, 24 Jul 2010 12:36:51 +0000</pubDate>
</item>
<item>
<title>Answered: What is the use of Unix command : compress?</title>
<link>http://prepare4interview.com/811/what-is-the-use-of-unix-command-compress#a812</link>
<description>This reduces the size of a file, thus freeing valuable disk space. For example, type&lt;br /&gt;
&lt;br /&gt;
% ls -l science.txt&lt;br /&gt;
&lt;br /&gt;
and note the size of the file. Then to compress science.txt, type&lt;br /&gt;
&lt;br /&gt;
% compress science.txt&lt;br /&gt;
&lt;br /&gt;
This will compress the file and place it in a file called science.txt.Z&lt;br /&gt;
&lt;br /&gt;
To see the change in size, type ls -l again.&lt;br /&gt;
&lt;br /&gt;
To uncomress the file, use the uncompress command.&lt;br /&gt;
&lt;br /&gt;
% uncompress science.txt.Z</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/811/what-is-the-use-of-unix-command-compress#a812</guid>
<pubDate>Sat, 24 Jul 2010 12:36:45 +0000</pubDate>
</item>
<item>
<title>Answered: What is the use of Unix command : du?</title>
<link>http://prepare4interview.com/809/what-is-the-use-of-unix-command-du#a810</link>
<description>The du command outputs the number of kilobyes used by each subdirectory. Useful if you have gone over quota and you want to find out which directory has the most files. In your home-directory, type&lt;br /&gt;
&lt;br /&gt;
% du</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/809/what-is-the-use-of-unix-command-du#a810</guid>
<pubDate>Sat, 24 Jul 2010 12:36:19 +0000</pubDate>
</item>
<item>
<title>What is the use of Unix command : df?</title>
<link>http://prepare4interview.com/807/what-is-the-use-of-unix-command-df</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/807/what-is-the-use-of-unix-command-df</guid>
<pubDate>Sat, 24 Jul 2010 12:35:30 +0000</pubDate>
</item>
<item>
<title>What is the use of Unix command : quota?</title>
<link>http://prepare4interview.com/805/what-is-the-use-of-unix-command-quota</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/805/what-is-the-use-of-unix-command-quota</guid>
<pubDate>Sat, 24 Jul 2010 12:35:19 +0000</pubDate>
</item>
<item>
<title>Explain about Killing a process in UNIX</title>
<link>http://prepare4interview.com/803/explain-about-killing-a-process-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/803/explain-about-killing-a-process-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:35:13 +0000</pubDate>
</item>
<item>
<title>Explain about Listing suspended and background processes in UNIX</title>
<link>http://prepare4interview.com/801/explain-about-listing-suspended-background-processes-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/801/explain-about-listing-suspended-background-processes-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:35:07 +0000</pubDate>
</item>
<item>
<title>Explain about Processes and Jobs in UNIX</title>
<link>http://prepare4interview.com/799/explain-about-processes-and-jobs-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/799/explain-about-processes-and-jobs-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:34:59 +0000</pubDate>
</item>
<item>
<title>Explain about Changing access rights in UNIX</title>
<link>http://prepare4interview.com/797/explain-about-changing-access-rights-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/797/explain-about-changing-access-rights-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:34:49 +0000</pubDate>
</item>
<item>
<title>Explain about File system security (access rights) in UNIX</title>
<link>http://prepare4interview.com/795/explain-about-file-system-security-access-rights-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/795/explain-about-file-system-security-access-rights-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:34:38 +0000</pubDate>
</item>
<item>
<title>Answered: Explain about Getting Help in UNIX</title>
<link>http://prepare4interview.com/793/explain-about-getting-help-in-unix#a794</link>
<description>On-line Manuals&lt;br /&gt;
---------------&lt;br /&gt;
There are on-line manuals which gives information about most commands. The manual pages tell you which options a particular command can take, and how each option modifies the behaviour of the command. Type man command to read the manual page for a particular command.&lt;br /&gt;
&lt;br /&gt;
For example, to find out more about the wc (word count) command, type&lt;br /&gt;
&lt;br /&gt;
% man wc&lt;br /&gt;
&lt;br /&gt;
Alternatively&lt;br /&gt;
&lt;br /&gt;
% whatis wc&lt;br /&gt;
&lt;br /&gt;
gives a one-line description of the command, but omits any information about options etc.&lt;br /&gt;
Apropos&lt;br /&gt;
&lt;br /&gt;
When you are not sure of the exact name of a command,&lt;br /&gt;
&lt;br /&gt;
% apropos keyword&lt;br /&gt;
&lt;br /&gt;
will give you the commands with keyword in their manual page header. For example, try typing&lt;br /&gt;
&lt;br /&gt;
% apropos copy</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/793/explain-about-getting-help-in-unix#a794</guid>
<pubDate>Sat, 24 Jul 2010 12:34:16 +0000</pubDate>
</item>
<item>
<title>Answered: Explain about Filename conventions in UNIX</title>
<link>http://prepare4interview.com/791/explain-about-filename-conventions-in-unix#a792</link>
<description>We should note here that a directory is merely a special type of file. So the rules and conventions for naming files apply also to directories.&lt;br /&gt;
&lt;br /&gt;
In naming files, characters with special meanings such as / * &amp;amp; % , should be avoided. Also, avoid using spaces within names. The safest way to name a file is to use only alphanumeric characters, that is, letters and numbers, together with _ (underscore) and . (dot).&lt;br /&gt;
&lt;br /&gt;
File names conventionally start with a lower-case letter, and may end with a dot followed by a group of letters indicating the contents of the file. For example, all files consisting of C code may be named with the ending .c, for example, prog1.c . Then in order to list all files containing C code in your home directory, you need only type ls *.c in that directory.&lt;br /&gt;
&lt;br /&gt;
Beware: some applications give the same name to all the output files they generate.&lt;br /&gt;
&lt;br /&gt;
For example, some compilers, unless given the appropriate option, produce compiled files named a.out. Should you forget to use that option, you are advised to rename the compiled file immediately, otherwise the next such file will overwrite it and it will be lost.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/791/explain-about-filename-conventions-in-unix#a792</guid>
<pubDate>Sat, 24 Jul 2010 12:34:10 +0000</pubDate>
</item>
<item>
<title>Explain about Wildcards in UNIX</title>
<link>http://prepare4interview.com/789/explain-about-wildcards-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/789/explain-about-wildcards-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:34:00 +0000</pubDate>
</item>
<item>
<title>Explain about Redirecting the Input in UNIX</title>
<link>http://prepare4interview.com/787/explain-about-redirecting-the-input-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/787/explain-about-redirecting-the-input-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:33:19 +0000</pubDate>
</item>
<item>
<title>Explain about Redirecting the Output in UNIX</title>
<link>http://prepare4interview.com/785/explain-about-redirecting-the-output-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/785/explain-about-redirecting-the-output-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:33:13 +0000</pubDate>
</item>
<item>
<title>Explain about Redirection in UNIX</title>
<link>http://prepare4interview.com/783/explain-about-redirection-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/783/explain-about-redirection-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:33:04 +0000</pubDate>
</item>
<item>
<title>Explain about Searching the contents of a file in UNIX</title>
<link>http://prepare4interview.com/781/explain-about-searching-the-contents-of-a-file-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/781/explain-about-searching-the-contents-of-a-file-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:32:56 +0000</pubDate>
</item>
<item>
<title>Explain about Displaying the contents of a file on the screen in UNIX</title>
<link>http://prepare4interview.com/779/explain-about-displaying-the-contents-file-the-screen-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/779/explain-about-displaying-the-contents-file-the-screen-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:32:48 +0000</pubDate>
</item>
<item>
<title>Explain about Removing files and directories in UNIX</title>
<link>http://prepare4interview.com/777/explain-about-removing-files-and-directories-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/777/explain-about-removing-files-and-directories-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:32:40 +0000</pubDate>
</item>
<item>
<title>Explain about Moving files in UNIX</title>
<link>http://prepare4interview.com/775/explain-about-moving-files-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/775/explain-about-moving-files-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:32:30 +0000</pubDate>
</item>
<item>
<title>Explain about Copying files in UNIX</title>
<link>http://prepare4interview.com/773/explain-about-copying-files-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/773/explain-about-copying-files-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 12:32:15 +0000</pubDate>
</item>
<item>
<title>Answered: More about Home directories and pathnames</title>
<link>http://prepare4interview.com/771/more-about-home-directories-and-pathnames#a772</link>
<description>Understanding pathnames&lt;br /&gt;
-------------------------------------&lt;br /&gt;
First type cd to get back to your home-directory, then type&lt;br /&gt;
&lt;br /&gt;
% ls unixstuff&lt;br /&gt;
&lt;br /&gt;
to list the conents of your unixstuff directory.&lt;br /&gt;
&lt;br /&gt;
Now type&lt;br /&gt;
&lt;br /&gt;
% ls backups&lt;br /&gt;
&lt;br /&gt;
You will get a message like this -&lt;br /&gt;
&lt;br /&gt;
backups: No such file or directory&lt;br /&gt;
&lt;br /&gt;
The reason is, backups is not in your current working directory. To use a command on a file (or directory) not in the current working directory (the directory you are currently in), you must either cd to the correct directory, or specify its full pathname. To list the contents of your backups directory, you must type&lt;br /&gt;
&lt;br /&gt;
% ls unixstuff/backups&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;~ (your home directory)&lt;br /&gt;
-----------------------------------&lt;br /&gt;
Home directories can also be referred to by the tilde ~ character. It can be used to specify paths starting at your home directory. So typing&lt;br /&gt;
&lt;br /&gt;
% ls ~/unixstuff&lt;br /&gt;
&lt;br /&gt;
will list the contents of your unixstuff directory, no matter where you currently are in the file system.&lt;br /&gt;
&lt;br /&gt;
What do you think&lt;br /&gt;
&lt;br /&gt;
% ls ~&lt;br /&gt;
&lt;br /&gt;
would list?&lt;br /&gt;
&lt;br /&gt;
What do you think&lt;br /&gt;
&lt;br /&gt;
% ls ~/..&lt;br /&gt;
&lt;br /&gt;
would list?</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/771/more-about-home-directories-and-pathnames#a772</guid>
<pubDate>Sat, 24 Jul 2010 12:29:40 +0000</pubDate>
</item>
<item>
<title>Answered: Explain about Pathnames in UNIX</title>
<link>http://prepare4interview.com/769/explain-about-pathnames-in-unix#a770</link>
<description>pwd (print working directory)&lt;br /&gt;
&lt;br /&gt;
Pathnames enable you to work out where you are in relation to the whole file-system. For example, to find out the absolute pathname of your home-directory, type cd to get back to your home-directory and then type&lt;br /&gt;
&lt;br /&gt;
% pwd&lt;br /&gt;
&lt;br /&gt;
The full pathname will look something like this -&lt;br /&gt;
&lt;br /&gt;
/a/fservb/fservb/fservb22/eebeng99/ee91ab&lt;br /&gt;
&lt;br /&gt;
which means that ee91ab (your home directory) is in the directory eebeng99 (the group directory),which is located on the fservb file-server.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
/a/fservb/fservb/fservb22/eebeng99/ee91ab&lt;br /&gt;
&lt;br /&gt;
can be shortened to&lt;br /&gt;
&lt;br /&gt;
/user/eebeng99/ee91ab</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/769/explain-about-pathnames-in-unix#a770</guid>
<pubDate>Sat, 24 Jul 2010 12:28:02 +0000</pubDate>
</item>
<item>
<title>The directories . And .., in UNIX</title>
<link>http://prepare4interview.com/767/the-directories-and-in-unix</link>
<description>Explain about the directories . And .., in UNIX</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/767/the-directories-and-in-unix</guid>
<pubDate>Sat, 24 Jul 2010 09:43:57 +0000</pubDate>
</item>
<item>
<title>Answered: Changing to a different directory, in UNIX</title>
<link>http://prepare4interview.com/765/changing-to-a-different-directory-in-unix#a766</link>
<description>cd (change directory)&lt;br /&gt;
-----------------------------&lt;br /&gt;
The command cd directory means change the current working directory to 'directory'. The current working directory may be thought of as the directory you are in, i.e. your current position in the file-system tree.&lt;br /&gt;
&lt;br /&gt;
To change to the directory you have just made, type&lt;br /&gt;
&lt;br /&gt;
% cd unixstuff&lt;br /&gt;
&lt;br /&gt;
Type ls to see the contents (which should be empty)</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/765/changing-to-a-different-directory-in-unix#a766</guid>
<pubDate>Sat, 24 Jul 2010 09:35:18 +0000</pubDate>
</item>
<item>
<title>Answered: Making Directories, in UNIX</title>
<link>http://prepare4interview.com/763/making-directories-in-unix#a764</link>
<description>mkdir (make directory)&lt;br /&gt;
&lt;br /&gt;
We will now make a subdirectory in your home directory to hold the files you will be creating and using in the course of this tutorial. To make a subdirectory called unixstuff in your current working directory type&lt;br /&gt;
&lt;br /&gt;
% mkdir unixstuff&lt;br /&gt;
&lt;br /&gt;
To see the directory you have just created, type&lt;br /&gt;
&lt;br /&gt;
% ls</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/763/making-directories-in-unix#a764</guid>
<pubDate>Sat, 24 Jul 2010 09:31:33 +0000</pubDate>
</item>
<item>
<title>Answered: Listing files and directories, in UNIX</title>
<link>http://prepare4interview.com/761/listing-files-and-directories-in-unix#a762</link>
<description>ls (list)&lt;br /&gt;
---------&lt;br /&gt;
When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved.&lt;br /&gt;
&lt;br /&gt;
To find out what is in your home directory, type&lt;br /&gt;
&lt;br /&gt;
% ls (short for list)&lt;br /&gt;
&lt;br /&gt;
The ls command lists the contents of your current working directory.&lt;br /&gt;
&lt;br /&gt;
There may be no files visible in your home directory, in which case, the UNIX prompt will be returned. Alternatively, there may already be some files inserted by the System Administrator when your account was created.&lt;br /&gt;
&lt;br /&gt;
ls does not, in fact, cause all the files in your home directory to be listed, but only those ones whose name does not begin with a dot (.) Files beginning with a dot (.) are known as hidden files and usually contain important program configuration information. They are hidden because you should not change them unless you are very familiar with UNIX!!!&lt;br /&gt;
&lt;br /&gt;
To list all files in your home directory including those whose names begin with a dot, type&lt;br /&gt;
&lt;br /&gt;
% ls -a&lt;br /&gt;
&lt;br /&gt;
ls is an example of a command which can take options: -a is an example of an option. The options change the behaviour of the command. There are online manual pages that tell you which options a particular command can take, and how each option modifies the behaviour of the command.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/761/listing-files-and-directories-in-unix#a762</guid>
<pubDate>Sat, 24 Jul 2010 09:30:06 +0000</pubDate>
</item>
<item>
<title>Answered: Explain iostat, vmstat and netstat.</title>
<link>http://prepare4interview.com/519/explain-iostat-vmstat-and-netstat#a537</link>
<description>Iostat reports on terminal, disk and tape I/O activity.&lt;br /&gt;
Vmstat reports on virtual memory statistics for processes, disk, tape and CPU activity.&lt;br /&gt;
Netstat reports on the contents of network data structures.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/519/explain-iostat-vmstat-and-netstat#a537</guid>
<pubDate>Tue, 20 Jul 2010 20:13:25 +0000</pubDate>
</item>
<item>
<title>Answered: Briefly, how do you install Oracle software on UNIX.</title>
<link>http://prepare4interview.com/523/briefly-how-do-you-install-oracle-software-on-unix#a535</link>
<description>1. Log onto you computer as a member of the administrative group that is authorized to install Oracle software and create and run the database.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
2. Insert the distribution CD for the database into your CD drive. The Autorun window will appear automatically. &lt;br /&gt;
Select Install/Deinstall Products.&lt;br /&gt;
&lt;br /&gt;
Note: If you are downloading from Oracle’s download site, follow the instructions given on the Web site.&lt;br /&gt;
&lt;br /&gt;
3. The Oracle Universal Installer Welcome window appears. Select Next to begin the installation of your software&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
4. On UNIX and Linux installations, the Specify Inventory directory and credentials window appears. Enter the full path of the directory in which to install the Oracle &lt;br /&gt;
software or accept the default. Enter the name of an operating system group that has write permission to the directory. Click Next. Click OK.&lt;br /&gt;
&lt;br /&gt;
5. A dialog page appears. &lt;br /&gt;
Open a new terminal window, log in as root, and run the orainstRoot.sh script as instructed in the dialog page. When the script finishes, return to the Oracle Universal &lt;br /&gt;
Installer page and click Continue.&lt;br /&gt;
&lt;br /&gt;
6. The Specify File Locations page appears. Enter the Oracle home name and directory path in which to install the Oracle software or accept the default. Click Next.&lt;br /&gt;
&lt;br /&gt;
7. The Select Installation Type page appears. Select Enterprise Edition or Standard Edition as appropriate for your environment. Click Next. &lt;br /&gt;
&lt;br /&gt;
8. The installer will now verify that your system meets all the minimum requirements for installing and configuring the chosen products. Correct any reported issues before continuing. Click Next.&lt;br /&gt;
&lt;br /&gt;
9. The Select Database Configuration page appears. Select the starter database type of General Purpose, Transaction Processing, or Data Warehouse. Click Next.&lt;br /&gt;
&lt;br /&gt;
10. The Specify Database Configuration Options page appears. Enter the Global Database Name and SID in the Database Naming section. Select the character set in the Database Character Set section. Select Create database with &lt;br /&gt;
Sample Schemas to install the Sample schemas. Click Next.&lt;br /&gt;
&lt;br /&gt;
11. The Select Database Management Option page appears. Select Use Database Control for Database Management. Click Next.&lt;br /&gt;
&lt;br /&gt;
12. The Specify Database File Storage Option page appears. Select File System, Automatic Storage Management, or Raw Devices as appropriate to your environment. Click Next.&lt;br /&gt;
&lt;br /&gt;
13. The Specify Backup and Recovery Options page appears. Select Do not enable Automated backups to configure your own backup schedule. Click Next.&lt;br /&gt;
&lt;br /&gt;
14. The Specify Database Schema Passwords page appears. Select Use different passwords for these accounts and enter passwords for the administrative users or select Use the same password for all the accounts and enter the password. Click Next.&lt;br /&gt;
&lt;br /&gt;
15. The Summary page appears containing a list of the products to be installed. Click Install to begin the installation.&lt;br /&gt;
&lt;br /&gt;
16. You will see the progress window.&lt;br /&gt;
&lt;br /&gt;
17. The Configuration Assistants page appears. Allow the assistants to execute. They configure your network, start an Oracle Net Services listener process for connecting to the database, create the database and configure management tools.&lt;br /&gt;
&lt;br /&gt;
18. A page showing a progress bar for database creation appears.&lt;br /&gt;
&lt;br /&gt;
19. When the database creation is finished, a page containing information about your database appears. Review this list. You may click on Password Management at the bottom of the page if you want to unlock or change passwords for database accounts. Otherwise click OK.&lt;br /&gt;
&lt;br /&gt;
20. A dialog page appears.&lt;br /&gt;
&lt;br /&gt;
Open a new terminal window, log in as root, and run the root.sh script. When the script finishes, return to the Oracle Universal Installer page and click OK.&lt;br /&gt;
&lt;br /&gt;
21. The End of Installation page appears with important information about Web application port numbers.&lt;br /&gt;
&lt;br /&gt;
22. Click Yes to exit.&lt;br /&gt;
&lt;br /&gt;
23. You have now completed the installation of Oracle software and database creation.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/523/briefly-how-do-you-install-oracle-software-on-unix#a535</guid>
<pubDate>Tue, 20 Jul 2010 10:03:05 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between a soft link and a hard link in UNIX?</title>
<link>http://prepare4interview.com/517/what-is-the-difference-between-soft-link-and-hard-link-in-unix#a533</link>
<description>Hard Links :&lt;br /&gt;
----------------&lt;br /&gt;
1. All Links have same inode number.&lt;br /&gt;
2.ls -l command shows all the links with the link column(Second) shows No. of links.&lt;br /&gt;
3. Links have actual file contents&lt;br /&gt;
4.Removing any link just reduces the link count but doesn't affect other links.&lt;br /&gt;
&lt;br /&gt;
Soft Links(Symbolic Links) :&lt;br /&gt;
--------------------------------------&lt;br /&gt;
1.Links have different inode numbers.&lt;br /&gt;
2. ls -l command shows all links with second column value 1 and the link points to original file.&lt;br /&gt;
3. Link has the path for original file and not the contents.&lt;br /&gt;
4.Removing soft link doesn't affect anything but removing original file the link becomes dangling link which points to non-existant file.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/517/what-is-the-difference-between-soft-link-and-hard-link-in-unix#a533</guid>
<pubDate>Tue, 20 Jul 2010 09:52:54 +0000</pubDate>
</item>
<item>
<title>Answered: Explain the read, write, and execute permissions on a UNIX directory</title>
<link>http://prepare4interview.com/516/explain-the-read-write-execute-permissions-unix-directory#a531</link>
<description>Read allows you to see and list the directory contents. Write allows you to create, edit and delete files and sub-directories in the directory. Execute gives you the previous read/write permissions plus allows you to change into the directory and execute programs or shells from the directory.</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/516/explain-the-read-write-execute-permissions-unix-directory#a531</guid>
<pubDate>Tue, 20 Jul 2010 09:48:25 +0000</pubDate>
</item>
<item>
<title>Answered: How do you execute a UNIX command in the background?</title>
<link>http://prepare4interview.com/514/how-do-you-execute-a-unix-command-in-the-background#a529</link>
<description>In Unix, a background process executes independently of the shell, leaving the terminal free for other work. To run a process in the background, include an &amp;nbsp;&amp;amp; &amp;nbsp;(an ampersand) at the end of the command you use to run the job. Following are some examples:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* To run the count program, which will display the process identification number of the job, enter: count &amp;amp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* To check the status of your job, enter: ps&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* To bring a background process to the foreground, enter: fg&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* If you have more than one job suspended in the background, enter: fg %#&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Replace &amp;nbsp;# &amp;nbsp;with the job number, as shown in the first column of the output of the jobs command.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* You can kill a background process by entering: kill PID&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Replace PID with the process ID of the job. If that fails, enter the following:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;kill -KILL PID&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* To determine a job's PID, enter: jobs -l&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* If you are using sh, ksh, bash, or zsh, you may prevent background processes from sending error messages to the terminal. Redirect the output to /dev/null using the following syntax: count 2&amp;gt; /dev/null &amp;amp;</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/514/how-do-you-execute-a-unix-command-in-the-background#a529</guid>
<pubDate>Tue, 20 Jul 2010 09:46:57 +0000</pubDate>
</item>
<item>
<title>Answered: How do you list the files in an UNIX directory while also showing hidden files?</title>
<link>http://prepare4interview.com/513/how-list-files-unix-directory-while-also-showing-hidden-files#a527</link>
<description>--------------&lt;br /&gt;
ls -ltra&lt;br /&gt;
--------------</description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/513/how-list-files-unix-directory-while-also-showing-hidden-files#a527</guid>
<pubDate>Tue, 20 Jul 2010 09:40:48 +0000</pubDate>
</item>
<item>
<title>Give two UNIX kernel parameters that effect an Oracle install</title>
<link>http://prepare4interview.com/522/give-two-unix-kernel-parameters-that-effect-oracle-install</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/522/give-two-unix-kernel-parameters-that-effect-oracle-install</guid>
<pubDate>Tue, 20 Jul 2010 09:32:32 +0000</pubDate>
</item>
<item>
<title>How would you change all occurrences of a value using VI, in UNIX?</title>
<link>http://prepare4interview.com/521/how-would-you-change-all-occurrences-of-value-using-vi-in-unix</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/521/how-would-you-change-all-occurrences-of-value-using-vi-in-unix</guid>
<pubDate>Tue, 20 Jul 2010 09:32:08 +0000</pubDate>
</item>
<item>
<title>Give the command to display space usage on the UNIX file system.</title>
<link>http://prepare4interview.com/518/give-the-command-to-display-space-usage-the-unix-file-system</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/518/give-the-command-to-display-space-usage-the-unix-file-system</guid>
<pubDate>Tue, 20 Jul 2010 09:30:23 +0000</pubDate>
</item>
<item>
<title>What UNIX command will control the default file permissions when files are created?</title>
<link>http://prepare4interview.com/515/unix-command-control-default-permissions-when-files-created</link>
<description></description>
<category>UNIX Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/515/unix-command-control-default-permissions-when-files-created</guid>
<pubDate>Tue, 20 Jul 2010 09:29:06 +0000</pubDate>
</item>
</channel>
</rss>
