Skip to content

nakulpuranik/linux-sys-prog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solutions for Linux system programming.

  • 1. Write a program which accept file name from user and open that file.

  • 2. Write a program which accept file name and mode from user and then open that file in specified mode.

  • 3. Write a program which accept file name and on mode and that program check whether our process can access that file in accepted mode or not.

  • 4. Write a program which accept file name from user and print all information about that file.

  • 5. Write a program which accept file name and number of bytes from user and read that number of bytes from file.

  • 6. Write a program which accept file name from user and read whole file.

  • 7. Write a program which accept file name from user and write string in that file.

  • 8. Write a program which accept directory name from user and print all file names from that directory.

  • 9. Write a program which accept directory name from user and print all file names and its types from that directory.

  • 10. Write a program which accept directory name from user and print name of such a file having largest size.

  • 11. Write a program which accept two file names from user and copy the contents of an existing file into newly created file.

  • 12. Write a program which accept directory name and file name from user and check whether that file is present in that directory or not.

  • 13. Write a program which accept two directory names from user and move all files from source directory to destination directory.

  • 14. Write program which accept directory name from user and delete all empty files from that directory.

About

Few assignments for Linux System Programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published