Linux command
udiskie 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
udiskie --tray --notify
Example
udiskie --smart-tray
Example
udiskie --no-automount --tray
Example
udiskie --config [path/to/config.yml]
Example
udiskie --password-prompt '[command]'
Example
udiskie --verbose
说明
udiskie is a user-level automounter for removable media using udisks2. It automatically mounts USB drives, optical discs, and other removable devices when they are inserted. The daemon can show a system tray icon for easy device management and send desktop notifications when devices are mounted or unmounted. Configuration is read from ~/.config/udiskie/config.yml by default.
参数
- -h, --help
- Display help message and exit
- -V, --version
- Show version information and exit
- -v, --verbose
- Enable verbose output
- -q, --quiet
- Suppress output messages
- -c _FILE_, --config=_FILE_
- Use specified configuration file
- -C, --no-config
- Ignore all configuration files
- -a, --automount
- Enable automatic mounting of new devices (default)
- -A, --no-automount
- Disable automatic mounting of new devices
- -n, --notify
- Enable pop-up notifications
- -N, --no-notify
- Disable pop-up notifications
- -t, --tray
- Show system tray icon
- -s, --smart-tray
- Show tray icon that auto-hides when there is no action available
- -T, --no-tray
- Disable tray icon (default)
- -f _PROGRAM_, --file-manager=_PROGRAM_
- Set program to open mounted directories
- -F, --no-file-manager
- Disable directory browsing
- -p _COMMAND_, --password-prompt=_COMMAND_
- Set command for password retrieval (LUKS devices)
- -P, --no-password-prompt
- Prevent unlocking of LUKS encrypted devices
- --appindicator
- Use AppIndicator3 for the status icon
- --password-cache _MINUTES_
- Cache passwords for the specified number of minutes
- --no-password-cache
- Disable password caching
- --event-hook _COMMAND_
- Execute command on device events
FAQ
What is the udiskie command used for?
udiskie is a user-level automounter for removable media using udisks2. It automatically mounts USB drives, optical discs, and other removable devices when they are inserted. The daemon can show a system tray icon for easy device management and send desktop notifications when devices are mounted or unmounted. Configuration is read from ~/.config/udiskie/config.yml by default.
How do I run a basic udiskie example?
Run `udiskie --tray --notify` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -h, --help do in udiskie?
Display help message and exit