Unix file wildcards help Please help answer the questions in

Unix file wildcards help. Please help answer the questions in the find part 1 and find part 2 green boxes (the last two boxes), thank you!

Lab No. 4: Finding Files After completing this lab, students will be able to: find files using wildcards use wildcards to perform bulk file operations perform simple searches in files by occurrence of character strings File Wildcards In Lab No.2 we learned how to list us), move mv), copy (cp) and remove rm and rmdir) files and directories. Wildcard characters (also known as globbing characters) allow these commands (and many others to operate on patterns. The following list contains the standard bash wildcards: Character Meaning A sequence of zero or more characters A single character List of characters Exclude list of characters List of wildcard expressions Let\'s create some files so we can see globbing in action: [you oblue mkdir wildcards you oblue cd wildcards [you@blue wildcards]$ touch dnf.sys.Log-20170212 dnf.rpm.uog-20170205 dnf.Lib.uog-20170112 maiu.err maiu. Uog maiu .com. Log-20170116 messages. rpm. [you@blue wildcards]$ us trh total 0 -rw--------- 1 you you 0 Feb 15 22:14 spooler.sys. log-20170130 -rw--------- 1 you you 0 Feb 15 22:14 secure.ssh.log-20170116 -rw------ 1 you you 0 Feb 15 22:14 messages. rpm.uog-20170116 -rw--------- 1 you you 0 Feb 15 22:14 mail. log 1 you vou 0 Feb 15 22 14 mail, err

Solution

Find Part 1:

1. find . - type f -size 22k by using find command we find in current directory(.) file type file(-type f) with size equal to 22kb(-size 22k)

2. find . -type f - name \"access.log\" -size +40k -a -size -50k this command find file whose name is access.log with size greater than 40k and less tha 50k here -a means AND.

3.find . -type -f -newermt 2016-12*

Find part 2:

1. find /var/www/ -type d -ls listing all file types as directory in var/www directory.

2. find /var/www/ -type f -ls listing regular files

3. find /etc -type f -not -group root

4. find /etc/ -name \"auto\" -perm 600 -ls

Unix file wildcards help. Please help answer the questions in the find part 1 and find part 2 green boxes (the last two boxes), thank you! Lab No. 4: Finding Fi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site