Why does 'ls' output come up with a dot (".") following the file permissions in Red Hat Enterprise Linux?

Solution Verified - Updated -

Issue

  • Why does ls output come up with a dot following the file permissions in Red Hat Enterprise Linux 6?

    $ ls -ld test
    drwxr-xr-x. 2 root root 4096 Feb 14 18:14 test
    
  • Why do some files not have the dot (.) whilst some others have it?

    [root@localhost ~]# ls -l
    total 64
    -rw-------. 1 root root  2636 Feb 17 02:46 anaconda-ks.cfg
    -rw-r--r--. 1 root root 41179 Feb 17 02:46 install.log
    -rw-r--r--. 1 root root  9154 Feb 17 02:44 install.log.syslog
    -rw-r--r--  1 root root     0 Apr 21 22:24 test
    

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.