Each answer is 3 points Please write the answer at Part I U

Each answer is 3 points. Please write the answer at _______ Part I. Unix commands - more, Is, rm, mv, mkdir, pwd, date, who, man, java, ps, chmod Which unix command can rename a file? _______ Which unix command can list all files in the directory? _______ Which unix command can delete tiles? _______ If Test.Java has been successfully compiled, please write a complete unix statement to run the program. _______ The number of permission mode rwx -wx r-x is: _______

Solution

Part 1 :

1. Syntax :

Example :

Renames the file \"computer hope.txt\" to \"computer hope 2.txt\".

2. Syntax

Example

3 . Delete a single file in the current directory

Syntax : rm filename

  Delete several files using a wildcard

Syntax : rm file1.*

This will delete files called file1.txt or file1.html and so on

4 . In Terminal go to where the class file is generated after successful compilation and then type following command to run.

Command : java classname (ex : java HellowWorld ) ---No need .java extension for file name

5. rwx means read ,write,execute permissions - 7

-wx means write,execute permissions --3

r-x means read,write permissions --5

Part -III : first constructor A invoked ,but constructor A invokes the constrctor B as first statement because B is extension of A.

Output : yellow

red

blue

 Each answer is 3 points. Please write the answer at _______ Part I. Unix commands - more, Is, rm, mv, mkdir, pwd, date, who, man, java, ps, chmod Which unix co

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site