Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 101-500 topic 1 question 54 discussion

Actual exam question from LPI's 101-500
Question #: 54
Topic #: 1
[All 101-500 Questions]

Which wildcards will match the following filenames? (Choose two.) ttyS0 ttyS1 ttyS2

  • A. ttyS[1-5]
  • B. tty?[0-5]
  • C. tty*2
  • D. tty[A-Z][012]
  • E. tty[Ss][02]
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
iwkno6
Highly Voted 2 years, 9 months ago
B and D are correct. A doesn't include 0, C is definitely wrong and E doesn't include 1.
upvoted 11 times
...
Ninymo
Most Recent 1 month ago
Answer: BD
upvoted 1 times
...
M_ukesh8
8 months, 2 weeks ago
A can not be considered because the endings are : 012 So the correct ans are B, D
upvoted 1 times
...
jegga
2 years, 11 months ago
A, B, and D is the answer. They all can match the files
upvoted 1 times
CuriousLinuxCat
2 years, 9 months ago
A. ttyS[1-5] A will not work because it is missing a 0 in the [1-5]. If it was ttyS[0-5], then the answer would be valid.
upvoted 8 times
...
...
sugisho
3 years, 5 months ago
[root@centos7 ~]# touch ttyS0 ttyS1 ttyS2 [root@centos7 ~]# [root@centos7 ~]# [root@centos7 ~]# [root@centos7 ~]# ls tty?[0-5] ttyS0 ttyS1 ttyS2 [root@centos7 ~]# ls tty[AZ][012] ls: cannot access tty[AZ][012]: No such file or directory
upvoted 3 times
hawkmoon
3 years, 5 months ago
you forgot the - in the [A-Z]
upvoted 14 times
...
...
glorofarz
3 years, 9 months ago
well, if i do ls /dev/tty?[0-5] on debian/centos i get 28 results including e.g. /dev/ttyS63 so suffice it to say i am a bit confuseled.... (yet i found the same answer in another language test with the same answers)
upvoted 2 times
...
lanc
3 years, 11 months ago
For this one, tty?[0-5], question mark represents if the proceeding character is present or not. So I think the answer is correct if ttyS?[0-5] was an option
upvoted 1 times
cast7omadrid1
3 years, 11 months ago
We're talking about wildcars (globbing) not regular expressions.
upvoted 7 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...