DFS
2022-11-17 00:48:08 UTC
I was looking at an article on process spawning, and the author used a
few examples. I tried them:
***@UbuntuWSL:~$ echo $$
11
***@UbuntuWSL:~$ ps fx
PID TTY STAT TIME COMMAND
11 pts/0 Ss 0:00 -bash
71 pts/0 R+ 0:00 \_ ps fx
***@UbuntuWSL:~$ ps fax
PID TTY STAT TIME COMMAND
1 ? Sl 0:00 /init
4 ? Sl 0:00 plan9 --control-socket 5 --log-level 4
--server-fd 6 --pipe-fd 8 --log-truncate
9 ? Ss 0:00 /init
10 ? S 0:00 \_ /init
11 pts/0 Ss 0:00 \_ -bash
72 pts/0 R+ 0:00 \_ ps fax
Was surprised by the last one, which looked like systemd-related
settings. But I hunted around and found 'plan9' is used because the
Microsoft WSL distros serve files using a variant of the Plan 9
filesystem protocol, and Windows is the client.
This is how you can read WSL Linux filesystems from Windows File
Explorer. But for some reason they don't show /bin and /lib directories.
few examples. I tried them:
***@UbuntuWSL:~$ echo $$
11
***@UbuntuWSL:~$ ps fx
PID TTY STAT TIME COMMAND
11 pts/0 Ss 0:00 -bash
71 pts/0 R+ 0:00 \_ ps fx
***@UbuntuWSL:~$ ps fax
PID TTY STAT TIME COMMAND
1 ? Sl 0:00 /init
4 ? Sl 0:00 plan9 --control-socket 5 --log-level 4
--server-fd 6 --pipe-fd 8 --log-truncate
9 ? Ss 0:00 /init
10 ? S 0:00 \_ /init
11 pts/0 Ss 0:00 \_ -bash
72 pts/0 R+ 0:00 \_ ps fax
Was surprised by the last one, which looked like systemd-related
settings. But I hunted around and found 'plan9' is used because the
Microsoft WSL distros serve files using a variant of the Plan 9
filesystem protocol, and Windows is the client.
This is how you can read WSL Linux filesystems from Windows File
Explorer. But for some reason they don't show /bin and /lib directories.