You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it's causing problems with some programs (I don't remember what exactly was tripped by this in original userland, but I'm trying to run gentoo userland, and emerge fails sanity checks due to this).
Additionally, it appears there's no way to modify /dev - it always results in Operation not permitted.
Reacted by Mark Gardner and Alan Jenkins
Reacted by Jonas Gröger, Patryk Golus, Magnificus36, Raees, azutake, Palmi Skowronski, Carlos Alexandro Becker and azhi
Maybe the whole idea behind the Linux/Ubuntu subsystem hasn't been fully implemented yet. The UNIX philosophy is that EVERYTHING is a file. For example, /dev/null is a virtual device file. This means that nothing, is something, and that something is represented in userland as a file.
Another side-effect: I can't build a different version of Perl, either manually or using the perlbrew package, because its configure script checks for /dev/null's usability.
Activity
jpyper commentedon Apr 7, 2016
Maybe the whole idea behind the Linux/Ubuntu subsystem hasn't been fully implemented yet. The UNIX philosophy is that EVERYTHING is a file. For example, /dev/null is a virtual device file. This means that nothing, is something, and that something is represented in userland as a file.
On my Debian system, I get the following:
john@phobos:~$ stat /dev/null
File: '/dev/null'
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 6h/6d Inode: 1037 Links: 1 Device type: 1,3
Access: (0666/crw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-04-06 20:33:12.884276144 -0700
Modify: 2016-04-06 20:33:12.884276144 -0700
Change: 2016-04-06 20:33:12.884276144 -0700
Birth: -
It looks like the Ubuntu subsystem doesn't see /dev/null as a "character special file" which I would think would redirect to >NUL on Windows.
jernejs commentedon Apr 7, 2016
/dev/null should be a character device with major 1 and minor 3, but it isn't in lxss, so tests like this fail:
poizan42 commentedon Apr 7, 2016
Shouldn't it be fine if /dev/null was simply a symlink to \Device\Null?
thanosk commentedon Apr 7, 2016
One side-effect of this breaks sshd (openssh-server), as also mentioned here: MicrosoftDocs/WSL#17
russalex commentedon Apr 11, 2016
The weird file is a known issue and something we intend to fix. It is currently on our backlog.
mjgardner commentedon Apr 19, 2016
Another side-effect: I can't build a different version of Perl, either manually or using the perlbrew package, because its configure script checks for /dev/null's usability.
Fix CVE-2026-26127: bump .NET runtime from 10.0.0 to 10.0.4
Fix CVE-2026-26127: bump .NET runtime from 10.0.0 to 10.0.4
Fix CVE-2026-26127: bump .NET runtime from 10.0.0 to 10.0.4 (#14421)
merge master -> feature/wsl-for-apps (#14465)
merge master -> feature/wsl-for-apps (#14537)
Merge latest master into feature/wsl-for-apps (#40254)
Add WSLCVolumes class to track volumes with Docker event-driven synch…