1. Using Unix command how to display no of records in oracle?

>wc -l filename

1 abc 100
2 def 200
3 ghi 300
4 ijk 500

>wc -l file
4 file

2. How to find multiple string?

Use extended grep command

egrep 'searchstr1 | searchchstr2' file.txt

3. How do display only hidden files in Unix?

Hidden files will start a period (.) in their names. To
list them use -a option of ls command.

like, ls -ltra

4. How to know the ip address of user system?

nslookup <host_name>
e.g: nslookup ibm6

5. How to list all the hidden files?

ls -ald (In solaris)

ls - ltra (In unix)

6. What is a "parameter card" and what is useful for?

parateter card is a type of card used to provide voice
digital communication to radio stations for therir FMs

7. What is difference between SSH V1 and SSH V2? What are drawbacks of SSH V2?

V1: less secure ,
lacks a strong mechanism for ensuring the
integrity of the connection.
if machine name user ogged in from is present in one of the
follwing file then connection is established.
$HOME/.rhosts, $HOME/.shosts, /etc/hosts.equiv, or
V2:More secure
provides additional mechanisms for confidential-

8. What are the general Commands in using Unix OS for a beginner?

cat command:used to create and displaying the information
present in the files.
Syntax for file creation: cat>(filename)
Syntax for displaying information in those file: cat
Syntax for Appending data in that files: cat>>(filename)
ls command: to list the files present in the system.
ls :will list all the files present in that directory.
ls -l:for long listing of the files.
ls -a:to view hidden files.
ls -ld:to get the permission for the current directory.
ls -ltr:to get the latest file in the directory.
man command:to know more information about the cmds.
Syntax:man <cmd>
eg:man ls
touch: is also used to create the multiple empty files at a
Syntax:touch f{1..10}:creates 10 empty files with names
pwd:is used to know present working directory.
cd f1 :to changed to the directory f1.
mkdir <direcoty name>:to create new directory.
rmdir <directory name>:to remove directory when it is empty
rm <filename>:to remove the files.
rm -r <direcotry name>:to remove the files in that
directory recursively.
rm -f <directoryname>:to remove the files in that directory
cp <source> <destination>: to copy the contents of one file
to another
cp -rR <s> <d>:will copy the contents of one directory to
mv <s> <d>:will move the contents of one file to another.
ls -l|grep ^d:toget the list of directories.
ls -i|grep ^_:to get the list of files.
clear-used to clear the screen

10. What is the difference between NFS 3 and NFS 4? What are new features added in NFS4?

nfsv3 acces through udp protocol whereas nfsv4 acces through
TCP/IP protocol

Download Interview PDF