LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2019, 04:40 AM   #1
mpzfm1
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Rep: Reputation: Disabled
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?
 
Old 01-10-2019, 04:53 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Can you please provide an example or two?
 
2 members found this post helpful.
Old 01-10-2019, 05:28 AM   #3
mpzfm1
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
for example:


semanage fcontext -a -t httpd_sys_content_t "/data(/.*)?"
 
Old 01-10-2019, 06:01 AM   #4
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

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

Last edited by l0f4r0; 01-10-2019 at 06:03 AM.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what's the meaning of this warning ? jeson_515 Linux - Software 1 08-07-2003 10:06 PM
ls command -l Meaning of Colored line mcas Linux - Newbie 3 07-01-2003 03:18 AM
exit code=10 whats its meaning? pctwister Linux - Hardware 2 06-13-2003 07:56 PM
The Meaning of Dune carrja99 General 9 03-21-2003 08:26 PM
what is the meaning of HCF and HSF for modems? kublador Linux - Newbie 4 03-04-2003 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration