Computer Fundamentals Index

Computer Introduction Types of computer Characteristics of computer Uses of computer History of Computers

Computer Languages

Low Level language Middle level Language High level language

Computer Generation

Generation of Computers First Generation of Computer Second generation of Computers Third generation of Computers Fourth generation of Computers Fifth generation of Computers Sixth Generation of Computer

Peripheral Devices

Input devices Output device

Components

Block diagram and basic components Control processing unit (CPU) Software Hardware

Memory

Computer Memory Registers Memory Hierarchy RAM Vs ROM Understanding file sizes (Bytes, KB, MB, GB, TB, PB, EB, ZB, YB)

Computer Network

Types of Network Types of Area Networks (LAN, WAN, MAN) TCP Flags

Computer Virus

Computer Virus

Computer Ports

Computer Ports

How

How to hack a computer How much do Computer Programmers make How does a Computer work How to associate a file with a program How does a computer convert text into binary How does a computer process data into information How to fix a CD-ROM DVD How to fix the no input signal How to install computer memory How to associate a file with a program How to log out of your operating system How do I change my name on Google How to installation or uninstallation Microsoft Paint How to fix a not a valid Win32 application error How to fix missing Microsoft Windows .dll files How to use a computer keyboard How to erase my hard drive and start over How can I test how many words I can write a minute How to shut down a computer How do I open and edit the Windows registry How to edit the registry from the command line How to restart Microsoft Windows How to install a computer processor How to open Microsoft Paint How to fix problems in Windows after installing new software How to enable or disable the preview pane of Microsoft Outlook How to open a Microsoft .wps or Works file in Word How to view the HTML source code in Microsoft Word How to View or Change the Screen Resolution of a Monitor How to Connect and Install a Computer Keyboard How to Delete Temporary Files in Windows 10 How to determine Which Version of Microsoft Office I'm using How to find out how much hard drive space is available How to Fix PC Stuck on Verifying DMI Pool Data How to choose which items show in the notification area How to find similar images using Search by Image How to fix Low Memory and out of memory errors How To Replace the CMOS Battery How do I Update my Antivirus Program How to fix a general protection fault How to Identify problems in the Windows Device Manager How can the Base be Shown How to test if a Website or Web Page is down How Much is 1 Byte, Kilobyte, Megabyte, Gigabyte, etc How to fix a CMOS checksum error How to Fix a Windows CD-ROM, DVD, or Disc Drive Issue How to Open Safe Mode How to Password Protect Files and Folders in Windows How to Reset CMOS or BIOS Settings How to use Computer Keyboard How to create a text file How to enable or disable DHCP in Windows How to test computer memory to determine if its bad How do double space or change line spacing in Microsoft Word How do I know if I have Windows Administrator Rights How many cores does my computer have How to Create a Directory or Folder How to Enter and Exit the BIOS or CMOS Setup How to change Windows Compatibility mode How to clear your internet browser history How to Connect Computer Speakers How to Copy a Web Page Link or URL How to install a Hard Drive or SSD How to Open the Windows Control Panel How to split a screen in Windows How to copy text from a scanned PDF

Questions

