Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please Help with These Short Answer Questions!!! It would be greatly appreciated

ID: 3809601 • Letter: P

Question

Please Help with These Short Answer Questions!!! It would be greatly appreciated.

TEST2.pdf Adobe Acrobat Reader DC 2 File Edit View Window Help Home Tools TEST2.pdf 1) (2 points) Assume a Java file test.java has been compiled in current working directory. Write a single line UNIX command to run this Java program at background and redirect the output to a file log.txt. 2) (3 points Write a single line UNIX command to mail only the process ID of running Java program test to the email address test@gsu edu. 3) (2 points) In a Bourne shell script, what command we can write to print out e value of second argument from command line? 4) (2 points) Write a single line UNIX command to list all C files matching the two conditions below the length of filename (excluding ".c") is 5 filename (excluding ".c") ending with "exp 5 (2 points Write a single line UNIX command to move all the .sh files from current folder to parent directory 6) (2 points) Write a single line UNIX command to count the number of characters in the message "I am working on exam 2" Sign In n 08 PM 4/2/2017

Explanation / Answer

1.java test >log.txt
2.echo `ps -ef|grep java| awk '{print $2}'`| mailx -r "FROM_EMAIL" -s "SUBJECT" test@gsu.edu

replace the "FROM_EMAIL" with your email id
3.echo $2

5.cd * ..
6.value="I am working on exam 25" ;echo ${#value}
8.for(n=0;m>0;n++,m+=2){
}