File
A file is a collection of data or information that is stored on a computer system. It can be a text document, image, video, audio, or any other type of digital data. Files are typically organized into directories or folders to help users manage their data.
Some of the most common file attributes include:
1. File name: A name given to the file by the user or the system.
2. File size: The size of the file in bytes, kilobytes, megabytes, or gigabytes.
3. File type: The type of data stored in the file, such as text, image, audio, or video.
4. File location: The directory or folder where the file is stored on the computer system.
5. File permissions: The access rights granted to users or groups to read, write, or execute the file.
6. File creation/modification dates: The date and time when the file was created or last modified.
Some common file operations include:
1. Create: To create a new file.
2. Open: To open an existing file for reading or writing.
3. Read: To read the contents of a file.
4. Write: To write new data to a file.
5. Append: To add new data to the end of an existing file.
6. Delete: To remove a file from the system.
7. Rename: To change the name of a file.
8. Move: To move a file from one location to another.
9. Copy: To make a duplicate copy of a file.
10. Permission management: To manage the access rights of a file for different users or groups.