Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (25 pts) Write a single-line shell command that lists directories and files (but not hidden files) in /usr/bin that begin with a lowercase a.

image text in transcribed

1. (25 pts) Write a single-line shell command that lists directories and files (but not hidden files) in /usr/bin that begin with a lowercase a. The command should output one file or directory per line without any other information (e.g., file size, file permissions, etc) and pause at each pageful (allowing you to press the spacebar to continue to the next page). Once the listing is complete, the command should count how many files were outputted. [Hint useful tools: pipes, more, wc -1.... ] Here's sample output: /usr/bin/a2p* /usr/bin/ab* /usr/bin/aconnect* /usr/bin/avahi-set-host-name* /usr/bin/awka /usr/bin/axi-cache* 100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions

Question

Solve equation. 1/2 = (b/4) 1/4

Answered: 1 week ago

Question

Evaluate the impact of unions on nurses and physicians.

Answered: 1 week ago

Question

Describe the impact of strikes on patient care.

Answered: 1 week ago

Question

Evaluate long-term care insurance.

Answered: 1 week ago