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

前端 未结 3 435
挽巷
挽巷 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条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 03:25

    It's a globbing pattern that basically tells bash to find all files starting with a ., followed by any character but a .and containing any character after that.

    See this page for a great explanation of bash globbing patterns.

提交回复
热议问题