nano is perhaps the simplest Linux command line editor. We learn how to open a file and cut, copy, and paste text, and save it again.
- [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 of there.…
So let's write out our file by typing in…
- Learning Linux command syntax
- Getting help on the CLI and GUI
- Finding help online
- Using basic commands
- Navigating file systems
- Editing text
Skill Level Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
Setting up a Red Hat Enterprise Linux Serverwith Sandra Toner2h 46m Intermediate
1. Getting Help
2. Using Basic Commands
3. Navigating File Systems
4. Editing Text
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.