please give right answers do not use other webiste and chatgpt for this answer its giving wring answers all time please also this webiste allow exert answer 3 question i am asking only 2 question please 34 35 answer correctly

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please give right answers do not use other webiste and chatgpt for this answer its giving wring answers all time please also this webiste allow exert answer 3 question i am asking only 2 question please 34 35 answer correctly 

### UNIX / Linux Command Line Exercises

#### 31. Finding File Size with `cut`

Assuming the command `ls -l /home/cs288` returns the following file information:
```
drwxr-xr-x 1 CS288 CS288 123 Dec 25 2013
```
The command to find the file size `123` is:
- (a) `cut -d' ' -f3`
- (b) `cut -d' ' -f4`
- (c) `cut -f' ' -d4`
- (d) `cut -f' ' -c4`
- (e) None of the above

#### 32. Average File Size Calculation

Consider a list of file sizes `lst=(1 2 3 4 5)`, the average file size is computed by:
```bash
sum=0;
n=${#lst[@]};
```
- (a) `for ((i=0;i<n;i++)); do ((sum=sum+lst[i])); done; ((avg=sum/n));`
- (b) `for x in ${!lst[@]}; do sum='expr $sum + $x'; done; avg='expr $sum / $n';`
- (c) `for x in ${!lst[@]}; do ((sum=sum+lst[x])); done; ((avg=sum/n));`
- (d) All of the above
- (e) None of the above

#### 33. Listing Commands that Start with 'a'

To list commands that start with `a` under `/bin`, you type:
- (a) `ls /bin | grep ^a`
- (b) `ls /bin | grep a*`
- (c) `ls /bin | grep a`
- (d) `ls /bin | grep a$`
- (e) None of the above

#### 34. Listing Commands that End with 'a'

To list commands that end with `a` under `/bin`, you type:
- (a) `ls /bin | grep ^a`
- (b) `ls /bin | grep a*`
- (c) `ls /bin | grep a`
- (d) `ls /bin | grep a$`
- (e) None of the above

#### 35. Finding the Number of Commands that Start with 'a
Transcribed Image Text:### UNIX / Linux Command Line Exercises #### 31. Finding File Size with `cut` Assuming the command `ls -l /home/cs288` returns the following file information: ``` drwxr-xr-x 1 CS288 CS288 123 Dec 25 2013 ``` The command to find the file size `123` is: - (a) `cut -d' ' -f3` - (b) `cut -d' ' -f4` - (c) `cut -f' ' -d4` - (d) `cut -f' ' -c4` - (e) None of the above #### 32. Average File Size Calculation Consider a list of file sizes `lst=(1 2 3 4 5)`, the average file size is computed by: ```bash sum=0; n=${#lst[@]}; ``` - (a) `for ((i=0;i<n;i++)); do ((sum=sum+lst[i])); done; ((avg=sum/n));` - (b) `for x in ${!lst[@]}; do sum='expr $sum + $x'; done; avg='expr $sum / $n';` - (c) `for x in ${!lst[@]}; do ((sum=sum+lst[x])); done; ((avg=sum/n));` - (d) All of the above - (e) None of the above #### 33. Listing Commands that Start with 'a' To list commands that start with `a` under `/bin`, you type: - (a) `ls /bin | grep ^a` - (b) `ls /bin | grep a*` - (c) `ls /bin | grep a` - (d) `ls /bin | grep a$` - (e) None of the above #### 34. Listing Commands that End with 'a' To list commands that end with `a` under `/bin`, you type: - (a) `ls /bin | grep ^a` - (b) `ls /bin | grep a*` - (c) `ls /bin | grep a` - (d) `ls /bin | grep a$` - (e) None of the above #### 35. Finding the Number of Commands that Start with 'a
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
VLAN
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education