Shop OBEX P1 Docs P2 Docs Learn Events
OT- Linux file system tagging — Parallax Forums

OT- Linux file system tagging

VonSzarvasVonSzarvas Posts: 3,275
edited 2015-08-19 15:31 in General Discussion
This discussion was created from comments split from: "Popular" tags.

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-08-17 19:38
    Hmmm....... I was looking in the properties of an oddly behaving Linux file today and was shocked to discover that Linux has a tag feature for files that has been slyly piling up data originating from all my download items, mainly those component PDFs.


    Popularity indication is a misconception. It is more akin to 'Tag your it'.

    I am going to have to now find out what these tags are doing to my file system, and if they actually are useful. I strongly suspect they are just another distracting database management task that I have no wish to take on.

    Watch out, some of these Tags spawn like Gemlins.

    BTW -- I am very very fond of the 'Verilog' tag and the 'Forth' tag.
  • Heater.Heater. Posts: 21,230
    Loopy,
    Linux has a tag feature for files that has been slyly piling up data...
    How do I get to see that on my Debian machine?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-08-18 07:02
    Select a folder or file and click on Properties and you will see a Tag tab.


    Why pray tell am I teaching you Linux? I thought you were the expert of experts.
  • Heater.Heater. Posts: 21,230
    edited 2015-08-18 09:13
    Loopy,
    Why pray tell am I teaching you Linux?
    Because I have never seen or even heard of any "tag" feature for files in Linux based systems. On this Debian 8.1 machine running KDE plasma-desktop there is no tags tab in the file properties dialog. So I'm genuinely curious.

    I should have been more specific and asked: What is it you are running on Linux that has tags on files ?
    568 x 586 - 43K
  • I am using Gnome. Try exploring that.
  • mindrobotsmindrobots Posts: 6,506
    edited 2015-08-18 12:45
    Interesting, I'm using Gnome and Nautilus 3.16.2 (also called Files) and I see nothing relating to tags when I look at the properties for a file or directory. There are some other tools and file systems that support tagging but I haven't seen any that integrate with Nautilus yet in my searching.

    Loopy, can you provide a screenshot? Details of any add-ons? This would be a useful thing to have.
  • Heater.Heater. Posts: 21,230
    edited 2015-08-18 12:49
    I see. I don't recall using Gnome since trying it 15 years ago or so. It was horrible so I stuck with KDE. As far as I can tell the only reason for Gnome exists is because of some silly spat over the Qt library licensing terms back then. Given all the complaining I read about recent Gnome versions I was never tempted to bother trying it. But I guess I could fire it up just to check on this tags feature you mentioned.

    Now, I wonder if those little issues you have with Quartus are related to your use of Gnome?

  • Gnome contributing to the downfall of Quartus? Doubtful, I'm using Gnome with Quartus and no issues. Unless it's Gnome's installation on Fedora versus Gnome's installation on Debian.

    The tag feature still needs to be confirmed that it is related to Gnome. I have Gnome, yet I have no tags.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-08-18 15:51
    Well, both my dual boot machines have Debian Linux loaded, but were once Ubuntu, then Mint, and now Debian. Now you suggest Gnome issues versus KDE. I think not, but I am not going to try a long winded explanation.a

    +++++++++

    So this tags feature might have come from Ubuntu or Mint and somehow migrated.
    I am now trying my darned-est to figure out how to get to a pure Debian installation with loosing all my /home/george/<sub-directiories>.

    I have a repair plan evolving, but I am writing up a step-by-step proceedure to make sure I understand everything correctly.

    I confess, I have may a big mistake in keeping a separate /home partion while jumping from distribution to distribution. It seems that the 'hidden' dotfiles from one distribution are all mixed with another.

    I will run a test of opening a new user in this computer to see if I also have the TAGS feature in a new user's installation. That may indicate it is a normal Gnome Debian feature. This is the 32bit Debian Wheezy 7.6.; NOT 64bit Debian Jessie 8.1

    ++++++++
    I am not sure what I desire to do about these Tags, they just seem to be benign clutter.

    But something rabid is afoot.
    https://www.tagsistant.net/

    http://superuser.com/questions/81563/whats-a-good-solution-for-file-tagging-in-linux
    440 x 573 - 41K
  • Heater.Heater. Posts: 21,230
    edited 2015-08-18 16:16
    My Gnome effect on Quartus suggestion was, well, only a suggestion.

    Time for an observation:

    It is vanishingly unlikely that any two human beings are using identical computers. Same hardware, same operating system, same drivers, same applications, in all their many versions, same set up and configuration. No matter if we are talking Linux, Mac, Windows, whatever.

    Ergo, it is impossible to predict if a suggested fix for a problem, that may work on my machine here, will actually work on anyone else's machine.

    Unless they have a gate for gate, bit for bit, identical clone all bets for a 100% successful solution are off.

    The best we can do is stumble around in this ever increasing pool of entropy we are creating, hoping that from time to time something works, never sure of when it will fail next. Trying to help each other make progress in the sticky mud of the ever changing swamp.

    Computing is fun, isn't it ?

  • That's why it is an art and not a science! :clown:

    Even within a household or my own collection of computers, it is difficult to recreate identical results. It seems once you let one go into the wild, all bets of reputability are out the door.

    Corporations try with locked down systems which kind of works at very basic levels but as soon as someone comes along with some small, minor, insignificant little change they need that the person next to them doesn't need, the butterfly wings start flapping!
  • Okay, computing is the dismal art, and economics is the dismal science.

    My approach is to reduce the amount of attention that a computer requires for care and maintenance to the minimum while not giving my life to the Cloud.

    So it is far easier to reload Linux when all else fails than to reload Windows in any form.

    I just try to set aside personal data from that reloading process in a place where I can reach it when it is finally needed.

    +++++++++++
    I am beginning to feel that I would be quite happy if I could just turn off this tag feature. It just is creating bloat without any real functionality. No one but a very mental person is going to retain a complete system of Tags for each and every file and directory on their system.

    It is just destined to fail.
  • Tagging files just seems pointless to me. Searching for solutions to something that isn't or shouldn't be a problem is a waste of time. Create some folders with names that make sense to you, and put your files in them.
  • Heater.Heater. Posts: 21,230
    File names folders and do not work when you want to find stuff. There is no hierarchical classification system that will.

    First we had file names. Great, now we have the pain of dreaming up meaningful names for files so we can find them again.

    When we had too many files they got split up into directories. Great, now we have the pain of dreaming up meaningful directory names plus the pain of dreaming up a meaningful classification system so as to put the right files in the right place.

    Then we found we can't ever find related information. Perhaps that photo of grandad is in "My Photos" but the family history is in "My Documents" or whatever.

    So we invented "tags" to relate different bits of information together. Great, now we have the pain of ensuring we tag everything in meaningful ways.

    But consider this: A google search will generally find useful stuff for you from the entire internet of computers and files. It cares not about file names or tags or whatever.

    I conclude, we may as well keep all files in a single directory. Name them with some unique ID like "c30524a109ba3b8b29e79ca3100a2dec" derived from a hash of the content.

    Then have a google like search engine to index what we have and find it for us when we need it.

  • Folders work fine for me. I have much more trouble finding stuff in my apartment than on my computer. I spent 20 minutes looking for my electric screwdriver last week. Eventually I remembered I left it out in the truck.

  • Tagging in the FS seems pretty antiquated, or wait, is that a new hipster thing now?

    A decent Search utility or function will find file names and within files.
    On WIndows I like Agent Ransack over whatever junk MS has by default indexing forever....
  • yetiyeti Posts: 818
    edited 2015-08-19 06:30
    Hmmm....... I was looking in the properties of an oddly behaving Linux file today and was shocked to discover that Linux has a tag feature for files that has been slyly piling up data originating from all my download items, mainly those component PDFs.
    I am using Gnome. Try exploring that.
    *sigh!*
    Gnome != Linux
    Linux has no tags for files. Linux is just a kernel...

    That ugly habit of calling the whole OS like it's kernel is named already sometimes infects me... but please let's try to be correct... we cannot speak of Linux as OS because (besides this being wrong) the "Linuxes" are too different to each other... e.g. Android vs OpenWrt vs Debian vs ...
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2015-08-19 06:56
    Man, I have been using Linux for many many years now and if I can't call it an OS because Linux is actually the kernel then how the hell do I describe it to people who know that Windows is an OS and MACOS is an OS? In fact they kind of know "Li'nux" but are more familiar with "Ubuntu", but let's not go there.

    We know for instance that a "hard drive" is the actual storage device yet millions of people or more call the desktop box a "hard drive" whereas a computer to them is the "hard drive" + keyboard + monitor etc. Yet we can be too pedantic with terminology especially in general use and just need to relax and refer to Ubuntu/Mint/Debian/OpenSuse etc as "Linux", is that such a big sin? Everyone here who uses "Linux" uses it in this form, not the pure kernel form.

    Granted though, a desktop manager is not Linux in itself.
  • koehler wrote: »
    ... whatever MS has by default indexing forever....

    Windows Search. That's usually one of the first services I turn off. That thing will wear out disk drives with it's non stop indexing.

  • Heater.Heater. Posts: 21,230
    @RDL2004,

    Directories do work of course. Up to a point. Until one day you find you have so many files on so many topics that it's impossible to recall how you classified them and hence which directory they might be in.

    I once lost my car keys in the house. We turned the whole place upside down trying to find them. Nowhere. At the end of the day I reasoned that the only possible place left they could be is in the waste bin under the kitchen sink. Sure enough, they were! How the hell did that happen?

    @koehler, @RDL2004

    I can never find anything with whatever search system comes in Windows. In a recent, rather heated, OS war thread here I was told it does work, sadly not how to make it do so.

    @yeti, @Peter

    We have to face the fact that in common everyday language operating systems based on Linux are called "Linux". This was also a topic in the OS debates recently. It is ambiguous and annoying in some cases and it would be nice if people would be more specific then. For example with regard this mythical "linux tagging" feature.
  • So far, the only thing I've found is Extended File System Attributes - a painful way to implement any tagging in its rawest form. I'm sure it could be (has been) wrapped into tools to make it more palatable. The idea of putting meta-data with a file sounds promising but it appears to be not very persistent as various tools and other less capable parts of the OS get hold of it: cp, backups, etc.

    This is from Linux Magazine - by its title, that would be a magazine solely and fully dedicated to writings about the Linux kernel :lol:

    If we use Linux to refer ONLY to the kernel, then we really limit our topics of discussion.

    File systems are extensions to the kernel - is there one true native file system that is part of the kernel?

    Device drivers (except for a few primitive ones, possibly) are extensions to the kernel.

    Anything implemented by a loadable module would be an extension to the kernel.

    So we talk about so much that isn't Linux when we use Linux.

    I'll have to think about this more but I need to get some kleenex before I run off to make a xerox of something.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-08-19 18:45
    ****** WARNING **********

    Linguistic train-wreck ahead. I suppose I must adapt to "Linux-BASED operating systems" to be accurate.

    We are going to get deeply into debating what is an OS and what is a kernel, when the world out their pretty much accepts the blurry brand concepts of what OSes are.

    Okay, so Gnome is a desktop GUI under Linux, and so is KDE.
    On the other hand, Windows pretty much can't separate the kernel from the OS and its users may never know that is possible.

    So what is the OS? Linux with Unix utilities and Various choices of GUI.
    ****** WARNING **********

    +++++++++
    What I am really wondering is if I might switch to KDE and eliminate the whole Tag scheme I have uncovered.

    It seems that even if I switched, there would a lot of directories that would have a dotfile remaining for directory tags. I would have to walk the whole directory tree on a search and remove mission to get rid of this.

    And then there are the tags that are attached to individual files. I am at a loss at how to purge those in a wholesale fashion.

    =====
    Am I stuck with tags regardless?
  • Heater.Heater. Posts: 21,230
    Also don't forget to fix the hoover, you may need a phillips screwdriver to do so, don't use sellotape . You can have a coke from the thermos when you are done.

    Here is more: https://en.wikipedia.org/wiki/List_of_generic_and_genericized_trademarks

    On the other hand: I have a program that runs on Linux but does not run on Linux. How is that possible?
    File systems are extensions to the kernel - is there one true native file system that is part of the kernel?
    As you asked yes, many. Btrfs, exFAT, ext3, ext4, F2FS, JFS, NILFS2, NTFS, Reiser4, ReiserFS, VFAT, XFS, ZFS all come in the Linux kernel sources if you fetch the Linux project repository. They are not extensions, they are part of Linux.

    Most device drivers people use are part of Linux in the same way as file systems. Yes there are drivers provided by third parties as well of course.
    Anything implemented by a loadable module would be an extension to the kernel.
    Except all those file systems and drivers that come with Linux. The issue of them being used as loadable modules or compiled in is irrelevant.

    About those Extended File System attributes: It seems to me that one could put tags in there. As you say that does not go well as said attributes will be lost when moving files around, putting them on a different file system that does not support attributes or transmitting files to other machines.

    Also, to find anything by tag you then have to read all the tags from all the extended attributes attached to all your files. Soon enough you are going to optimize that by creating a tag cache somewhere. Perhaps it's just as well to store that tags in that cache only.




  • Switching from Gnome to KDE should be because KDE has some feature you want that Gnome does not or because Gnome does something to displease you knowing that KDE will please you. If the tag files are some relic from a past dalliance but offer no harm to yoru existence and you hav eno qualms with Gnome, then I wouldn't just switch to KDE because.....

    If you choose not to use tags and don't click on the tags tab from properties then you are no more stuck with them than you are stuck with earthworms. If you are now obsessed with tags and the .tagfiles and then constantly gnaw away at some deep place in your psyche, then by all mean switch, get rid of them, wipe the files from existence just to make peace with your inner self. Do you need to purge them?Are they stopping you from doing any productive work? (Beyond fueling endless debates wasting many peoples' time? :smile:)

    Oh so tangled we get in this world built on top of the Linux Kernel.

    If I start with Fedora (default GUI is Gnome) but change to KDE and maybe install Clementine instead of Rythmbox, am I still using Fedora or have I created Bowler or Raspberry Beret* or some other hat derivative Linux distribution. At what point does my customization to Fedora alter it to the point where it is no longer recognized as Fedora? Do I need to package my changes and claim it's space among other distributions? Support repositories that have the latest release of my tool choices?

    It seems any of this can be made as complicated as you want.




    *I may have to claim that for a RedHat based Raspi distribution
  • Heater.Heater. Posts: 21,230
    mindrobots,

    Agreed. Ideally we would be selecting our tools on some rational criteria. Fitness for purpose, reliability, cost, availability etc etc etc. We are logical human beings right?

    For me KDE vs Gnome is not a case of switching between either. Before there was KDE there was twm and CDE and such. They worked, they were clunky to use, hard to configure. Then came KDE, OK it was a switch moving to that but it was so much nicer to use. Then came Gnome, tried it, didn't work, never switched. Never heard that it had any new compelling features to make me want to look at it again.

    Of course even engineers and programmer are not entirely driven by rationality as much as we like to think otherwise of ourselves. That is why there are editor wars, language wars, os wars. When it comes to a desktop environment the colours, rounded corners and location of buttons may be enough to swing a decision, never mind it's technical merits.

    I would say that as long as your switching desktop environments and other applications around using code from Fedora's repositories you always have Fedora. That is clear enough. You could start swapping bits of code out, compiled from original sources perhaps, even the Linux kernel. At some point you may not have any Fedora left. I actually built by own Linux that way starting from RedHat, back in 1998 or so. I since learned there are better ways to do that though.




  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-08-19 19:01
    mindrobots wrote: »
    ....some relic from a past dalliance....

    ....you are no more stuck with them than you are stuck with earthworms....

    ....constantly gnaw away at some deep place in your psyche....

    ....make peace with your inner self.....

    Interesting expressive language. Are we all just being tongue in cheek or really getting caught up in the drama.

    We seem to have one upset and overworked moderator trying to be diligent. I like the earthworms comment.... never heard that before.

    ++++++
    The truth of the matter is that it isn't the Tag feature that so much concerns me as the spawning of unneeded dotfiles. These guys are hidden until you go looking for something and then you have a vast array of obscure and cryptic files and directories that you never heard of and that many never be documented anywhere.

    Pure bloat. And what should we do? Never touch the dotfiles, just ignore the dotfiles, the dotfiles know their place.

    >more drama<

    In all honesty, it seems that the use of dotfiles should be limited to directories of specific defined purposes. They can slip into a role similar to cookies on a browser.

  • Heater.Heater. Posts: 21,230
    Loopy,

    I'm totally with you on the dot file thing.

    On this machine I have accumulated 63 dot files. For all kind of stuff from .adobe (Flash player) to .xsession-errors

    On top of that there is a .config directory with 31 more config files in it (They are not hidden)

    What started out as a place to tuck a few user related things like scripts to set up the environment on login is increasingly misused and run out of control.

    Still, getting any two developers of open source code to agree on the correct way to do anything is nigh on impossible, love'm.





  • Each user should have an own bin, etc, lib, man, share, tmp, var, wrk, ... directory and a dotfiles like ~/.bashrc and ~/.bash_profile should be ~/etc/bash/rc and ~/etc/bash/profile instead.
    ~/.bash_history is not a config file, probably ~/var/cache/bash/history would be a fitting place.

    It's easy, but bad habits seem to be immortal...
  • Heater.Heater. Posts: 21,230
    yeti,
    Each user should have an own bin, etc, lib, man, share, tmp, var, wrk, ... directory
    Sounds like a plan. I have never seen anyone do that though.

    But now I know what to do. I'm going to move my home directory to "/". Then I will have my bin, etc, lib and so on :)

Sign In or Register to comment.