UNIX MCQs – Network Services (Part – 1)

UNIX Question and Answer – Network Services

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. What protocol is commonly used for secure remote access to UNIX systems?

a) FTP

b) NFS

c) SSH

d) Telnet

Answer: c) SSH

Explanation: SSH (Secure Shell) provides secure encrypted communication over a network and is commonly used for remote access to UNIX systems.


2. Which command is used to establish an SSH connection to a remote server?

a) ssh

b) scp

c) sftp

d) telnet

Answer: a) ssh

Explanation: The ssh command is used to establish a secure shell connection to a remote server in UNIX.


3. What is the default port number for SSH?

a) 20

b) 21

c) 22

d) 23

Answer: c) 22

Explanation: Port 22 is the default port number for SSH communication.


4. Which network service is commonly used for transferring files between a client and a server in UNIX?

a) SSH

b) Telnet

c) FTP

d) NFS

Answer: c) FTP

Explanation: FTP (File Transfer Protocol) is commonly used for transferring files between a client and a server in UNIX environments.


5. What is the main disadvantage of using FTP compared to SSH for file transfer?

a) Lack of encryption

b) Slower transfer speed

c) Incompatibility with UNIX systems

d) Higher resource usage

Answer: a) Lack of encryption

Explanation: FTP lacks encryption, making it less secure compared to SSH for file transfer over a network.


6. Which command is used to transfer files securely over SSH in UNIX?

a) scp

b) ftp

c) sftp

d) rsync

Answer: a) scp

Explanation: The scp (secure copy) command is used to securely transfer files between hosts over SSH in UNIX.


7. What does NFS stand for in the context of UNIX network services?

a) Network File System

b) Network File Sharing

c) Network File Security

d) Network File Server

Answer: a) Network File System

Explanation: NFS (Network File System) allows remote file systems to be mounted over a network and accessed as if they were local.


8. Which protocol is used by NFS for file sharing between UNIX systems?

a) SMB

b) FTP

c) NFS

d) HTTP

Answer: c) NFS

Explanation: NFS (Network File System) is the protocol used for file sharing between UNIX systems.


9. What is the primary advantage of using NFS for file sharing in UNIX environments?

a) Strong encryption

b) Low latency

c) Centralized storage management

d) Wide compatibility with other operating systems

Answer: c) Centralized storage management

Explanation: NFS allows for centralized storage management, enabling easy sharing of files and resources among multiple UNIX systems.


10. Which command is used to mount a remote NFS share in UNIX?

a) mount

b) nfs

c) share

d) access

Answer: a) mount

Explanation: The mount command is used to mount a remote NFS share onto a local directory in UNIX.


11. What does SFTP stand for in UNIX network services?

a) Secure File Transfer Protocol

b) Simple File Transfer Protocol

c) Secure FTP

d) SSH File Transfer Protocol

Answer: a) Secure File Transfer Protocol

Explanation: SFTP (Secure File Transfer Protocol) provides a secure method for transferring files over a network in UNIX using SSH encryption.


12. Which command is used to perform interactive file transfers over SSH in UNIX?

a) scp

b) ftp

c) sftp

d) rsync

Answer: c) sftp

Explanation: The sftp command is used for interactive file transfers over SSH in UNIX, providing a secure alternative to FTP.


13. What is the default port number for FTP?

a) 20

b) 21

c) 22

d) 23

Answer: b) 21

Explanation: Port 21 is the default port number for FTP (File Transfer Protocol) communication.


14. Which command is used to connect to an FTP server in UNIX?

a) connect

b) ftp

c) ssh

d) telnet

Answer: b) ftp

Explanation: The ftp command is used to connect to an FTP server in UNIX for file transfer operations.


15. Which network service allows multiple users to access and modify files simultaneously in UNIX?

a) SSH

b) FTP

c) NFS

d) Telnet

Answer: c) NFS

Explanation: NFS (Network File System) allows multiple users to access and modify files simultaneously in UNIX environments.


16. What is the primary disadvantage of using Telnet for remote access compared to SSH?

a) Lack of encryption

b) Slower connection speed

c) Limited compatibility

d) Higher resource usage

Answer: a) Lack of encryption

Explanation: Telnet lacks encryption, making it less secure compared to SSH for remote access to UNIX systems.


17. Which command is used to check the status of NFS-mounted file systems in UNIX?

a) mount

b) nfsstat

c) showmount

d) nfsstatus

Answer: b) nfsstat

