COMSC 171 Dvc Diablo Valley College Unix and Linux Questions
Write a single vi OR emacs command to do each of the following. Answer all parts for the same editor: [6]@. name the editorcopy (region between mark and cursor)cut (region between mark and cursor)paste (last cut or copy)save and exitsearch for a stringset a mark
COMSC-171 Homework
1. Name of editor: vi
a. y`a
b. d`a
c. p
d. :wq!
e. /
f. ma
2. IP
a. It is an address to a private network not visible from the outside internet.
b. It is a broadcast address, which leads to a gateway that cannot be assigned to a
computer address
c. It is a formerly IANA reserved IP address
d. It is a loopback address which directs to the localhost
3. Regular Expression
a. “^[a-zA-Z_][ a-zA-Z0MDCLXVI_]+$”
b. “^[0-9]\d*(\.\d+)?”
4. Bash
a. Var=”$(echo $str| head -c 1)”
b. Var=${arr[0]}
c. Var=$I%$J
5. #! /bin/bash
IFS=$’\n’
arr=(4 2 5 1 6)
brr=$(sort
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics