Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用的 ruby 库Rye在搜索字符串周围添加引号。所以而不是du -sh *查询变成du -sh '*'
du -sh *
du -sh '*'
我怎样才能逃脱星号?du -sh '\\*'不工作
du -sh '\\*'
我认为这样做应该是可能的
rbox = Rye::Box.new [...] rbox.disable_safe_mode rbox.execute 'du -sh *'