Just keep in mind that if you want to open a specific file, you will need to be in the directory where the file is located. The command would look like: nano demo.txt Let’s say we want to open a file named demo.txt. The main syntax to open Nano and to edit a certain file is: nano filename Then, we’ll show you some editing tips and other basic commands that you can use in Nano text editor. In this part, you are going to learn how to open and close files. As soon as the setup ends, you can use it immediately. We can run this command to install Nano text editor on CentOS or RHEL based platforms: yum install nano This means you may be prompted to enter a password in case you are currently not logged in as a root user. Important! The sudo part is meant for running this command as a root user.
0 Comments
Leave a Reply. |