Explanation: The nfsstat command is used to check the status of NFS-mounted file systems in UNIX.


18. What is the purpose of the showmount command in UNIX?

a) Display mounted file systems

b) Display NFS server statistics

c) Display NFS client statistics

d) Display network interfaces

Answer: a) Display mounted file systems

Explanation: The showmount command is used to display the list of mounted file systems on an NFS server in UNIX.


19. Which command is used to configure NFS exports on a UNIX system?

a) exportfs

b) nfsconfig

c) share

d) nfssetup

Answer: a) exportfs

Explanation: The exportfs command is used to configure NFS exports, allowing directories to be shared with remote clients in UNIX.


20. What is the purpose of the nfsstat command in UNIX?

a) Display NFS server statistics

b) Display NFS client statistics

c) Display network interfaces

d) Display mounted file systems

Answer: b) Display NFS client statistics

Explanation: The nfsstat command is used to display statistics about NFS client activity in UNIX.


21. Which command is used to configure an NFS server in UNIX?

a) nfsconfig

b) nfssetup

c) nfsd

d) nfs-server

Answer: a) nfsconfig

Explanation: The nfsconfig command is used to configure an NFS server in UNIX, setting up shared directories for remote access.


22. What is the primary purpose of the rsync command in UNIX network services?

a) Remote shell access

b) File synchronization

c) Remote file transfer

d) Network routing

Answer: b) File synchronization

Explanation: The rsync command is used for file synchronization and transfer between systems in UNIX environments.


23. Which command is used to synchronize files and directories between local and remote systems over SSH in UNIX?

a) scp

b) sftp

c) rsync

d) ftp

Answer: c) rsync

Explanation: The rsync command is used to synchronize files and directories between local and remote systems over SSH in UNIX.


24. What is the primary advantage of using rsync over traditional file transfer methods like FTP?

a) Higher transfer speed

b) Secure encryption

c) More efficient bandwidth usage

d) Better compatibility with Windows systems

Answer: c) More efficient bandwidth usage

Explanation: Rsync optimizes bandwidth usage by transferring only the differences between files, making it more efficient compared to FTP for large data transfers in UNIX.


25. Which command is used to transfer files between UNIX systems using the SSH protocol and maintain file permissions and ownership?

a) scp

b) sftp

c) rsync

d) ftp

Answer: a) scp

Explanation: The scp (secure copy) command is used to securely transfer files between UNIX systems using the SSH protocol while preserving file permissions and ownership.


26. Which command is used to display the routing table in UNIX?

a) route

b) netstat

c) ifconfig

d) arp

Answer: a) route

Explanation: The route command displays or manipulates the IP routing table in UNIX.


27. What is the purpose of the ifconfig command in UNIX?

a) Configure network interfaces

b) Display network interface information

c) Manage routing tables

d) Monitor network traffic

Answer: a) Configure network interfaces

Explanation: The ifconfig command is used to configure network interfaces in UNIX.


28. Which command is used to display information about active network connections in UNIX?

a) netstat

b) route

c) ifconfig

d) arp

Answer: a) netstat

Explanation: The netstat command displays information about active network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.


29. What is the purpose of the arp command in UNIX?

a) Display routing table

b) Display network interface information

c) Manipulate ARP cache

d) Configure network interfaces

Answer: c) Manipulate ARP cache

Explanation: The arp command is used to display and manipulate the Address Resolution Protocol (ARP) cache.


30. Which command is used to display information about network interfaces in UNIX?

a) netstat

b) route

c) ifconfig

d) arp

Answer: c) ifconfig

Explanation: The ifconfig command displays information about network interfaces, including their configuration and status.


31. What does FTP stand for in the context of UNIX network services?

a) File Transfer Protocol

b) Fast Transfer Protocol

c) Flexible Transfer Protocol

d) Functional Transfer Protocol

Answer: a) File Transfer Protocol

Explanation: FTP (File Transfer Protocol) is used for transferring files between a client and a server on a computer network.


32. Which command is used to connect to an FTP server in UNIX?

a) connect

b) ftp

c) ssh

d) telnet

Answer: b) ftp

Explanation: The ftp command is used to establish an FTP connection to a remote server in UNIX.


33. What is the default port number for FTP data transfer?

a) 20

b) 21

c) 22

d) 23

Answer: a) 20

Explanation: Port 20 is the default port number for FTP data transfer.


34. Which command is used to transfer files from a remote FTP server to a local system in UNIX?

a) get

b) put

c) mget

d) mput

Answer: a) get

Explanation: The get command is used to retrieve files from a remote FTP server in UNIX.


35. What is the purpose of the put command in UNIX FTP?

a) Upload files to a remote server

b) Download files from a remote server

c) Rename a file

d) Delete a file

Answer: a) Upload files to a remote server

Explanation: The put command is used to upload files from a local system to a remote FTP server in UNIX.


36. Which command is used to list files and directories on a remote FTP server in UNIX?

a) list

b) ls

c) dir

d) cd

Answer: b) ls

Explanation: The ls command is used to list files and directories on a remote FTP server in UNIX.


37. What is the purpose of the passive mode in FTP?

a) Faster data transfer

b) More secure connection

c) To initiate data connections from the client to the server

d) To initiate data connections from the server to the client

Answer: d) To initiate data connections from the server to the client

Explanation: Passive mode in FTP allows the server to initiate data connections to the client, which is useful when the client is behind a firewall.


38. Which command is used to delete files on a remote FTP server in UNIX?

a) delete

b) rm

c) del

d) mdelete

Answer: d) mdelete

Explanation: The mdelete command is used to delete multiple files on a remote FTP server in UNIX.


39. What does NFS stand for in UNIX network services?

a) Network File System

b) Network File Sharing

c) Network File Security

d) Network File Server

Answer: a) Network File System

Explanation: NFS (Network File System) allows remote file systems to be mounted over a network and accessed as if they were local.


40. Which protocol is used by NFS for file sharing between UNIX systems?

a) SMB

b) FTP

c) NFS

d) HTTP

Answer: c) NFS

Explanation: NFS (Network File System) is the protocol used for file sharing between UNIX systems.


41. What is the primary advantage of using NFS for file sharing in UNIX environments?

a) Strong encryption

b) Low latency

c) Centralized storage management

d) Wide compatibility with other operating systems

Answer: c) Centralized storage management

Explanation: NFS allows for centralized storage management, enabling easy sharing of files and resources among multiple UNIX systems.


42. Which command is used to mount a remote NFS share in UNIX?

a) mount

b) nfs

c) share

d) access

Answer: a) mount

Explanation: The mount command is used to mount a remote NFS share onto a local directory in UNIX.


43. What is the purpose of the umount command in UNIX?

a) Mount a file system

b) Unmount a file system

c) Check file system integrity

d) Display mounted file systems

Answer: b) Unmount a file system

Explanation: The umount command is used to detach a mounted file system in UNIX.


44. Which command is used to display information about NFS-mounted file systems in UNIX?

a) mount

b) nfsstat

c) showmount

d) nfsstatus

Answer: c) showmount

Explanation: The showmount command is used to display the list of mounted file systems on an NFS server in UNIX.


45. What is the purpose of the share command in UNIX?

a) Display NFS exports

b) Display NFS server statistics

c) Display NFS client statistics

d) Share directories with NFS clients

Answer: d) Share directories with NFS clients

Explanation: The share command is used to specify directories to be shared with NFS clients in UNIX.


46. Which command is used to display NFS server statistics in UNIX?

a) mount

b) nfsstat

c) showmount

d) nfsstatus

Answer: b) nfsstat

Explanation: The nfsstat command is used to display statistics about NFS server activity in UNIX.


47. What is the purpose of the nfsd daemon in UNIX?

a) Manage NFS client connections

b) Manage NFS server connections

c) Manage NFS exports

d) Manage NFS file locking

Answer: b) Manage NFS server connections

Explanation: The nfsd daemon is responsible for managing NFS server connections in UNIX.


48. Which command is used to check the status of NFS client connections in UNIX?

a) nfsstat

b) showmount

c) rpcinfo

d) nfsinfo

Answer: c) rpcinfo

Explanation: The rpcinfo command is used to query information about RPC (Remote Procedure Call) services, including NFS client connections, in UNIX.


49. What is the purpose of the rpcinfo command in UNIX?

a) Display NFS server statistics

b) Display NFS client statistics

c) Display information about RPC services

d) Display information about NFS file systems

Answer: c) Display information about RPC services

Explanation: The rpcinfo command is used to query information about RPC (Remote Procedure Call) services, including NFS, in UNIX.


50. Which command is used to configure NFS client settings in UNIX?

a) nfsconfig

b) mount

c) automount

d) nfsclient

Answer: b) mount

Explanation: The mount command is used to mount NFS file systems and configure NFS client settings in UNIX.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...