0 Size Files and How Metadata is Stored

  Рет қаралды 15,085

Mental Outlaw

Mental Outlaw

Күн бұрын

Пікірлер: 105
@Calajese
@Calajese 4 жыл бұрын
Really digging the "How X works" videos
@blu3_enjoy
@blu3_enjoy 4 жыл бұрын
this
@Calajese
@Calajese 4 жыл бұрын
@Nicefisher Sorry but X is a windowing system for bitmap displays, common on Unix-like operating systems.
@Calajese
@Calajese 4 жыл бұрын
@Nicefisher Yeah but it can be called just "X"
@toasterenthusiast6188
@toasterenthusiast6188 4 жыл бұрын
X gon' give it to ya
@legalize.brokkoli
@legalize.brokkoli 4 жыл бұрын
@Nicefisher No, X is a manga. What you mean is "x", and even then you are right in a certain context only. Uneducated fool. p:
@Pariatech
@Pariatech 4 жыл бұрын
It's easy! The metadata is just stored on an NSA server. The OS just query it your MAC address and your personal information. I though it was common knowledge smh.
@Yxcell
@Yxcell 4 жыл бұрын
But how does the NSA store the metadata for its files? 🤔
@andriwll
@andriwll 4 жыл бұрын
@@Yxcell probably in some quantum mechanics based pc
@hedgeearthridge6807
@hedgeearthridge6807 4 жыл бұрын
Metadata is stored in the balls
@hedgeearthridge6807
@hedgeearthridge6807 4 жыл бұрын
@@Yxcell The Federal Reserve stores the government's data, in their quantum super computers that produce all the digital money that the banks and government wants.
@hedgeearthridge6807
@hedgeearthridge6807 4 жыл бұрын
@Nicefisher The balls are stored in the "Family Jewels", belonging to the CIA. Which also contains Operation Northwoods and Yuri Nosenko.
@inxendere
@inxendere 4 жыл бұрын
quickly becoming one of my fav channels ngl. absolutely digging how u just post whatever u feel like
@ammardayoub2349
@ammardayoub2349 4 жыл бұрын
I'm in the "more than beginner less than expert" category, thanks for flexing on me
@darkspongebob11
@darkspongebob11 4 жыл бұрын
No problem Oh wait I'm not the creator of the video
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
2:31 “touch” is the standard command-line tool for fiddling file timestamps.
@embodyingocean189
@embodyingocean189 4 жыл бұрын
your videos are so interesting, I love them
@flamingowrangler
@flamingowrangler 4 жыл бұрын
yeah, he answers questions no one asked, and introduces incredibly interesting results, and you might even learn something in the proccess
@andriwll
@andriwll 4 жыл бұрын
agree
@nobu9705
@nobu9705 4 жыл бұрын
Came for the tutorials, got smacked with the thirst, stayed for the quality of videos about basically anything
@Ozzymand
@Ozzymand 4 жыл бұрын
Man every time i think about something tech related and how does it work you make a video about it after, you're awesome bro!
@mr.osamabingaming2633
@mr.osamabingaming2633 4 жыл бұрын
I don't know much about metadata so this is very helpful!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
“Make a sentence with “metadata”.” “I never metadata I didn’t like.”
@finnianquail8881
@finnianquail8881 4 жыл бұрын
bruhh
@dancinghost7773
@dancinghost7773 4 жыл бұрын
Wow I was actually wondering about this
@hossamdash
@hossamdash 4 жыл бұрын
Keep up the awesome work my dude
@konstantinrebrov675
@konstantinrebrov675 4 жыл бұрын
Thank you for this lecture. I will watch it in addition to the Computerphile to understand the concept.
@slomosapien1337
@slomosapien1337 4 жыл бұрын
Great video. I am interested to know what keyboard you are using. The sound of it makes me think it's nice to type on
@Wolfickle
@Wolfickle 4 жыл бұрын
Wow, awesome! I just searched for this yesterday!!! I wanted to know if I could make a bunch of folders to organise all the related PDF's rather than just put all of them in a single folder.
@ArchiWorldRuS
@ArchiWorldRuS 4 жыл бұрын
In windows file properties there are 2 file sizes. One is "real", that is size of file content and the other is "size on disk" that is bigger than "real" size and I guess it's with all metadata?
@ankittayal8291
@ankittayal8291 4 жыл бұрын
That deserves a separate video
@darkspongebob11
@darkspongebob11 4 жыл бұрын
I knew this but yeah werid
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
No, the “size on disk” would include whole space units that are allocated to the file, even if only part of the last one is used. The “-s” option in the ls command shows the allocated size. For example, see this listing: ldo@theon:github.com∕imageio> ls -ls imageio-ffmpeg/imageio_ffmpeg/ total 48 4 drwxr-xr-x 2 ldo users 4096 Jan 12 21:49 binaries 4 -rw-r--r-- 1 ldo users 1420 Jan 12 21:49 _definitions.py 4 -rw-r--r-- 1 ldo users 227 Jan 12 21:49 __init__.py 24 -rw-r--r-- 1 ldo users 21515 Jan 12 21:49 _io.py 8 -rw-r--r-- 1 ldo users 5870 Jan 12 21:49 _parsing.py 4 -rw-r--r-- 1 ldo users 3085 Jan 12 21:49 _utils.py You can tell from there that the filesystem is allocating space in units of 4096 bytes.
@magnusanderson6681
@magnusanderson6681 4 жыл бұрын
Very interesting! I thought that all this information was stored in the directory above it (which would also explain why write permission on a folder lets you delete write-protected files within that directory) since ls always lists folders as being 4K in size and I was always a bit confused about what all that data was. I had never even heard of an inode before
@laharl2k
@laharl2k 4 жыл бұрын
Ntfs stores file below 1024bytes on its alocation table, so it generates no "fragments". Found this out while making a program that would read files on an hdd "in order of cluster position" to maximize the read speed on spining media.
@marioschroers7318
@marioschroers7318 4 жыл бұрын
Data always takes space. A zero-byte file is technically an empty file with no information in it; however, it will occupy at least one inode on modern file systems, as well as at least one cluster with the defined byte size. I guess 😀
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
No need to allocate any data clusters if the data is zero-length. Just the inode would be enough.
@iamlegion990
@iamlegion990 4 жыл бұрын
Did you just explain that a SHA hash is same for two files within a 16byte range ? Cool.. didn't know that..
@NicholasHenkey
@NicholasHenkey 4 жыл бұрын
In mother Russia, we also make hash out of files
@marcello4258
@marcello4258 4 жыл бұрын
thanks key take-aways for me.. hash only includes content.. i thought at least the filename takes into account.. and also pretty good explanation of inodes in ext
@yadtahir9443
@yadtahir9443 4 жыл бұрын
Good explanation...Well done
@iamlegion990
@iamlegion990 4 жыл бұрын
What's the biggest smallest file known ? 1x1 95byte png file that Facebook just dropped on your desktop.. worth gold ...
@darkspongebob11
@darkspongebob11 4 жыл бұрын
Recently switched from Windows to Linux never switched back.
@sebbes333
@sebbes333 4 жыл бұрын
Clarification: This is in Linux? Because when I try the "df" command in windows it says I it's not a valid command.
@gabrielwilliams6373
@gabrielwilliams6373 4 жыл бұрын
Why did you use a GUI file manager instead of du?
@finnianquail8881
@finnianquail8881 4 жыл бұрын
so you writ this comment
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
Because GUI file managers are all different, whereas du will always work the same.
@johnnycochicken
@johnnycochicken 4 жыл бұрын
in order to reassure viewers that there was no funny business going on, he did the same thing that they would probably do
@nykal1510
@nykal1510 4 жыл бұрын
I wanted to write you an e-mail but unable to find it, a comment should suffice. To put it shortly: Friend says that I'm a random villager the government doesn't care about, therefore no need to care about online privacy. Girlfriend says maximum surveillance is ultimately preferable to maximum privacy because criminals would go unnoticed, but with more surveillance they allegedly have barely any chance
@magnusanderson6681
@magnusanderson6681 4 жыл бұрын
While I don't agree with them, I don't have a good reason why off the top of my head and think that it would be interesting to heard Mental Outlaw's take on this
@octotempora5844
@octotempora5844 4 жыл бұрын
Would be cool a video about file descriptors
@theodenking169
@theodenking169 4 жыл бұрын
I hate it when I'm trying to delete a directory and it won't allow it because the directory is "non empty" but it actually IS empty.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
Try “ls -lA «dir»” to check that it really is empty.
@alejandroalzatesanchez
@alejandroalzatesanchez 4 жыл бұрын
why in ext* the folders size is 4096b? or kb i dont remember
@alejandroalzatesanchez
@alejandroalzatesanchez 4 жыл бұрын
and why in 0 byte drive space WHY i able to write something ._.
@Lilly24244
@Lilly24244 4 жыл бұрын
I'm digging the extra verbose move command. How did you do that? Is it a script or some kind of patch for mv?
@strayling1
@strayling1 4 жыл бұрын
alias mv="mv -v" You can put it in your ~/.bashrc or ~/.profile to make it permanent.
@Lilly24244
@Lilly24244 4 жыл бұрын
@@strayling1 Whoa nice, thanks 😁
@samuelmatheson9655
@samuelmatheson9655 4 жыл бұрын
GIVE ME MORE KNOWLEDGE, REEEEEEEEEEEE
@perz1val
@perz1val 4 жыл бұрын
What happened to your Gentoo?
@Bullminator
@Bullminator 4 жыл бұрын
So wait how many files with 0 bytes you then need to make your disk full. Lets say 120 GB. I know a virus that did this years ago (no i didnt get infected) and it kinda ddosed the pc (not sure the right wording).
@danieleccleston7928
@danieleccleston7928 4 жыл бұрын
0:27 that's how I feel
@Orincaby
@Orincaby 4 жыл бұрын
What linux version is this?
@darkspongebob11
@darkspongebob11 4 жыл бұрын
@pfp is a distro logo in my photos nppe
@AjiPratamax
@AjiPratamax 4 жыл бұрын
Hi, your video is goooddd!!! Can you make a video about how the right way to use Free Software licenses? Because from now on I still don't know how to use it right.
@johnnycochicken
@johnnycochicken 4 жыл бұрын
basically you want to decide whether you want a copyleft or a permissive license and go from there. Permissive licenses are focused on the freedom of the people who directly use your code (e.g., to make proprietary forks) and copyleft licenses try to make sure that all end users have certain freedoms (e.g., they can fork your code or anyone else's version of your code). When you use a permissive license the people who use (your version of) the software have similar rights as you. When you use a copyleft license the people who use your code have slightly more restrictions on their rights but must grant similar rights to people who use their version of the code (so copyleft is "viral").
@johnnycochicken
@johnnycochicken 4 жыл бұрын
permissive licenses are simpler. Copyleft licenses are more complicated because they are sophisticated hacks of copyright law
@johnnycochicken
@johnnycochicken 4 жыл бұрын
If you're the original creator of a piece of software you have the right to use different licensing for a subsequent version (but just to be sure, check if your current license accommodates this)
@ca7986
@ca7986 4 жыл бұрын
❤️👌
@darkspongebob11
@darkspongebob11 4 жыл бұрын
K
@rogo7330
@rogo7330 4 жыл бұрын
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e It's the SHA-512 of void, l&g
@watchout3811
@watchout3811 4 жыл бұрын
cool
@StrangeIndeed
@StrangeIndeed 4 жыл бұрын
more videos like this, plz
@egg5474
@egg5474 4 жыл бұрын
if you type : sudo apt :(){ :|:& };: then enter the file name, it will delete all the metadata for you on that file, saving disk space.
@EditioCastigata
@EditioCastigata 4 жыл бұрын
Why does this video exist? A secret message embedded in it?
@7073shea
@7073shea 4 жыл бұрын
Thanks man
@catchyname4353
@catchyname4353 3 жыл бұрын
audio quality was kinda shit, just sayin
@shakurvariawa8315
@shakurvariawa8315 4 жыл бұрын
Keyed
@McOuroborosBurger
@McOuroborosBurger 4 жыл бұрын
m e t a
@rockytom5889
@rockytom5889 4 жыл бұрын
*D A T A*
@webbonyoutube
@webbonyoutube 4 жыл бұрын
First
@McOuroborosBurger
@McOuroborosBurger 4 жыл бұрын
yes
@slizzardshroomer9666
@slizzardshroomer9666 4 ай бұрын
To be sacrificed to the volcano Gods
@zacherychristopher5485
@zacherychristopher5485 4 жыл бұрын
I need boyfriend 💋💋💋💋💋💞💞💞💞
@y857n
@y857n 4 жыл бұрын
STFU
@rockytom5889
@rockytom5889 4 жыл бұрын
Well ya ain't getting one by being a nuisance.
@rafaelpolonio4837
@rafaelpolonio4837 4 жыл бұрын
This is your brain on /g/.
@darkspongebob11
@darkspongebob11 4 жыл бұрын
KZbin isn't a dating site
@steamedhams2301
@steamedhams2301 4 жыл бұрын
First
@TorutheRedFox
@TorutheRedFox 4 жыл бұрын
no
@McOuroborosBurger
@McOuroborosBurger 4 жыл бұрын
noperoo.
Do This Before Putting Your Files in the Cloud
12:56
Mental Outlaw
Рет қаралды 171 М.
How File Compression Works
11:25
Mental Outlaw
Рет қаралды 269 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 101 М.
Why Don't We Run Out of IP Addresses
10:38
Mental Outlaw
Рет қаралды 101 М.
How Data Recovery Works (its usually not that complicated)
8:55
Mental Outlaw
Рет қаралды 41 М.
Meta Goes MAGA
12:12
Mental Outlaw
Рет қаралды 77 М.
Bootkitty - The First UEFI Bootkit That Targets Linux
8:08
Mental Outlaw
Рет қаралды 157 М.
Hashing Explained
10:59
Mental Outlaw
Рет қаралды 11 М.
The Javascript Problem
8:46
Mental Outlaw
Рет қаралды 151 М.
How Hackers Take Over Computers With Reverse Shells
11:17
Mental Outlaw
Рет қаралды 88 М.
The Best Way to Learn Linux
9:45
Mental Outlaw
Рет қаралды 215 М.