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

You have a user account on a Linux server. There is a file named "test.dat" in your home directory. You need to copy the file to another directory at "/mnt/test/". For the destination directory your account has only "write" permissions. "cp ~/test.dat /mnt/test/" fails with an error. On this Linux server "cp" is custom compiled not to show any error details. There are several possible reasons while the command failed, depending on the various factors. Please list as many potential reasons as possible.




Write a shell script for the following question



Disk space status



 Write a shell script for the following questions;


1.User account management

2. Disk space status

3.Combining and Splitting file


Write a shell script for the following questions;


Backup a file system


Write a shell script for the following questions;


Accessing data from a file (the file could be database, log, or text file)


Including the initial parent process, how many processes are created

by the program given below?

int main()

{

/* fork a child process */

fork();

/* fork another child process */

fork();

/* and fork another */

fork();

}


what is the ls option to print out only the author of a file name?


DECISION MAKINGDecision Making Under CertaintyLinear ProgrammingHOMEWORK 1You operate a small wooden toy company making two products: alphabet blocks and wooden trucks. Your profit is $30 per box of blocks and $40 per box of trucks. Producing a box of blocks requires one hour of woodworking and two hours of painting; producing a box of trucks takes three hours of woodworking but only one hour of painting. You employ three woodworkers and two painters, each working 40 hours a week. How many boxes of blocks (B) and trucks (T) should you make each week to maximize profit? Solve graphically (using millimetric paper) as a linear program and confirm analytically.


Write a script which does ls to a non-existent file. Display an exit status of the

previous command. Now create the file and again display the exit status


marks obtained by a student in two different subjects are input through the keyboard.


The student gets a division as per the following rules. (Using elif clause).


if percentage greater than or equal to 60 get First division


if percentage greater than or equal to 50 or less than 60 get Second division


if percentage greater than or equal to 40 or less than 50 get Third division


if percentage less than 40 Fail.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS