-
Database Connecion
How will you write a shell script to connect to SQL database?
-
UNIX Command for Delay
give UNIX command to wait for a specified number of seconds before exit.
-
How to find type of variable?
How to find out whether reference is pointing to a scalar, array or hash?
-
Print this array, sorted in reversed case-insensitive order...
You have unsorted array of strings, like:my @arr = qw(hello World Show must go on);Print this array, sorted in reversed case-insensitive order.
-
-
-
-
what is the difference between grep and find commands?
a)provides information on helpb)grep searches in a file whereas find searches for files and directories.c)both a) and b)d) none of the above
-
-
-
-
-
-
-
-
-
What is the difference between > and >> redirection operators ?
is the output redirection operator when used it overwrites while >> operator appends into the file.
-
What difference between cmp and diff commands?
cmp - Compares two files byte by byte and displays the first mismatchdiff - tells the changes to be made to make the files identical
-
Is it possible to restrict incoming message?
Yes, using the ‘mesg’ command.
-
What is redirection?
Directing the flow of data to the file or from the file for input or output.Example : ls > wc
-
What is a pipe and give an example?
A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of the preceding command to be passed as input to the following command. Example : ls -l | prThe output for a command ls is the standard input of pr. When a sequence of commands are combined using pipe, then it is called pipeline.