简体   繁体   中英

How can I get currently attached screen session name?

我正在编写一个脚本,如果有的话,需要当前附加的屏幕会话名称。

You might want to check answers here: How do I display the current "session" name or "sockname" of a screen session in the status bar?

In short the $STY environment variable is what you are looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM