Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    I dont get /dev/pts/7 or similar with w command, but second way works for me Commented Feb 11, 2016 at 15:07
  • 3
    @edwardtorvalds The /proc/XXX/fd/1 is generally a soft link to the base device. Try using ls -l /proc/XXXX/fd/1 and see what it is pointing to. Does it have any relation to what appeared in the w command? Commented Feb 11, 2016 at 15:22
  • I am not relating w command with /proc/XXX/fd/0 I am relating w command with /dev/pts/7 Commented Feb 11, 2016 at 15:26
  • 4
    @edwardtorvalds I am saying that they are connected as /proc/XXX/fd/1 is supposed to be a soft link to whatever device the w command displays. What is the output of ls -l on it? Commented Feb 11, 2016 at 15:27
  • 1
    TTY information can also be found in the output from tty (only current) or who (all). Commented Mar 3, 2016 at 5:53