6 question about unix and linux
Question Description
- Write a single
vi
ORemacs
command to do each of the following. Answer all parts for the same editor: [6]@. name the editor
- copy (region between mark and cursor)
- cut (region between mark and cursor)
- paste (last cut or copy)
- save and exit
- search for a string
- set 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.10
- 13.255.255.255
- 42.0.0.0
- 127.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 numerals
- A 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 variableVar
: [6]- the first character of the variable
Str
- the first element of the array variable
Arr
- the remainder from dividing the integer value of the variable
I
by the integer value of the variableJ
- the first character of the variable
- Write a
bash
command to assign to the array variableArr
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 order
- Only the first sentence (ending with a period) from each line.
- All lines, with every space changed to an underscore
- Only lines which do not contain any spaces
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."