Courseiva
Network Client ManagementmediumMultiple SelectObjective-mapped

LPIC-2 Network Client Management Practice Question

Which TWO commands can be used to connect to a Samba share from a Linux command line?

⚠ Common exam trap

Many candidates confuse sshfs (SSH-based) or nfsmount (NFS-based) with Samba tools, or assume ftp can access Samba shares, when only SMB/CIFS-specific commands like smbclient and mount.cifs are valid.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

smbclient

B is correct because smbclient is a command-line tool that uses the SMB/CIFS protocol to connect to Samba shares, allowing file transfers and directory listing. D is correct because mount.cifs is a helper program that mounts a Samba share to a local directory using the CIFS filesystem type, enabling direct file access via the kernel's cifs module.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • sshfs

    Why it's wrong here

    sshfs mounts a remote filesystem via SSH.

  • smbclient

    Why this is correct

    smbclient can connect to SMB shares and list files.

  • nfsmount

    Why it's wrong here

    nfsmount is not a standard command; mount -t nfs is used for NFS.

  • mount.cifs

    Why this is correct

    mount.cifs mounts a Samba share to a local directory.

  • ftp

    Why it's wrong here

    ftp is a file transfer protocol, not SMB.

About these practice questions

Courseiva writes every LPIC-2 question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.