From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Create files and directories

Create files and directories

- [Instructor] We can use applications like text editors such as Vim or gedit to create files just the same as we would in other operating systems. I'll use Vim for this exercise. In a terminal, type in vim space -/textfile.txt and hit enter. And now we're in Vim and we can add text by pressing the insert key and typing. You'll notice that the bottom line says insert. This lets you know that you're in insert mode. Go ahead and type in some text. When you're done, press escape :wq and hit enter. If you'd like to get a quick overview of how to use Vim check out my course in the library titled Linux Directory Structure and Basic Tools. Now let's verify that we have a file by typing in ls space -l space tilde and hitting enter. We can see that we have a text file dot TXT in the list. In both cases, I use the tilde as a shortcut to my home directory using Vim to create tilde slash textfile.txt creates a file called textfile.txt…

Contents