Linux file directory X execution permission meaning

  
                  

For files, X means executable;

For directories, X means you can enter this directory.

Some files require execution permission. For example, a script file must have execute permission. For example, if there is a file a.sh, its permission is rw-, you cannot use "./a .sh" to run, you will be prompted to have no permissions, you can only use sh a.sh way to run. With the x privilege, chmod u+x a.sh, you can execute this script with ./a.sh.

Copyright © Windows knowledge All Rights Reserved