ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Linux: File Colors

    IT Discussion
    linux sam linux administration
    5
    13
    3.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      If you are lucky enough to be working on a Linux system from a colour TTY session, then you likely get to see a lot of commands, such as ls returning file results in colour! Lucky you. This makes things much easier to quickly see differences in files. On CentOS, we will get these standard colours:

      • Executable files: Green
      • Directories: Blue
      • Graphical Image files: Magenta
      • Symbolic / soft links: Cyan
      • Pipes: Yellow
      • Sockets: Magenta
      • Orphaned symbolic links & missing links: Blinking bold white on red background
      • Block device drivers: Bold yellow foreground on black background
      • Archives or compressed files: Red
      1 Reply Last reply Reply Quote 8
      • DashrenderD
        Dashrender
        last edited by

        Does putty support this?

        scottalanmillerS thwrT 2 Replies Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Dashrender
          last edited by

          @Dashrender said:

          Does putty support this?

          Yes

          1 Reply Last reply Reply Quote 0
          • guyinpvG
            guyinpv
            last edited by

            I find the dark blue color for folders abhorrent. My eyes can hardly read it!

            In PuTTY, you can go to the "Colours" section under "Window" and change it.
            A common color for blue might be 74, 74, 255 and dark blue 140, 140, 255.

            You have to save the session and give it a name in order to change these settings. And then after changing setting you have to save again.

            On the topic of color, I like to narrow the contrast a little. Instead of pure black background I like a dark dark grey with a hint of blue, like 40,40,45 with the foreground text 230,230,230 instead of pure white.

            1 Reply Last reply Reply Quote 2
            • momurdaM
              momurda
              last edited by

              From ubuntu 1604 through Putty
              0_1473460309497_upload-e67c4bab-0674-4791-9aaf-72a0ae5d3832

              1 Reply Last reply Reply Quote 0
              • guyinpvG
                guyinpv
                last edited by

                PuTTY, CentOS.
                I also use Consolas, 14pt text.

                0_1473460948785_putty centos.jpg

                thwrT 1 Reply Last reply Reply Quote 0
                • thwrT
                  thwr @Dashrender
                  last edited by

                  @Dashrender said in Linux: File Colors:

                  Does putty support this?

                  Basically every terminal emulator can, because the technique behind is - wild guessing here - at least 20 years old.

                  Basically, the color-encoded data that is getting sent from the shell looks like this:

                  testing \033[0;37;41mCOLOR1\033[1;35;44mCOLOR2\033[m
                  

                  That will be parsed by the terminal emulator. There is (or should be, can't find a source for this right now) some magic behind, for example a color-capable terminal tells the server side that he can safely send color codes. You would see a lot of garbage otherwise.

                  Here's some good info about colors in shells: http://bitmote.com/index.php?post/2012/11/19/Using-ANSI-Color-Codes-to-Colorize-Your-Bash-Prompt-on-Linux (grabbed the string above from there)

                  1 Reply Last reply Reply Quote 0
                  • thwrT
                    thwr @guyinpv
                    last edited by

                    @guyinpv said in Linux: File Colors:

                    PuTTY, CentOS.
                    I also use Consolas, 14pt text.

                    0_1473460948785_putty centos.jpg

                    Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever

                    guyinpvG 1 Reply Last reply Reply Quote 0
                    • guyinpvG
                      guyinpv @thwr
                      last edited by

                      @thwr said in Linux: File Colors:

                      @guyinpv said in Linux: File Colors:

                      PuTTY, CentOS.
                      I also use Consolas, 14pt text.

                      Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever

                      Didn't say it wasn't.
                      I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.

                      thwrT 1 Reply Last reply Reply Quote 0
                      • guyinpvG
                        guyinpv
                        last edited by

                        Can someone explain why my screenshot jpg is being stretched? I don't see any settings or data about it being resized. It's not that big!

                        1 Reply Last reply Reply Quote 0
                        • thwrT
                          thwr @guyinpv
                          last edited by thwr

                          @guyinpv said in Linux: File Colors:

                          @thwr said in Linux: File Colors:

                          @guyinpv said in Linux: File Colors:

                          PuTTY, CentOS.
                          I also use Consolas, 14pt text.

                          Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever

                          Didn't say it wasn't.
                          I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.

                          Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru 😉

                          thwrT 1 Reply Last reply Reply Quote 0
                          • thwrT
                            thwr @thwr
                            last edited by

                            @thwr said in Linux: File Colors:

                            @guyinpv said in Linux: File Colors:

                            @thwr said in Linux: File Colors:

                            @guyinpv said in Linux: File Colors:

                            PuTTY, CentOS.
                            I also use Consolas, 14pt text.

                            Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever

                            Didn't say it wasn't.
                            I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.

                            Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru 😉

                            OMG, that sounds very SAM-ish...

                            guyinpvG 1 Reply Last reply Reply Quote 0
                            • guyinpvG
                              guyinpv @thwr
                              last edited by

                              @thwr said in Linux: File Colors:

                              @thwr said in Linux: File Colors:

                              @guyinpv said in Linux: File Colors:

                              @thwr said in Linux: File Colors:

                              @guyinpv said in Linux: File Colors:

                              PuTTY, CentOS.
                              I also use Consolas, 14pt text.

                              Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever

                              Didn't say it wasn't.
                              I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.

                              Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru 😉

                              OMG, that sounds very SAM-ish...

                              Here you go.

                              0_1473461608944_sandwich.jpg

                              OH, you said SAM-ish, whoops.

                              1 Reply Last reply Reply Quote 1
                              • 1 / 1
                              • First post
                                Last post