Is this a temporary path, or will I be saving to the device permanently if I use this as my path? If i'm saving to the device permanently, how would I go about saving say - an audio file recorded with AVAudioRecorder - temporarily so that when I finish recording, I don't have an audio file saved to the device taking up space?
Trying to Google /dev/null didn't occur to you? There's even a Wikipedia article on it.
Yes, actually it did. Did it. Couldn't find anything. Came here. Got a quick simple answer. I'm not an idiot. It's because of answers like this I hesitate to actually use this forum.
Well, the first result when Googling "/dev/null" is: /dev/null - Wikipedia, the free encyclopedia ... So I'm not sure either what you searched for, or why you consider that Wiki article to not be "anything".
Also, what is the "quick and simple" answer you got here?
Well, the first result when Googling "/dev/null" is: /dev/null - Wikipedia, the free encyclopedia ... So I'm not sure either what you searched for, or why you consider that Wiki article to not be "anything".
Also, what is the "quick and simple" answer you got here?
Quote:
Originally Posted by sneaky
That's a pretty poor trolling attempt in all fairness......
Go ahead and save to /dev/null, it won't take up space
So how is his answer, calling you a troll and telling you to save files to null device (which basically destroys/discards any data passed to it) somehow a good answer, and me telling you to look at the Wikipedia article which very clearly explains what the null device is and how it is used, is somehow an insult to you and a reason why you hesitate to post on the forum?!
So how is his answer, calling you a troll and telling you to save files to null device (which basically destroys/discards any data passed to it) somehow a good answer, and me telling you to look at the Wikipedia article which very clearly explains what the null device is and how it is used, is somehow an insult to you and a reason why you hesitate to post on the forum?!
I was asking whether or not /dev/null was a temporary directory. He told me that it would not take up space if I saved there. This is what I wanted to know, and it was answered. Simple to the point answer. I'm not saying your answer was a bad one. I just take offense to people that have to belittle others by saying did Google occur to you.
It seems that you neither understood my last post, nor attempted to read the Wikipedia article. The null device is not a temporary folder. You can't "save" anything to it. Whatever data you send it will be discarded immediately. He was making fun when he said "it wont take up any space". It wont, because you'll lose the data right away.
I was asking whether or not /dev/null was a temporary directory. He told me that it would not take up space if I saved there. This is what I wanted to know, and it was answered. Simple to the point answer. I'm not saying your answer was a bad one. I just take offense to people that have to belittle others by saying did Google occur to you.
I think he was just giving you a heads up warning, since you didn't seem to understand the meaning of the original answer.
And /dev/null isn't internet lingo (well, I expect it probably is, but that's not its origin). It's a Unix thing. No one would ever write code to write to /dev/null. Its only use is to redirect output you don't care about from other tools so that it won't flood your console, or so it won't write an actual disk file that you aren't planning on ever looking at anyway.
(Also, if you've already googled something and either came up dry or just got results that didn't make any sense to you, it's always good to say that up front, to avoid getting the otherwise reasonable response "did you try googling?", or "did you check the docs?". Both of which can be and often are stated in much shorter, less friendly, acronyms.)
__________________ Recall It!Tag your notes. Tag your photos. Tag your thoughts. Tag your life.
Um,
So /dev/null is pretty infamous in the unix file system and it's generally safe to assume that if you have heard of /dev/null you know what it is. Hence the Trolling remark. I really thought that you were pulling a prank.
Sticking /dev/null into google will give us the wikipedia article starting with
Quote:
In Unix-like operating systems, /dev/null or the null device is a special file that discards all data written to it (but reports that the write operation succeeded) and provides no data to any process that reads from it (yielding EOF immediately).[1]
In programmer jargon, especially Unix jargon, it may also be called the bit bucket[2] or black hole.
So, yea, it is common to save to /dev/null, it will not take up any disk space. The retrieval of the *saved* data can be very tricky though.
So where did you hear about /dev/null and what did you hear about it?