From the course: Linux: System Information and Directory Structure Tools (2017)
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Get familiar with nano - Linux Tutorial
From the course: Linux: System Information and Directory Structure Tools (2017)
Get familiar with nano
- [Instructor] There are multiple command line editors for Linux. Nano is one of the simplest to get started with. All keys with the exception of Control and meta key sequences will enter text into the file being created. To open a text file in Nano, we'll need to start Nano in a terminal. We're passing the dash-U option to enable the undo feature. Type in nano -u nanofile.txt and hit enter. This will use Nano to open a file in our current directory named nanofile.txt. Don't worry if it doesn't exist, as Nano will create it for us when we save. Once Nano opens, we'll see at the top of the screen the version of Nano we're using and then in the center, the path and filename of the document we're editing. At the bottom, we have a visual menu of functions. Let's add some text first before exploring the interface. Type in line one and line two and hit enter. To get help in Nano, type left control G, and we can see that we have a table of keyboard shortcuts. Press left control X to get out…
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.