Linux command
feh 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View images
feh [image.jpg]
View directory as
feh -D [5] [directory]
Set wallpaper
feh --bg-scale [image.jpg]
Thumbnail mode
feh -t [directory]
Fullscreen mode
feh -F [image.jpg]
说明
feh is a lightweight, fast image viewer for X11. It supports slideshows, thumbnail browsing, montages, and setting desktop wallpapers through command-line control. The viewer handles multiple image formats and provides keyboard and mouse controls for navigation and zooming. It can read images from files, directories, stdin, or URLs. feh is particularly popular for setting wallpapers in window managers that lack built-in wallpaper support.
参数
- -F, --fullscreen
- Start in fullscreen mode.
- -D _SEC_, --slideshow-delay _SEC_
- Slideshow delay in seconds.
- -t, --thumbnails
- Thumbnail browser mode.
- --bg-scale _IMAGE_
- Fit image to screen (may distort).
- --bg-fill _IMAGE_
- Fill screen preserving aspect ratio (may crop).
- --bg-max _IMAGE_
- Scale to fit without cropping (may leave borders).
- --bg-center _IMAGE_
- Center image without scaling.
- --bg-tile _IMAGE_
- Tile image across screen.
- -g _WxH_, --geometry _WxH_
- Limit window size.
- -Z, --auto-zoom
- Zoom to fit window.
- -r, --recursive
- Recurse into directories.
- --help
- Display help information.
FAQ
What is the feh command used for?
feh is a lightweight, fast image viewer for X11. It supports slideshows, thumbnail browsing, montages, and setting desktop wallpapers through command-line control. The viewer handles multiple image formats and provides keyboard and mouse controls for navigation and zooming. It can read images from files, directories, stdin, or URLs. feh is particularly popular for setting wallpapers in window managers that lack built-in wallpaper support.
How do I run a basic feh example?
Run `feh [image.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -F, --fullscreen do in feh?
Start in fullscreen mode.