LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Meaning of (/.*) (https://www.linuxquestions.org/questions/linux-general-1/meaning-of-%2A-4175645906/)

mpzfm1 01-10-2019 04:40 AM

Meaning of (/.*)
 
I have seen the expression (/.*) to many times in command line but i cant find the explanation for this expresion, can anyone help me?

hydrurga 01-10-2019 04:53 AM

Can you please provide an example or two?

mpzfm1 01-10-2019 05:28 AM

for example:


semanage fcontext -a -t httpd_sys_content_t "/data(/.*)?"

l0f4r0 01-10-2019 06:01 AM

@mpzfm1: /data(/.*)? is a regular expression which means folder /data and possible subdirectories/files.
The whole command adds file-context for everything under /data.


All times are GMT -5. The time now is 03:17 AM.