|
what is '1000 projects'?
'fullinterview.com' is a educational content website dedicated to finding and realizing final year projects for btech, be, mtech, mca students, here you can search, find your projects and get guidance from experts the below are the different technological projects.
visual Studio projects
.net projects,
asp projects,
c & ds projects,
c++ projects (all),
cold fusion projects,
delphi projects,
java projects,
perl projects,
php projects,
sql projects,
vc++ projects,
visual basic projects.
how it works?
well, everything on this site is submitted by the student and professional community. after you submit your project, it is being verified and approved by our administrator. after approval, other people can read/discuss it, save to favorites.
more number of projects?
here you can find morethan 1000 projects on different technologies, if u want to get more projects please visit our sister sites www.fullinterview.com & Chetanasprojects.com
Category Articles
Write a shell script to identify the given string is palindrome or not?
Added on Tue, Dec 15, 2009
Print("Please enter a string "); $input_string = <STDIN>; chop($input_string); $rev_string = reverse($input_string); if($input_string eq $rev_string){ print("The string is a palindrome"); }else{ print("The string is NOT a palindrome"... Read More
How do you schedule a command to run at 4:00 every morning?
Added on Tue, Dec 15, 2009
Step 1. Set environemen variable EDITOR=vi if not set Step 2. Give command crontab -e Step 3. Add following entry at the end 0 4 * * * <Your command to run at 4:00 am morning> Read More
If you have a string "one two three", which shell command would you use to extract the strings
Added on Tue, Dec 15, 2009
echo $string | cut -d" " -f1 echo $string | cut -d" " -f2 echo $string | cut -d" " -f3 Read More
Explain the working of Virtual Memory.
Added on Tue, Dec 15, 2009
Virtual memory like as a temparary storage area.It consists of page table.In this pages are divided into frames.It is a contingous memroy allocation.It is also called logical memory. Read More
What is the difference between a 'thread' and a 'process'?
Added on Tue, Dec 15, 2009
A process is a collection of virtual memory space, code, data, and system resources. A thread is code that is to be serially executed within a process. A processor executes threads, not processes, so each application has at least one process, and a... Read More
How Connect to a Database in Shell Programming?Please tell me Step by Step
Added on Tue, Dec 15, 2009
Suppose you are using db2 and ksh ---------------------------- #!/usr/bin/ksh connect to <Serve Name>:<Port NO>@<Instance Name> user <USERID> using <Passwd> ----------------------------------- If u have profile and... Read More
What is the difference between a shell variable that is exported and the one that is not exported?
Added on Tue, Dec 15, 2009
export LANG=C will make the variable LANG the global variable, put it into the global environment. all other processes can use it. LANG=C will change the value only in the current script. Read More
Explain about the Exit command?
Added on Tue, Dec 15, 2009
Every program whether on UNIX or Linux should end at a certain point of time and successful completion of a program is denoted by the output 0. If the program gives an output other than 0 it defines that there has been some problem with the... Read More
What does $? return?
Added on Tue, Dec 15, 2009
Will return the status of the command which is executed lastly. 0 => Success 2 => Error $? ---> will give the exit status of last background process ZERO for sucess. NON-ZERO for unsuccess Read More
Explain about echo command?
Added on Tue, Dec 15, 2009
Echo command is used to display the value of a variable. There are many different options give different outputs such as usage c suppress a trailing line, returns a carriage line, -e enables interpretation, returns the carriage. Read More
Explain about Login shell?
Added on Tue, Dec 15, 2009
Login shell is very useful as it creates an environment which is very useful to create the default parameters. It consists of two files they are profile files and shell rc files. These files initialize the login and non login files. Environment... Read More
Explain about shebang?
Added on Tue, Dec 15, 2009
Shebang is nothing but a # sign followed by an exclamation. This is visible at the top of the script and it is immediately followed by an exclamation. To avoid repetitive work each time developers use shebang. After assigning the shebang work we pass... Read More
What is this line in the shell script do ??? #!/bin/ksh
Added on Tue, Dec 15, 2009
This line is called as "Hash Bang" Statement. This tells the OS that the particular needs the respective shell for execution. If a script file has this hash bang statement along with execution permission, then this file can be run directly without... Read More
When you login to a c shell, which script would be run first? (before the terminal is ready for the user)
Added on Tue, Dec 15, 2009
For C shell , first /etc/.login script is run & after that ~/.login is run & then ~/.cshrc is run. Read More
What is use of "cut" command ??? give some examples. can we use "awk" or "sed" instead of "cut" ??? if yes then give some examples
Added on Tue, Dec 15, 2009
This utility is use to cut out columns from a table or fields from each line of a file. cut can be used as a filter. Either the -b, -c, or -f option must be specified. -b list The list following -b specifies byte positions (for instance, -b1... Read More
Different types of shells
Added on Tue, Dec 15, 2009
The Bourne shell (sh) , The C shell (csh) , The Korn shell (ksh) , The Z-Shell (zsh) , The POSIX shell, The Bourne Again SHell (Bash)null Read More
How will you list only the empty lines in a file (using grep)
Added on Tue, Dec 15, 2009
grep "^[ ]*$" filename.txt In character set (between [ and ] one space and tab is given) this command will gives all the blank line including those having space and tabs (if pressed)only Read More
What is MUTEX?
Added on Tue, Dec 15, 2009
1. Mutexes can synchronize threads within the same process or in other processes. 2. Mutexes can be used to synchronize threads between processes if the mutexes are allocated in writable memory and shared among the ... Read More
How do you remove a file?
Added on Tue, Dec 15, 2009
How do you remove a
Added on Tue, Dec 15, 2009
How do you send a mail message to somebody? -
Added on Tue, Dec 15, 2009
mail somebody@techinterviews.com -s ?Your subject? -c ?cc@techinterviews.com? Read More
What are PIDs?
Added on Tue, Dec 15, 2009
They are process IDs given to processes. A PID can vary from 0 to 65535. Read More
How do you stop a process?
Added on Tue, Dec 15, 2009
How do you refer to the arguments passed to a shell script?
Added on Tue, Dec 15, 2009
$1, $2 and so on. $0 is your script name. Read More
What is shell scripting?
Added on Tue, Dec 15, 2009
Shell scripting is used to program command line of an operating system. Shell Scripting is also used to program the shell which is the base for any operating system. Shell scripts often refer to programming UNIX. Shell scripting is mostly used to... Read More
How do you test for file properties in shell scripts?
Added on Tue, Dec 15, 2009
- -s filename tells you if the file is not empty, -f filename tells you whether the argument is a file, and not a directory, -d filename tests if the argument is a directory, and not a file, -w filename tests for writeability, -r filename tests for... Read More
State the advantages of Shell scripting?
Added on Tue, Dec 15, 2009
There are many advantages of shell scripting some of them are, one can develop their own operating system with relevant features best suited to their organization than to rely on costly operating systems. Software applications can be designed... Read More
How do you do Boolean logic operators in shell scripting?
Added on Tue, Dec 15, 2009
- ! tests for logical not, -a tests for logical and, and -o tests for logical or. Read More
What?s a way to do multilevel if-else?s in shell scripting?
Added on Tue, Dec 15, 2009
if {condition} then {statement} elif {condition} {statement} fi Read More
What are the disadvantages of shell scripting?
Added on Tue, Dec 15, 2009
There are many disadvantages of shell scripting they are * Design flaws can destroy the entire process and could prove a costly error. * Typing errors during the creation can delete the entire data as well as partition data. * Initially process is... Read More
How do you write a for loop in shell?
Added on Tue, Dec 15, 2009
or {variable name} in {list} do {statement} done Read More
Explain about the slow execution speed of shells?
Added on Tue, Dec 15, 2009
Major disadvantage of using shell scripting is slow execution of the scripts. This is because for every command a new process needs to be started. This slow down can be resolved by using pipeline and filter commands. A complex script takes much... Read More
How do you write a while loop in shell?
Added on Tue, Dec 15, 2009
while {condition} do {statement} done Read More
Give some situations where typing error can destroy a program?
Added on Tue, Dec 15, 2009
There are many situations where typing errors can prove to be a real costly effort. For example a single extra space can convert the functionality of the program from deleting the sub directories to files deletion. cp, cn, cd all resemble the same... Read More
How does a case statement look in shell scripts? -
Added on Tue, Dec 15, 2009
case {variable} in {possible-value-1}) {statement};; {possible-value-2}) {statement};; esac Read More
For class I need to create the command line. cAN ANYONE HELP ME?
Added on Tue, Dec 15, 2009
Question : For class I need to create the command line. cAN ANYONE HELP ME? Using the commands ps, cut, tr and kill, along with pipes, write a command that will find all sleep processes running on the system and kill them. ... Read More
What are the different variables present in Linux shell?
Added on Tue, Dec 15, 2009
Variables can be defined by the programmer or developer they specify the location of a particular variable in the memory. There are two types of shells they are Systemvariables and user defined variables. System variables are defined by the system... Read More
Explain about GUI scripting?
Added on Tue, Dec 15, 2009
Graphical user interface provided the much needed thrust for controlling a computer and its applications. This form of language simplified repetitive actions. Support for different applications mostly depends upon the operating system. These... Read More
How do you define a function in a shell script? -
Added on Tue, Dec 15, 2009
function-name() { #some code here return } Read More
How does getopts command work?
Added on Tue, Dec 15, 2009
The parameters to your script can be passed as -n 15 -x 20. Inside the script, you can iterate through the getopts array as while getopts n:x option, and the variable $option contains the value of the entered option. Read More
Explain about Stdin, Stdout and Stderr?
Added on Tue, Dec 15, 2009
These are known as standard input, output and error. These are categorized as 0, 1 and 2. Each of these functions has a particular role and should accordingly functions for efficient output. Any mismatch among these three could result in a major... Read More
Explain about sourcing commands?
Added on Tue, Dec 15, 2009
Sourcing commands help you to execute the scripts within the scripts. For example sh command makes your program to run as a separate shell. .command makes your program to run within the shell. This is an important command for beginners and for... Read More
Explain about non-login shell files?
Added on Tue, Dec 15, 2009
The non login shell files are initialized at the start and they are made to run to set up variables. Parameters and path can be set etc are some important functions. These files can be changed and also your own environment can be set. These functions... Read More
Explore about Environment variables?
Added on Tue, Dec 15, 2009
Environment variables are set at the login time and every shell that starts from this shell gets a copy of the variable. When we export the variable it changes from an shell variable to an environment variable and thesevariables are initiated at the... Read More
What is the difference between writing code in shell and editor
Added on Tue, Dec 15, 2009
Code in the script (Shell is interprted) as shell is a interpreter where as editor is not inter preter certain set of commands(predefined) are used to handle editor Read More
What is INODE?
Added on Tue, Dec 15, 2009
The inode is the focus of all file activity in the file system. There is a unique inode allocated for each active file, each current directory, each mounted-on file, text file, and the root. An inode is "named" by its device/i-number pair. Read More
What does $# stand for?
Added on Tue, Dec 15, 2009
$# means, number of positional parameters set Read More
What is $*
Added on Tue, Dec 15, 2009
$1: the 1st parameter $2: the 2nd parameter ... $* All parameters in the command line Read More
How do u open a read only file in Unix?
Added on Tue, Dec 15, 2009
vi filename e.g vi abc.txt but you cannot write to it easy way if file is small cat filename and contents is display on screen Read More
How do you read arguments in a shell program - $1, $2 ...
Added on Tue, Dec 15, 2009
Shell script accepts parameters in following format... $1 : first $2 : second....so on upto $9 : 9th param whereas $0 : gives script/function name If your script has more than 9 params then accept in following way... ${12} : 12th param ${18} ... Read More
How would you replace the n character in a file with some xyz?
Added on Tue, Dec 15, 2009
vi file name then go to command mode %s/n/xyz/g Read More
|