Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started