[SOLVED] CS4350-Homework5-  program create a new  input file using system command

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon A5-nhk1fm.zip (108.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Then  write  a  C    program  that  does  the  following    :

1. Using  system  command  ,  create  a  new  input  file  (      zp5in-­‐1.txt  )

2. Append  the  following  to  zp5in.txt   Texas  State  University  ,  Spring  2020  ,  Unix  Programming

3. Close  the  input  file  .

4. Display  the  Current  date  and  time

5. Display  Time  of  last  access  of  the  zp5in-­‐1.txt

6. Using  a  system  command  ,  display  the  content  of  the  new  created    input  file.

7.  Change  the  mode  of  the  program  such  that  the  user  and  the  group  has  read  /  write  /  execute   permission.

8. Use  a  system  command  to  list  file  information  after  changing  the  file  mode.

9. Display  System  name

10. Display  Local  host  name

11. Display  Host  name

12. Display  The  process  id

13. Display  Parent  process  id

14. Display  The  priority  level  of  the  process

15. Display  The  file  Name

16. Display  The  device

17. Display  The  inode

18. Display  The  file  protection

19. Display  Number  of  hard  link

20. Display  Owner’s  user  ID

21. Display  Owner’s  group  ID

22. Display  Owner’s  effective  user  ID

23. Display  Size  of    zp5in-­‐1.txt      file

24. Display  Block  size  for  zp5in-­‐1.txt      file

25. Display  Number  of  blocks  allocated  to    zp5in-­‐1.txt      file

26. Append  The  following  to    zp5in-­‐1.txt  :   Final  step.

27. Using  a  System  command  ,  redisplay  the  content  of  zp5in-­‐1.txt    file.

28. Display  The  time  of  last  access  of      zp5in-­‐1.txt      file

29. Rename  The  file  to  be  zp5in-­‐2.txt

30. Using  a  System  command  ,  display  The  content  of  the  new  zp5in-­‐2.txt      file

31. Display  The  current  date  and  time

32. Remove  zp5in-­‐2.txt    files    from  your  current  Directory.

33. Using  system  command  ,  display  the  content  of  zp5in-­‐2.txt    file.

  • A5-nhk1fm.zip