Finding the preferred application for a given file extension via unix shell commands

前端 未结 3 792
再見小時候
再見小時候 2021-01-15 14:43

this may not be strictly about programming, but if I find no ready-made solution it may become a programming task: On UNIX, what is a command-line method f

3条回答
  •  耶瑟儿~
    2021-01-15 15:06

    The answer differs depending on the desktop environment your using. Since you mentioned Okular, I'm going to assume you're using KDE. So try:

    kde-open 
    

    For GNOME, there is the equivalent:

    gnome-open 
    

提交回复
热议问题