LFCS · Question #329
Which command CANNOT be used to mount a shared filesystem in your Linux environment?
The correct answer is E. cifsmount //server/share /mnt -o username=user. The cifsmount command is not a standard Linux utility for mounting shared filesystems; other commands like mount.cifs, mount -t cifs, mount -t smbfs, and smbmount are valid.
Question
Options
- Amount.cifs //server/share /mnt -o user=user
- Bmount -t cifs //server/share /mnt -o user=user
- Cmount -t smbfs //server/share /mnt -o username=user
- Dsmbmount //server/share /mnt -o username=user
- Ecifsmount //server/share /mnt -o username=user
How the community answered
(35 responses)- B3% (1)
- C3% (1)
- D6% (2)
- E89% (31)
Why each option
The `cifsmount` command is not a standard Linux utility for mounting shared filesystems; other commands like `mount.cifs`, `mount -t cifs`, `mount -t smbfs`, and `smbmount` are valid.
The `mount.cifs` command is a dedicated helper utility for mounting CIFS (SMB) shares and is part of the `cifs-utils` package.
The `mount -t cifs` command uses the generic `mount` command with the `-t` option to specify the CIFS filesystem type, which is a standard way to mount CIFS shares.
The `mount -t smbfs` command uses the generic `mount` command with the `-t` option to specify the `smbfs` filesystem type, which is an older but still valid way (often an alias to cifs) to mount SMB/CIFS shares.
The `smbmount` command was an older, dedicated utility for mounting SMB shares and is still present or aliased in some systems for compatibility, making it a valid although potentially deprecated option.
There is no standard or commonly recognized Linux command named `cifsmount` for mounting CIFS shares; this is an invalid command for the specified purpose.
Concept tested: Linux commands for mounting SMB/CIFS shares
Source: https://www.samba.org/samba/docs/current/manpages/mount.cifs.8.html
Topics
Community Discussion
No community discussion yet for this question.