Turn on the Read-only attribute like this, with the +R modifier: C:\FILES>attrib +r secret.txtĬheck out more cheat sheets B is for BEEP Suppose you want to protect the SECRET.TXT file so you can't delete or change it. To hide this file, turn on the Hidden attribute by using the plus ( +) operator, like this: C:\FILES>attrib +h secret.txtĪnother common way to use ATTRIB is by manipulating the Read-only attribute, so you don't accidentally overwrite an important file. First, you can show the attributes on that file to see its current settings: C:\FILES>attrib secret.txt For example, suppose you want to "hide" a file called SECRET.TXT so no one would know it was there. An attribute can be one of four values: Hidden (H), System (S), Read-only (R), and Archive (A).įiles marked as Hidden don't display in a directory listing. The ATTRIB program displays or changes a file's attributes. D Process directory names for arguments with Process files, listed in the specified file. S Process files in all directories in the specified path(es). To learn more, add the /? option after most commands to get more information: C:\>attrib /?ĪTTRIB v2.1 - Displays or changes file attributes.Ĭopyright (c) 1998-2003, licensed under GPL2. Let's get started with 26 of my favorite FreeDOS commands. If you're new to FreeDOS, you may be confused about how to use the different command line programs that come with it. Today on June 29, we celebrate 28 years of FreeDOS. We loved DOS so much that in 1994, we created the FreeDOS Project. Now, let’s embark on an exhilarating journey through the expansive world of ASCII emojis.One of my family's first computers ran a command-line operating system called DOS, the "Disk Operating System." I grew up with DOS, and learned to leverage the command line to make my work easier. Adapt your usage to suit the norms of the platform or group you’re engaging with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |