In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the linux file creation command which is the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this linux document creation command which article will have a harvest, let's take a look at it.
File creation command is: 1, the "vi file name" command, the command input to save the file is created; 2, the "touch file name" command, which is used to change the time of the file or directory, if the file does not exist will be automatically created; 3, "echo file content > file name" command, the command will write the specified content to the file.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the linux file creation command
1 、 vi/vim
Vi 1.txt # creates and opens a file 1.txt directly
Note: only when you save the file by entering: W will the file be really created. If you exit directly, the file will not be created.
2 、 touch
The Linux touch command is used to modify the time properties of a file or directory, including access time and change time. If the file does not exist, the system creates a new file.
Touch New File name
3 、 echo
Echo is an output command, which can be used to create files with redirect symbols.
The function of the echo command is to display a piece of text on the monitor, which generally acts as a prompt.
The general format of the command is: echo [- n] string
The option n means that the output text is not wrapped; the string can be in quotation marks or not. When using the echo command to output the quoted string, the string will be output as is; when using the echo command to output the string without quotation marks, each word in the string will be output as a string, and each string will be separated by a space.
Echo "abcd" > 3.txt # can directly create the file 3.txt and write the abcd. This is the end of the article on "which is the linux file creation command?" Thank you for reading! I believe you all have a certain understanding of the knowledge of "which is the linux document creation command". If you want to learn more knowledge, you are welcome to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.