Decipher text1/21/2023 ![]() ![]() Different scenarios might require that you store the information to a file for reasons such as clarity, troubleshooting, auditing, or being able to analyze the information's structure and other types of content that are there. In other cases, you don't need to have the file physically written because you're only interested in the result (and the data structure is really simple). So, when should you use one method or the other? Well, in some cases, the text file already exists, like the /etc/hosts file, for instance. In many cases, you do have a text file, but in others, you simply use the output of some previous command as if it were a text file. Note: Writing to stdout and reading from stdin using pipes is like using a virtual text file. I cover examples of both cases in this article. In certain situations, you can use text files as an output to be shared with regular users as well. Text files are also simple and convenient data sources for a sysadmin's typical operations. This allows an administrator with the right permissions to examine the files and make changes if required. Something that I like in Linux (and in Unix-like systems in general) is that configurations and properties are contained in text files. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |