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,600 courses taught by industry experts or purchase this course individually.
Create files and directories
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Use input-output redirection (>, >>, |, 2>, and more)5m 2s
-
Use grep and regular expressions to analyze text5m 55s
-
(Locked)
Archive files using tar4m 40s
-
(Locked)
Compress files and archives4m 14s
-
(Locked)
Create files and directories5m 18s
-
Copy files and directories5m 48s
-
(Locked)
Move files and directories4m 59s
-
(Locked)
Remove files and directories6m 2s
-
(Locked)
Create hard and soft links4m 55s
-
(Locked)
Introduction to vim3m 33s
-
(Locked)
Editing text with vim2m 45s
-
(Locked)
Locate, read, and use system documentation5m 2s
-
(Locked)
Locate and interpret system log files6m
-
(Locked)
Reading the system journal3m 18s
-
(Locked)
-
-