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

  • Explain why each of the following IP v4 addresses cannot be assigned to a network interface directly connected to the public Internet: [4]10.10.10.1013.255.255.25542.0.0.0127.1.1.1
  • Write an extended regular expression to match each of the following: [4]One underscore or letter (uppercase or lowercase) followed by zero or more underscores, letters, or numeralsA number >= 0 and < 10 with or without one or more digits following a decimal point
  • Write a bash command to assign each of the following to the scaler variable Var: [6]the first character of the variable Strthe first element of the array variable Arrthe remainder from dividing the integer value of the variable I by the integer value of the variable J
  • Write a bash command to assign to the array variable Arr the elements of the array variable Brr sorted in numeric order. [2]
  • Write a UNIX command to do output each of the following from text input: [8]All lines, arranged with the 4th characters in reverse dictionary orderOnly the first sentence (ending with a period) from each line.All lines, with every space changed to an underscoreOnly lines which do not contain any spaces
  • 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

    Calculate your order
    275 words
    Total price: $0.00

    Top-quality papers guaranteed

    54

    100% original papers

    We sell only unique pieces of writing completed according to your demands.

    54

    Confidential service

    We use security encryption to keep your personal data protected.

    54

    Money-back guarantee

    We can give your money back if something goes wrong with your order.

    Enjoy the free features we offer to everyone

    1. Title page

      Get a free title page formatted according to the specifics of your particular style.

    2. Custom formatting

      Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.

    3. Bibliography page

      Don’t pay extra for a list of references that perfectly fits your academic needs.

    4. 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

    Type of paper
    Academic level
    Deadline
    550 words

    How to place an order

    • Choose the number of pages, your academic level, and deadline
    • Push the orange button
    • Give instructions for your paper
    • Pay with PayPal or a credit card
    • Track the progress of your order
    • Approve and enjoy your custom paper

    Ask experts to write you a cheap essay of excellent quality

    Place an order