V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
obiwong
V2EX  ›  macOS

在命令行下,用什么命令能用Finder打开指定目录?

  •  
  •   obiwong · Apr 5, 2011 · 8919 views
    This topic created in 5501 days ago, the information mentioned may be changed or developed.
    要打开当前目录,Win下可以 「explorer .」,Gnome 可以「nautils .」

    Mac下试用/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder,未果
    8 replies    1970-01-01 08:00:00 +08:00
    leeiio
        1
    leeiio  
       Apr 5, 2011
    用open .
    lamengao
        2
    lamengao  
       Apr 5, 2011
    open
    jenux
        3
    jenux  
       Apr 5, 2011
    nautilus
    TashinV
        4
    TashinV  
    PRO
       Apr 5, 2011
    直接拖进terminal 就行了...
    Kymair
        5
    Kymair  
       Apr 5, 2011 via Android
    Linux下类似的命令是gnome-open,可以alias成o方便使用

    不仅可以打开目录,也可以用默认的程序打开文件
    kayue
        6
    kayue  
       Apr 5, 2011
    open . +1
    obiwong
        7
    obiwong  
    OP
       Apr 5, 2011
    @leeiio @lamengao 谢谢,open正是我想要的功能。

    @jenux @Kymair nautils是我的笔误,平时都是nau加TAB,nautilus从来没记对过,后天再试试gnome-open。

    @kayue 敲++比+1方便
    khotyn
        8
    khotyn  
       Apr 9, 2011
    Mac下可以用Open,会用默认程序打开文件。Ubuntu下对应的是xdg-open吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5677 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 01:34 · PVG 09:34 · LAX 18:34 · JFK 21:34
    ♥ Do have faith in what you're doing.