Announcement

Collapse
No announcement yet.

Different colors in FSTAB, any particular meaning to them?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Different colors in FSTAB, any particular meaning to them?

    I am trying to add this line on the bottom of my primary OS drive to help reduce some of the writes to the SSD.
    Code:
    /tmp tmpfs defaults,noatime,mode=1777  0  0
    Strangly the first zero is black and the second the normal brown color, like all the rest of the numbers for <dump> and pass <pass> , this black zero corresponds to the <dump> part. If I add a third zero, it becomes brown, and I am left with one black, and 2 browns, here is a picture to show you guys what I mean.
    Click image for larger version

Name:	snapshot22.jpg
Views:	1
Size:	55.4 KB
ID:	648811

    In the picture I added a third zero to show what I mean by the color change.

    #2
    That's the text editor trying to be helpful by categorising elements.

    Comment


      #3
      That does not really help me in anyway but thank you for the answer. What does the black color mean as opposed to blue in my fstab?

      Comment


        #4
        As said, it's one of several category, just to be helpful.
        The official name is syntax colours.
        Nothing nefarious.
        It has nothing to do with fstab but all with the editor you use.

        It's a bit like asking "what does it mean I have brown/grey/blonde/black hair", maybe heritage, maybe a recent visit to the hairdresser?
        It doesn't make you smarter or dumber, some will prefer one or the other.

        Knowing KDE I'm sure there is a place where you can edit this nasty black colour and change it to something pink.
        Or whatever rocks your boat.

        https://dot.kde.org/2012/11/24/katek...whats-new-kate
        Last edited by Teunis; Nov 27, 2014, 08:23 AM. Reason: /be/

        Comment


          #5
          Also, your entry is incorrect. It should be:
          Code:
          tmpfs  /tmp  tmpfs  noatime,mode=1777  0  0
          The commened line with the items in angle brackets <> describes what goes in each column. Your entry is missing the first item, the file system name. And it has an extra 0 at the end. There are only two flags, not three.

          Kate's coloring should have clued into this. If you take a look at the other lines, you'll see:
          • black: filesystem name
          • blue: mount point
          • purple: filesystem type
          • black bold: mount options
          • brown: backup (dump) and filesystem check (pass) flags

          Notice that in the line you entered, the colors don't line up right?
          Last edited by SteveRiley; Nov 26, 2014, 10:56 PM.

          Comment

          Users Viewing This Topic

          Collapse

          There are 0 users viewing this topic.

          Working...
          X