62
top 13 comments
sorted by: hot top new old
[-] ptz@dubvee.org 27 points 2 years ago* (last edited 2 years ago)

That's not how /dev/null works.

Try this:

sudo cat /dev/null > /Windows or if you really want to be sure:

sudo cat /dev/urandom > /Windows

[-] rrconkle@lemmy.zip 47 points 2 years ago* (last edited 2 years ago)

That's not how /dev/null works.

Try this:

sudo cat /dev/zero > /Windows

[-] sag@lemm.ee 21 points 2 years ago

Use sudo :)

[-] towerful@programming.dev 11 points 2 years ago

You need to use /dev/null as a Service for windows compatibility.
https://devnull-as-a-service.com/

[-] agent_flounder@lemmy.world 5 points 2 years ago

What are you trying to achieve?

[-] Samsy@lemmy.ml 7 points 2 years ago

A smile, obviously.

[-] baritone_edge@lemmy.ml 4 points 2 years ago

Correct me if im wrong, but I thought dev/null was to silence output.You sure you want to move those files there?

[-] AMDIsOurLord@lemmy.ml 4 points 2 years ago

/dev/null is nothing, empty void. If you move something there it just gets deleted

[-] hperrin@lemmy.world 9 points 2 years ago* (last edited 2 years ago)

You can’t move anything there, it’s a “character special file” that can’t be deleted. If you pipe something there, it does nothing. (As opposed to something like /dev/stdin, that prints what you pipe to it on stdin.) Character special files act kind of like named pipes, except they’re handled by the kernel on one side. They’re raw device files.

[-] AMDIsOurLord@lemmy.ml -4 points 2 years ago

It's a "null drive". Anything that goes in is just simply discarded and a EOF is sent in return. If you "move" a file there, it just gets discarded

[-] hperrin@lemmy.world 13 points 2 years ago* (last edited 2 years ago)

Just try it. I’m literally telling you the truth. It is not a drive, and you cannot move files to it. It doesn’t have a file system, and you can’t create one on it. It cannot be mounted like a drive. Drives are block special files, and /dev/null is a character special file, not a block special file.

[-] AMDIsOurLord@lemmy.ml 5 points 2 years ago

I see, you're right, you can't mv into it, but you can shove streams of data to it

[-] VinesNFluff@pawb.social 3 points 2 years ago

The conversation in this thread reminded me of a thing I saw on Reddit ages ago, of feeding /dev/random into aplay with some parameters I unfortunately forgot, to get a series of random noise that sounds almost musical.

Without the parameters you just get white noise sadly.

this post was submitted on 26 Mar 2024
62 points (90.8% liked)

linuxmemes

33001 readers
1862 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS