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 编写 shell,我需要知道是否有办法从登录到机器的用户那里获取 IP。我知道该命令who可以做到这一点,但我无法将其输出提取到变量中。有人可以给我一个想法吗?我迷路了!
who