Who invented Computer What are the advantages of the Internet? What are the disadvantages of the Internet? Is my computer 64 bit? What is Edge Computing? What is a Router? What is Monitor What is Printer What is a Web Browser What is Microphone What is a Webcam What is PC What is Keyboard What is Motherboard What is WAP What is URL What is a Digital Assistant When was the first Computer Invented What is Modem What is Firmware What is Imperative Programming What is Protocol What is Safe Mode What is Device Driver What is Hybrid Topology What is Mesh Topology What is Procedural language What is a hyperlink What is a Username Who invented the Internet What is Video Card What is Sound Card What is Binary What does Alt+B do What does Alt+D do What does Alt+E do What does Alt+Esc do What does Alt+R do What does ALT + Q do What does Alt + Tab do What is Data Manipulation What is a touch screen What is Back Panel What is Analog Monitor What is AR lens What is an ATX Style Connector What is a File System What is Hard Disk Drive (HDD) What is a boot device What is accessibility What is Line In What is network Interface card (NIC) What is Optical Disk Where can I ask questions on the internet What is Auto Rotate What is CAD (Computer-aided design) What is Cable Modem What is Home Page What is boot menu What is braille reader What is flash memory What is Windows What is Clipboard What is Cyber Warfare What is Myspace Why has my IP address changed What is Jacquard Loom My computer is running slow, what steps can I do to fix it What is a Kensington Lock What is a multicore processor What is automation Are smartphones and tablets computers What is a Login Script What is a Loosely Typed Language What is Multitasking? Why my computer monitor shows no display or black screen What is REM What is Parallelization What is Overtype mode What is open with What is Bracket What is an Online Service What is REM What is Parallelization What is Overtype mode What is open with What is Bracket What is an Online Service What is the Pg Dn Key (Page Down Key) What is the Pg up Key (Page up Key) What is Palmtop Computer What is a Processing Device What is a Print Preview What is the Print Screen Key What can I do if my computer or laptop is lost or stolen What is a Model Number What are the currently available antivirus programs What are Toggle keys What is a Case fan What is a Silicon Chip What is a Slate PC What is a TAB stop What is an Octothorpe What is Task Pane What is Task View What is the svchost.exe file used for in Windows Where can I find free online virus scanners Why am I unable to increase the resolution in Windows What is Autofill When I click my mouse, it sometimes double-clicks What is Scratch What is UDIMM What is MsConfig What is an Expansion Card What is an Executable File What is an Elevated Command Prompt What is an AC Adapter What is AIMBOT What is a Software Suite What is a LED Monitor What does Alt + X do What does alt + space do What does Alt + O do Now that I’ve got a Computer, what can i do What is a Punch Card What is RDIMM What is Select All What is Serial number What is Thermos flask What programs can I use for speech recognition What are the Advantages of Computers What are the Disadvantages of Computers What does Alt + T do What Hardware Device Drivers should be Updated What is a Desktop What is a Ring Topology What is CMOS What is a Directory What is a Mechanical Mouse What is a Plotter What is a Variable What is an Icon What is Data What is HDMI What is Remote What is Right-Click What is SMPS Why does my Laptop not turn on What is a Copyright What is a Cordless Mouse What is a CSV file What is a Joystick What is a Start Button What is a Taskbar What is an Alignment What is an Output Device What is Cat 5 What is Google Chrome What is Post What are Recordable DVD Drives What Does Alt + F4 Do What Does Alt + L Do What is a bit (Binary Digit) What is a cable What is a Calculator What is a capacitor What is a Cold Boot What is a Dialog Box What is a Dual-boot What is a Slide What is A4 What is AM What is Barcode Reader What is EHCI What is a Header What is a Joystick What is a Secondary Storage Device What is Access Time What is Account Sharing What is an Asterisk What is Asynchronous DRAM What is Back Quote What is BIOS What is Borderless Printing What is Case Badge What is CD-ROM What is Chat Slang What is Composite What is RJ Cable What Are Bottom Row Keys What is SAN What is Tray What is VDU What Does Alt + M Do What Does Alt + P Do What is a Cell What is a Command Key What is a key Combination What is a Menu Bar What is a Startup What is a T What is Chat What are the F1 through F12 keys What does Alt + Enter do What Does Alt + Home DO What does Alt + R do What does Ctrl + B do What Does Ctrl + Enter Do What Does Ctrl + R Do What does Ctrl + G do What does Ctrl + 9 do What does Ctrl + End do What does Ctrl + O do What Does Ctrl + P do What Does Ctrl + Q do What is a Colon What is a Core What is Apple Touch Icon What is Clock What is Code What is Computer Crime What is Ctrl What is DAT What is Data diddling What is Date Why won't my computer turn on What Does Alt + N Do What does ctrl + 2 do What does ctrl + space do What does Ctrl + W do What does Ctrl + T Do What Does Ctrl + 2 do What does Ctrl + 5 Do What are the most common file types and file extensions What are Sticky keys What Does Ctrl + Shift + Esc Do What is Settings What is Task Manager What is Taskbar What is a DNS Resolver What does ctrl + 1 do What does ctrl + 0 do How to install software What is a Folder What is a Legend What is a MAC Address What is a Path What is a Ruler What is a Toolbar What is an Intranet Meaning and Differences with Internet What is an SSD What is Inheritance What is Tablet What is Depth What is Docking Station What is Double Click What is a Solid Ink Printer What is a Temporary File What is Backup and Restore What is Electronic Payment Systems Eps What is Marshalling

Difference

Difference between hardware and software Difference between multiprocessor and distributed systems Difference between Desktop and Laptop Difference between File and folder Difference between Hard Copy and Soft Copy Open Source Programs vs Closed Source Programs Difference between Optical Fibre and Coaxial Cable Difference between Website and Webpage Difference between Classes and Objects Input VS Output Difference between Primary and Secondary Storage with Examples

