I.)Explain about commands given below : ssh , telnet, scp , sftp , ftp, ifconfig, whois , ping , traceroute , , , ssh: Secure Shell client (remote login program) telnet: user interface that communicates with remote system using telnet protocol. telnet hostname Connects to the remote host. Scp: Secure copy (remote copy) Sftp: Secure File Transfer Program ftp:file tranfer protocol. Ifconfig: Configure a network interface Whois: whois lists the information about the domain owner of the given domain. Ping: a network connection. Traceroute:track root to host. Grep: Search file(s) for lines that match an extended expression. Find: Search for files that meet a desired criteria Diff:display the difference between two files.

2) a to connect to MYSQL Database and display all the tables and a specific record in any table. A. Command=`mysql –B –D $DBDATABASE –u $DBPASSWORD –e “database commands` Print $command

II.) Multiple choice questions:

1)Which command is used to display all the files? A. B. C. ls -a D. E. dir

2) How do you get help about the command ? A. help cp B. man cp C. cp

3) Which command is used to modify the access of a file? A. B. C. D. E. grep

4)What option can you use with the Unix "ls" command to display file attributes? A. "-d" B. "-a" C. "-l" D. "-x"

5)To set the default permission flags for new files in a directory to "only owner has access," what Unix command would you use? A. 733 B. umask 700 C. umask 033 D. umask 077 6) How do you rename a file from new to old? A. new old B. cp new old C. rn new old

7) How do you display the contents of a file myfile.txt? A. type myfile.txt B. list myfile.txt C. less myfile.txt D. cat myfile.txt 8) How do you create a new directory called flower? A. newdir flower B. flower C. crdir flower 9) What is the command to search all files in your current directory for the word plasmodium? A. grep plasmodium * B. find plasmodium -all C. lookup plasmodium * 10)How do you rename file "new" in file "old"? A. mv new old B. cp new old C. rn new old 11)What does cd .. do? A. Not a valid UNIX command B. Logs out of the computer C. Changes the working directory to the login directory D. Changes the working directory to the parent of the current working directory 12)What is the correct command to list all files including invisible ones? A. ls -i B. ls -a C. ls -all D. listfiles –all 13)Command to change owner of the file in UNIX. A. chowner B. chown C. Both D. None 14)What is the purpose of the shell? A. The shell keeps the end users from accessing the kernel for security reasons. B. The shell protects the kernel from the shortcomings of the user. C. The shell allows the user to do things that the kernel could not accommodate. D. All of above 15)How do you delete a file? A. touch filename B. filename C. less filename D. dl filename 16)How can you append the output of a command to a file? A. command > file B. command < file C. command << file D. command <> file E. command >> file 17)What does the command ls do? A. Display of the contents of a file B. Display of files and folders, present in the folder where you are C. Opening a file D. Shows a calendar

18)With what can you stop a process? A. B. Delete C. Shutdown D. Stop 19)With what command you can see what folder you are in? A. B. place C. whereami D. map 20)Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3? A. chmod u+x emp[l-3] B. chmod 777 emp* C. chmod u+r ??? emp D. chmod 222 emp? E. None of the above

21)Which of the following commands is used to display the directory attributes rather than its contents? A. ls -1 -d B. ls -1 C. ls -x D. ls -F E. None of the above

22)The Octal number to be given alogn with chmod command to a file readable, writable and executable to the owner, readable and executable to group and others is: A. 000 B. 755 C. 744 D. 555 E. None of the above 23)Which of the following is not a communication command. A. write B. C. mail D. grep E. None of the above 24)Which symbol is used to separate than one command in the same command line? A. $ B. # C. : D. ; E. None of the above 25) Which command is used to display the characteristics of a process? A. pid B. C. D. au E. None of the above 26)Which command is used to display and create files? A. cat B. C. D. lyrix E. None of the above 27)The command used to compare the files is known as A. comp B. C. do D. ccp E. None of the above 28)Which commands is used to assign executable permission to all of the files named "letter"? A. chmod ugo+r letter B. chmod ugo+rw letter C. chmod u+x letter D. chmod ugo+x letter E. None of the above 29)The command to count the number of files in the current directory by using pipes, is A. ls | B. ls -l | ws -l C. ls | wc -w D. ls | ws -c E. None of the above 30)Which of the following commands can be used to get information about all users are currently logged into the system? A. which B. who C. who am i D. 1 /u E. None of the above