Linux dircolors command details how to use the Linux dircolors command

Source: Internet
Author: User
Tags bit set

Dircolors can set ls_colors environment variables or display shell directives that set ls_colors environment variables according to [color profiles].

Grammar

dircolors [color profile]

Or

dircolors [-bcp][--help][--version]

Parameter description:

    • The-B or--sh or--bourne-shell is displayed in the Boume shell, and the ls_colors is set as the currently preset shell directive.
    • The-C or--csh or--c-shell are displayed in the C shell, and the ls_colors is set as the currently preset shell directive.
    • -P or--print-database display pre-Setup
    • -help display Help.
    • -version Displays version information.

Instance

Display default values

# DIRCOLORS-P//display default values

# Configuration file for dircolors, a utility to help you set the

# ls_colors environment variable used by GNU LS with the--color option.

# Copyright (C) 1996, 1999-2008

# free Software Foundation, Inc.

# Copying and distribution of this file, with or without modification,

# are permitted provided the copyright notice and this notice are.

# The keywords COLOR, OPTIONS, and Eightbit (honored by the

# Slackware version of Dircolors) are recognized but ignored.

# Below, there should be one TERM entry to each TermType this is colorizable

TERM Eterm

TERM ANSI

TERM Color-xterm

TERM con132x25

TERM con132x30

TERM con132x43

TERM con132x60

TERM con80x25

TERM con80x28

TERM Xterm-debian

# Below are the color init strings for the basic file types. A Color Init

# string consists of one or more of the following numeric codes:

# Attribute Codes:

# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed

# Text Color Codes:

# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white

# Background Color Codes:

# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

#NORMAL # No color code at all

#FILE # Regular File:use no color at all

Reset 0 # Reset to ' normal ' color

DIR 01;34 # Directory

Link 01;36 # Symbolic link. (If you are set to ' target ' instead of ' a

# numerical value, the ' color is ' As for ' file pointed to. '

Hardlink 44;37 # Regular file with more than one link

FIFO 40;33 # Pipe

Sock 01;35 # socket

DOOR 01;35 # DOOR

BLK 40;33;01 # block device driver

CHR 40;33;01 # character device driver

Orphan 40;31;01 # symlink to nonexistent file, or Non-stat ' able file

SETUID 37;41 # file is SETUID (u+s)

SETGID 30;43 # file is SETGID (g+s)

CAPABILITY 30;41 # file with CAPABILITY

Sticky_other_writable 30;42 # dir is STICKY and other-writable (+t,o+w)

Other_writable 34;42 # dir is other-writable (o+w) and not sticky

STICKY 37;44 # dir with the STICKY bit set (+t) and not other-writable

# This is to files with Execute permission:

EXEC 01;32

# List Any file extensions like '. Gz ' or '. Tar ', would like LS

# to Colorize below. Put the extension, a space, and the color init string.

# (and any comments your want to add after a ' # ')

# If Use Dos-style suffixes, your may want to uncomment the following:

#.cmd 01;32 # executables (bright green)

#.exe 01;32

#.com 01;32

#.btm 01;32

#.bat 01;32

# Or If you are want to colorize scripts even if they does not have the

# executable bit actually set.

#.sh 01;32

#.csh 01;32

# Archives or Compressed (bright red)

. Tar 01;31

. PCX 01;35

. mov 01;35

. mpg 01;35

. MPEG 01;35

. M2V 01;35

. mkv 01;35

. OGM 01;35

. mp4 01;35

. M4V 01;35

. mp4v 01;35

. VOB 01;35

. QT 01;35

. NUV 01;35

. wmv 01;35

. asf 01;35

. RM 01;35

. RMVB 01;35

. FLC 01;35

. avi 01;35

. FLI 01;35

. flv 01;35

. GL 01;35

. DL 01;35

. XCF 01;35

. XWD 01;35

. YUV 01;35

# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions

. AXV 01;35

. Anx 01;35

. OGV 01;35

. OGX 01;35

# Audio formats

. AAC 00;36

. Au 00;36

. FLAC 00;36

. Mid 00;36

. MIDI 00;36

. Mka 00;36

. mp3 00;36

. MPC 00;36

. ogg 00;36

. RA 00;36

. wav 00;36

# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions

. Axa 00;36

. OGA 00;36

. SPX 00;36

. XSPF 00;36

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.