Misc

Quantum Computing Computer Software Autoexec.bat and config.sys info Update an Antivirus Use of Internet Advantages and disadvantages of Email Computing Power Internet Explorer Shortcut Keys Advanced Encryption Standard (AES) Augmented Reality Infrastructure Readiness Check Top 10 Internet tips and tricks Introduction and Features of FoxPro Features of Multimedia Top 10 online services and applications Receiving S.M.A.R.T. status bad backup and replacing error Version Control System Uninstalling Software or Apps in Windows Data Warehouse Increase or decrease font size in Word using keyboard shortcuts Mouse not detected or working in Windows Computer Cleaning Information and Steps Function Keys on Keyboard Windows 7 Alt+Tab won’t stay on top or stick 10 Essential Examples of Web Browsers Binary Subtraction using 2’s Complement Case Sensitive Languages Computer Pioneers and people who are CEO Microsoft Word Shortcut Keys Parts of Computers Names, Definitions and Images ROM and its Types Basics of Information Technology Characteristics of a Good Software Design Characteristics of Management Information System Classification of Management Information System Implementation of MIS Input Devices of Computer Definition Limitations of Management Information System 3 Types Of Network in Computer Block Diagram Of Control Unit Difference Between Computer and Embedded System Difference Between Hard Disk and Floppy Disk Abstraction in OOAD Hardware and Software Devices Optomechanical Mouse CMOS Memory What is a Terminal? What is Graphic Design? What is Load? What is Passcode? What is Reboot? What is Registry? What is Safe Mode? What is Standby? What is SYN (Synchronize)? What is Task Manager? Attribute Computing BPS in Computer Bulletin Board System Light Pen Input Device 3 TYPES OF NETWORK IN COMPUTER Block diagram of control unit What is a Solid Ink Printer? What is a Temporary File? What is an App launcher? What is Backup and Restore? What is a Tab Character? What is the Core i3? What is Paint? What is a Workbook? Advantages and Disadvantages of Online Education What is a String? What is a VDU (Visible Display Unit)? 50 Uses of Computer What is Workspace? What is a Procedural Language? What is VGA (Video Graphics Array)? Object Linking and Embedding in MS Word Semiconductor Memory Types of Parallel Computing Web Resources Difference between Virus, Worm and Trojan Horse Difference between HQ (High Quality) and HD (High Definition) What is Text Wrapping What is Timestamp? Semiconductor Ram Memory What is a File Attribute? What is a Video Call? Difference between SDRAM and DDR What is ANSI? Difference between DOS and Windows How to Set the Path and Environment Variables in Windows? Mainframe System What is ScanDisk? C drive in Mac Computer Memory Table How to Change the Keyboard Language in Windows? What is a Video Call? What is a Zoom Slider? What is Floppy Disk in Computer What is the most Popular Operating System? OMR in Computer What is a Work Area?

What is a File Attribute?

File attributes are meta-data that describe and may modify how files or directories in a filesystem behave. They are characteristics of the file itself, such as file name, file type, date (on which file was created), location, size, protection, etc. These attributes are associated with files by the operating system and may vary in different operating systems. Some common file attributes include read-only flag, hidden flag, system flag, archive flag, etc. File attributes are essential for storing data on computers and managing files.

What is a File Attribute?

The file attributes act as flags or switches pointing to specific conditions for files and folders. An attribute exists in two states: enabled (set) or disabled (cleared). These attributes are used by the operating systems and other applications to manage, control, and organize files effectively. Attributes are easily recognizable from different forms of metadata, such as dates and times, extensions of filenames, and the permissions of the file system. Moreover, assigning attributes to directories, drives, and other objects within the file system is possible apart from files.

Types of Attributes

Based on computer Operating Systems, there are seven main file attributes discussed below:

1. Read Only (R)

The indication suggests that the document should not be altered. Unless the program explicitly demands it, the file system API generally does not authorize the requesting application to modify the file upon opening. The system typically disregards read-only attributes on directories as they serve a different purpose. By activating read-only mode in a file, a user can prevent accidental deletion or any modification to the file.

2. Hidden (H)

Enabling the hidden feature indicates that the hosting file is invisible. Unless explicitly requested, MS-DOS commands like dir and Windows apps like File Explorer do not display hidden files by default. You cannot see the file or folders from the normal directory listing by enabling this.

3. System (S)

