Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use centos CVM

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

The purpose of this article is to share with you about how to use the centos CVM. The editor thinks it is very practical, so I hope you can learn something after reading this article. Let's take a look at it with the editor.

How to use centos CVM? When we type the Linux command on the CVM, we often have to go to a certain directory to operate, so it is very important to understand the meaning of these directories.

1. Centos's operation on the directory

When centos completes the virtualBox and logs in with your account password, you will see a prompt for [root@localhost ~] # this type of Bash shell to wait for command input.

The first step in installing and using centos is to operate on files, which is nothing more than creating files, deleting files, and modifying the access of files to directories.

First enter the ls command, which lists all files and folders in that directory

[root@localhost ~] # ls

Generally speaking, the centos,root directory you just installed is usually an empty file folder. So at this time, you can use cd.. Jump out of this directory

[root@localhost] # cd.

Cd.. If you run this command at this time, you can see a prompt like [root@localhost /] #. If you execute ll at this time, you can see a lot of directories.

/ boot directory is related to centos boot / dev is the device directory, devices include disk, input / output device-keyboard input-screen output device / etc is the system configuration file directory / home is the user directory, when the user is created for centos, a folder is created under this directory by default / lib is used by the system when using some function libraries / root is the directory of root users / tmp is the system cache directory Do not store important files in this directory / usr is the program installation directory, general software is installed in this directory

If you are using a root user, store the files in the root directory

If you enter these directories, you can use the cd command, for example:

[root@localhost /] # cd root cd root is to enter the root directory

[root@localhost /] # the name of the mkdir oo mkdir folder is the create folder

2. Centos's operation on the file

[root@localhost ~] # touch test touch file name is to create a file

[root@localhost ~] # vi test vi is an editor that comes with centos and can edit files.

After the vi file name, I enters edit mode, and Esc enters command mode. Enter: wq is to save the file

[root@localhost ~] # cat test cat is to view files

This is the most basic centos operation on files and folders.

The last delete command is rm

[root@localhost ~] # rm test rm file name can delete the previously created test folder, the same directory.

The above is how to use the centos CVM. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report