From the course: Learning Linux Command Line
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Edit text with nano - Linux Tutorial
From the course: Learning Linux Command Line
Edit text with nano
- [Instructor] Some Linux distributions include a lightweight text editor called Nano. If it's not installed on your system, you can install it. It's quite a bit simpler than Vim, so some people prefer it, though it does lack some power user features that Vim enthusiasts would miss. Let's take a quick look at Nano. I'm working here in Ubuntu desktop, which comes with Nano already installed. In my terminal I'll type nano to launch Nano. Already we can see that Nano is a little bit more user friendly than Vim, especially because it provides a list of some common commands right at the bottom of the screen. The carrot character, that a little upward angle, represents the control key as we saw earlier. So some of these key combinations we see at the bottom of the screen are control G for help, control O to write out or save the file and so on. I'll write some text here. I can move around the screen, which is called the buffer with the arrow keys. The text navigation shortcuts I showed you…
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)
The importance of modularity2m 37s
-
(Locked)
Use pipes to connect commands together2m 54s
-
(Locked)
View text files with cat, head, tail, and less4m 46s
-
(Locked)
Search for text in files and streams with grep5m 21s
-
(Locked)
Manipulate text with awk, sed, and sort7m 33s
-
(Locked)
Edit text with Vim5m 14s
-
(Locked)
Edit text with nano2m 38s
-
(Locked)
Working with tar and zip archives9m 26s
-
(Locked)
Challenge: Create and share a file24s
-
(Locked)
Solution: Create and share a file1m 41s
-
(Locked)
Output redirection5m 38s
-
(Locked)
Exploring environment variables and PATH4m 20s
-
(Locked)
Challenge: Extract information from a text file1m 2s
-
(Locked)
Solution: Extract information from a text file4m
-
(Locked)
-
-