How to Create a 2GB Large File in Linux in Seconds?

Typically, we use the touch command to create an empty file.However, when we are troubleshooting or want to test in certain specific scenarios, we may need large files of specific sizes, such as 500 MB or 2 GB. At this time, we can’t just create an empty file and start writing junk text into it. … Read more

Linux (9): Creating Files & Folders

Linux (9): Creating Files & Folders

1. Core Purpose & Concepts Core Purpose: Use specific command-line tools to create new, empty files and directories (folders), thereby starting to modify the file system. Core Terminology: <span>touch</span>: A command used to create empty files or update the timestamp of existing files. <span>mkdir</span> (Make Directory): A command used to create empty directories. Redirection <span>></span>: … Read more