The information suggests that the hosting document is a vital system file for properly operating the computer. It is utilised to identify significant system files in both MS-DOS and Microsoft Windows. Unless specifically prompted, default MS-DOS commands such as dir and Windows applications like File Explorer do not exhibit system files, even if hidden files are made visible.

4. Archive (A)

When it is enabled, It means that the hosting file has changed since the last backup. The Windows file system adds this attribute to any changed file. Backup software is responsible for clearing it after a successful full or incremental backup.

5. Compressed (C)

This indicates that a file has been compressed to save space.

6. Encrypted (E)

It specifies that the file or folder has been encrypted for security purposes.

7. Indexed (I)

It allows faster searches for content within a file or folder.

What is a File Attribute?

Note: The Encrypted, Compressed and Indexed file attributes were first presented in Windows OS with the NTFS file system. These are not available in the previous FAT file system.

What are FAT, NTFS and ext4?

File attributes may differ depending on the underlying file system. Includes

FAT (File Allocation Table): FAT is a unique file system designed specifically for hard drives with 12 or 16 bits assigned to each cluster entry. It employs a table allocation method to monitor the clusters. Numerous FAT variations exist, including FAT 12, FAT 16, and FAT 32. FAT is compatible with diverse operating systems such as Windows and Linux, effectively overseeing the management of files and other components on hard drives.

  • The FAT 16 file system has a maximum capacity of 4 gigabytes for storing files, while individual files cannot exceed 2 GB.
  • When we compare FAT 13 to FAT 32, we notice that FAT 32 offers a greater capacity and file size. Nevertheless, it does have some significant disadvantages.

NTFS (New Technology File System): NTFS is a privately owned journaling file system, debuting alongside the Windows NT Operating System. This remarkable file system enables the accommodation of substantial files while enhancing security measures through access control lists (ACLs). Among its notable features is journaling, which enhances the legibility of data. Additionally, NTFS boasts other functionalities such as compression, encryption, and the implementation of disk quotas.

  • NTFS offers superior security capabilities compared to FAT. Its enhanced data structures enable it to outperform FAT in terms of performance.
  • The default file system for Windows OS is known as NTFS. However, its compatibility with non-Windows platforms is quite restricted.

Ext4: Ext4 is a file system used by Linux OS. It is an extended version of Ext3 that includes more features than the older Ext3. It also supports journaling, a technique used to improve file system reliability. It helps recover the file system in case of issues like power failure. Ext4 supports larger file sizes and volume sizes than Ext3. It supports volumes up to 1 exabyte size and files up to 16 terabytes.

  • Ext4 has a 256-byte inode structure, allowing more space for extended attributes and improved performance.
  • Ext4 easily supports online defragmentation, enabling you to optimise disk placement without unmounting the file system.

Apart from the attributes mentioned above, a few more exist in Windows Explorer’s Attributes column.

  • Directory (D): The inclusion represents a subfolder with individual file and folder inclusions.
  • Sparse (P): The file is sparse, meaning its contents are partially empty and not contiguous.
  • Temporary (T): By enabling this feature, your file will be used for temporary storage.
  • Reparse Point (L): The file or directory is either a re-parse point or a symbolic link.
  • Offline (O): The file data is physically transferred to remote storage (offline storage).

Bit Representation of Attributes

A file's attributes are stored in byte format, each assigned to a bit of a byte. The system will assign 'one' to the corresponding bit to enable a specific attribute, representing the 'On' state. This is known as flagging or setting the attribute. The file attributes in the Windows operating system (Win32) are stored as a 32-bit quantity, whereas the original MS-DOS file attributes only have 8 bits to store file attributes.

The following are some of the most common attributes and the bits that represent them:

AttributeValue (In Bit)
Archive00100000
Directory00010000
System00000100
Read-Only00000001
Not-Content Indexed10000000000000
Hidden00000010

Some Other File Attribute

Apart from the above-described attributes, some other common file attributes are available, which are summarized below:

What is a File Attribute?
  • Name: A name generally consists of several characters. A name given to the File or Folder is known as File Name.
  • Type: It specifies a file type, such as a source code file format (.c, .js, .java, etc.) and an archive file format (.zip and .rar).
  • Location: The location attribute defines the path on the device of a file. This attribute is a pointer to a device.
  • Size: It specifies the current size of the file. The file size is considered in kb, mb, gb, and tb.
  • Protection: It ensures access control (permission) information on who can read, write, and open the file. It provides security to crucial data or information.
  • Identifier: It defines a unique number for a file. It is not readable to the users as a file name. It recognizes files within the file system.
  • Date, Time, & User Identification: This information tells users about the data and time on which date the file was created, last edited, created and modified by which user.
What is a File Attribute?

Why are File Attributes Used?

Here are the most important factors why file attributes are used:

Security and Protection

  • By enabling this, you can prevent accidental file modifications. The Read-only attribute allows you to keep files or folders safe from modification.
  • Using the hiding feature in the file system, one can secure their files from casual view, protecting crucial information.
  • The Encrypted attribute allows you to secure files by swilling their contents.
  • The System attribute protects critical system files from unauthorised or accidental modification.

Compatibility and Operability

  • Attributes help to ensure that files behave relevant across different operating systems and software applications.
  • It maintains file integrity by preserving file contents during transfer and operations.

Optimisation and Efficiency

  • The compressed attribute diminishes file size and saves storage space.
  • The indexing attributes provide quick content search within files.
  • The archive attribute facilitates the backup process by considering the files that need attention.

Troubleshooting and Diagnostics

  • Attributes can help files with troubleshooting and other specific issues.
  • They log modifications, allowing for diagnostic analysis of file activity.

Organisation and Control

  • Attributes categorise files to maintain organisation and management tasks.
  • This attribute customises file actions such as directory visibility and write access permissions.
  • Attributes help track file states such as archived, compressed, encrypted, etc.

In short, file attributes are important for:

  • Protecting data integrity and making them secure.
  • Open the door for troubleshooting and diagnostics.
  • Attributes optimise storage, performance, and file management.
  • Organise and classify files effectively.
  • Attributes ensure compatibility and interoperability across systems.

How to Set File Attribute?

Here's a comprehensive guide to setting file attributes in various OS like Windows, Linux and macOS:

In Windows (Using GUI)

  • Right-click on the file or folder.
  • Then, choose the Properties option.
  • Now, you can see options like Read Only, Hidden, and Archive.
  • Check the options you want to keep from the Attribute section.
  • In the last, click Apply or OK to set the attributes.
What is a File Attribute?

Command Prompt

  • Launch Command Prompt.
  • Type the attrib /? Command.
  • To set the Read-only, use the command: attrib +R filename.ext.
  • To set Hidden: attrib +H filename.ext.
  • To clear Read-only: attrib -R filename.ext.
  • To clear Hidden: attrib -H filename.ext.

Note: Replace filename.ext with the actual filename and extension.

In Linux and macOS (Command Line)

  • Open the terminal window.
  • Then type the chmod command to perform several actions:
  • Use the command to make the file read-only: chmod +r filename.ext.
  • To make the file writable: chmod +w filename.ext
  • To make the file executable: chmod +x filename.ext.
  • To remove read-only: chmod -r filename.ext.
  • To set setuid attribute, for security purposes: chmod u+s filename.ext.
  • To view existing attributes: lsattr filename.ext.

Note: Replace filename.ext with the actual filename and extension.

Other Methods

Apart from the Command line interface and graphical interface methods, several methods are available to set the attributes of a file system.

Using File Explorer: You can also set the attributes using File Explorer’s properties in Windows OS.

Using Programming Languages: Several programming languages, such as Python, provide functions to set file attributes.

Note: Not sure all file attributes can be set using these methods. For example, system, compressed, encrypted, etc. Perform every action cautiously when modifying file attributes, especially those related to system files or security, and proceed with caution. If you are unsure or not confident, refer to the documentation for your operating and file systems.

File Attribute vs Folder Attribute

Here are the key differences between the file and folder attributes.

File AttributeFolder Attribute
Actions will apply to individual files.Actions will apply to whole folders and their contents.
Applied attributes control the file’s properties and behaviors.Attributes control how folders and their files are maintained and displayed.
Common attributes are Read-only, Hidden, System, Archive, Compressed, Encrypted and Indexing.Read-only, Hidden, System, Archive, Compressed and Encrypted.
Hidden file attributes only hide the individual file.Hidden attributes of the folder hide both the folders and its files.
  System file attributes protect individual system files.System folder attributes protect files within the folder.
Archive and compression attributes work.Archive and compression attributes function.
The encryption attribute only encrypts the individual file.The Encrypt folder attribute encrypts all the files within a folder.

Conclusion

The File attributes allow you to perform several actions for enforcing many purposes. File attributes are metadata flags indicating how files and folders function. These flags enable us to secure sensitive data, optimise storage, and organise files effectively, enabling them to be in a secure format in this digital era.