Bird
0
0

Given the commands below, what will be the output of mount | grep /media/usb?

medium📝 Command Output Q5 of 15
Linux CLI - Disk and Storage
Given the commands below, what will be the output of mount | grep /media/usb?
sudo mount /dev/sde1 /media/usb
mount | grep /media/usb
ANo output, device not mounted
Bmount: /media/usb: mount point does not exist
CError: permission denied
D/dev/sde1 on /media/usb type vfat (rw,nosuid,nodev,relatime)
Step-by-Step Solution
Solution:
  1. Step 1: Analyze mount command

    sudo mount /dev/sde1 /media/usb mounts the device on the directory if it exists and permissions allow.
  2. Step 2: Check output of mount | grep

    Since the device is mounted, mount | grep /media/usb will show the mount details including device, mount point, filesystem type, and options.
  3. Final Answer:

    /dev/sde1 on /media/usb type vfat (rw,nosuid,nodev,relatime) -> Option D
  4. Quick Check:

    Mounted device shows in mount output [OK]
Quick Trick: Mounted devices appear in mount output filtered by grep [OK]
Common Mistakes:
  • Assuming mount point doesn't exist
  • Expecting permission errors without sudo
  • Thinking no output means success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes