/dev/input/mouse0 or whatever number you may have if for some reason you have more of them. Plus the always present /dev/input/mice shared between all mouse devices.
Logically, everything stored to disc is a file. There are no physical folds or branching on a harddrive’s platter. Everything is (this is simplified) listed one at a time, end to end sequentially. A directory is just a special text file that lists all the addresses to files that are logically “inside of it”.
With journaling file systems (aka modern file systems), this is either replaced or superceeded by the journal.
Moreso, in Linux, most things are also logically treated as files. In Windows, some settings are stored in a special database known as the registry–Linux has not. It just has text files. In windows, devices are in the device manager, in Linux, devices are just another directory. In Windows you have a special task manager to view open processes, in Linux we have /proc which is a virtual directory. Windows: user permissions are managed with the active directory application. Linux: file permissions. etc.
This means, instead of using special apps to view things, you can, if so inclined, just navigate and look at files using the usual terminal.
Though to add: many things in your file system are listed as “files” in a directory, but are completely virtual with varying ways on what they do when written to/read from. (Also, linux has streams and files, not only files)
E.g. /dev/null will read zeros, and discard data written to. But it has no physical backing.
“I use Linux as my operating system,” I state proudly to the unkempt, bearded man. He swivels around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme precision. “Actually,” he says with a grin, “Linux is just the kernel. You use GNU+Linux.” I don’t miss a beat and reply with a smirk, “I use Alpine, a distro that doesn’t include the GNU coreutils, or any other GNU code. It’s Linux, but it’s not GNU+Linux.”
The smile quickly drops from the man’s face. His body begins convulsing and he foams at the mouth as he drop to the floor with a sickly thud. As he writhes around he screams “I-IT WAS COMPILED WITH GCC! THAT MEANS IT’S STILL GNU!” Coolly, I reply: “If Windows was compiled with GCC, would that make it GNU?” I interrupt his response with “And work is being made on the kernel to make it more compiler-agnostic. Even if you were correct, you won’t be for long.”
With a sickly wheeze, the last of the man’s life is ejected from his body. He lies on the floor, cold and limp. I’ve womansplained him to death.
OK, I see you’re having some trouble. No sweat. We’re all friends here. Many of us don’t get it on the first try. Let me help you. It’s a symbolic representation of an actual physical object which you can buy here today. There’s a nice description at the store page with the following pic along with it:
So tell me, what do you call the object drawn in this picture, taken from a popular Linux operating system?
Say my name.
Evil GUI bloat
The ugly truth.
It’s a file.
Everything is a file!!
This mouse? Believe it or not, file.
/dev/input/mouse0
or whatever number you may have if for some reason you have more of them. Plus the always present/dev/input/mice
shared between all mouse devices.cat
/dev/input/mouse0
Computer mouse or live mouse? Yes
Straight to file.
I’ve always enjoyed this about my pathetic attempts to get into *nix, but what are directors, then? Are they somehow a ‘file’ as well?
Honest question - I’m just a Windows doofus
you are correct, directories are 4kb files
Logically, everything stored to disc is a file. There are no physical folds or branching on a harddrive’s platter. Everything is (this is simplified) listed one at a time, end to end sequentially. A directory is just a special text file that lists all the addresses to files that are logically “inside of it”.
With journaling file systems (aka modern file systems), this is either replaced or superceeded by the journal.
Moreso, in Linux, most things are also logically treated as files. In Windows, some settings are stored in a special database known as the registry–Linux has not. It just has text files. In windows, devices are in the device manager, in Linux, devices are just another directory. In Windows you have a special task manager to view open processes, in Linux we have /proc which is a virtual directory. Windows: user permissions are managed with the active directory application. Linux: file permissions. etc.
This means, instead of using special apps to view things, you can, if so inclined, just navigate and look at files using the usual terminal.
Though to add: many things in your file system are listed as “files” in a directory, but are completely virtual with varying ways on what they do when written to/read from. (Also, linux has streams and files, not only files) E.g. /dev/null will read zeros, and discard data written to. But it has no physical backing.
The academic truth.
deleted by creator
🏆
Hängeregister.
And I think that’s beautiful.
𝒟𝒾𝓇𝑒𝒸𝓉𝑜𝓇𝓎
… You are a folder.
… Directory?
OK, I see you’re having some trouble. No sweat. We’re all friends here. Many of us don’t get it on the first try. Let me help you. It’s a symbolic representation of an actual physical object which you can buy here today. There’s a nice description at the store page with the following pic along with it:
Oh shit when did they start selling directory themed novalty gifts?
OH it’s a PATH!
You wouldn’t download a folder
The fuck I wouldn’t! I’m gonna do it now out of spite!
This is an array of pretty pixels laid out in a fashion to appeal to the human eyes.
I call them yaru-icons. Just for all my Linux buddies without ubuntu.
I call them icons
𝒟𝒾𝓇𝑒𝒸𝓉𝑜𝓇𝓎