Question
1. Using a single pipe, w hat command(s) would you use to extract all of the usernames from a database called /etc/passwd and then sort
1.
Using a
single
pipe, w
hat command(s) would you use to extract all of the usernames from
a database called
/etc/passwd
and then sort this output alphabetically in reverse order?
The output of this command should appear as follows:
How would you run this same command and have the output saved in a file called
System_Users
?
Which command would you use to extract the first 15 characters in each line of the
/etc/passwd
file
?
The output
of this command
would appear as follows:
2.
What command would you use to find all empty
(0 byte)
files in the
/etc
directory?
The
output of this command appears as follows:
How could you run the same command and not have any e
rror messages show up on the
console?
The output of this command would appear as follows:
3.
What command would you use to find all files in
the /etc
directory that are
over 100
kilobytes in size
?
The output of this command would appear as follows:
4.
What command would you use to find all the instances in wh
ich the word
is used
in the
/etc
directory and show this information
one screen at a time?
The beginning of
the output of this command would appe
a
r as follows:
(2 points)
5.
What
single
command
would you use to
determine
the number of
words
and c
haracters
in
the
/etc/
mailcap
file
but not the number of
lines
?
The output of this command would
appear as follows:
6.
What command would you use to view only the first
four (4
) lines of the
/etc/hosts
file?
The output of this command would appe
ar as follows:
What command w
ould you use to view only lines
5
-
10 of the
/etc/mailcap
file?
The
output
of this command
would appear as follows
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