UNIX/Linux Programming Answers

Questions: 170

Answers by our Experts: 135

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

choose the command sequence to delete the TEST directory.



choose the correct option to identify the user id(UID) under linux

w

who

finger

id

pwd

is-I

grep UID/etc/userID

df- h

none


identify the correct IP address

10.10.10.10

10.255.1.4

192.35.2.0

255.1.256.5.254

13.14.15.16

127.0.0.1

128.0.1.2.5


generate the file $ HOME/ midterm/answer.LOG with the number of cron processes


Write concise notes on the four (4) components of any computer system


Write a shell script that demonstrates your ability to organize interactive communication

of its potential user with the UNIX environment in a friendly manner.

1. A user starts the program typing the program name and first his/her first name

and then the ID number as two parameters of the program

2. Program shall ask the secret key to run the program; a user should program this

secret key in advance. If the user enters correct secret key it should move to next

step (3), else it should prompt to enter correct key for four times and then exit the

program.

3. The program welcomes the user somehow mentioning his/her ID number first,

then his/her name and then displays the date and the time of the execution


4. The program displays five codes and names of the five countries team that has

played Football (one code and name per line) and asks the user to guess which

the one is best football team. The codes for Brazil, Argentina, Nepal, China and

England are BRZ, ARG, NEP, CHI and ENG respectively.





What happen if you open your excel for the first time?


Assume that you are working as system administrator and managing the Access modes of software System, Explain the File Permissions with respect to users by executing commands and show the output. (Select and name any Software Application of your choice).


Producer-consumer problem is a common paradigm for cooperating processes. A producer process produces information that is consumed by a consumer process. One solution to the producer-consumer problem uses shared memory. To allow producer and consumer processes to run concurrently, there must be available a buffer of items that can be filled by the producer and emptied by the consumer. This buffer will reside in a region of memory that is shared by the producer and consumer processes. A producer can produce one item while the consumer is consuming another item. The producer and consumer must be synchronized, so that the consumer does not try to consume an item that has not yet been produced.

Write a bash script to simulate producer-consumer problem using semaphores.


Memory management is the functionality of an operating system which handles or manages primary memory and moves processes back and forth between main memory and disk during execution. Memory management keeps track of each and every memory location, regardless of either it is allocated to some process or it is free.

Given five memory partitions of 110 KB, 450 KB, 100 KB, 250 KB, and 500 KB (in order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in order)?Which algorithm makes the most efficient use of memory? Write a program to compare and justify your answer. program should be on Bash script. (10 marks).



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS