In shell scripting, what does .[!.]* mean?

前端 未结 3 423
挽巷
挽巷 2021-01-13 02:56

A command that prints a list of files and folders in the current directory along with their total sizes is du -sh *. That command alone doesn\'t, however, list

3条回答
  •  旧时难觅i
    2021-01-13 03:30

    . - match a ., prefix of hidden file

    [!.] - match any character, as long as it is not a ., see ref

    * - any number of characters

    so this pattern means match files starts with . but not ..

提交回复
热议问题