In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
In linux, you can modify the file name by using the mv command (for example: sudo mv test.txt new.txt) on the command line, or directly through the graphical interface. The following article takes Ubuntu as an example to introduce how to modify the file name in Ubuntu. I hope it will be helpful to you.
Method 1: modify the file name through the command line
1. Open the terminal and enter the command line
2. Use the cd command to go to the directory of the file you want to modify
Example: use the cd. / myFolder command to enter the / home/cdh/myFolder directory. We can view the files in this directory using the ls command:
You can see that there are two files in this directory.
3. Use the mv command to modify the file name
Use the following command to change test.txt to new.txt
Sudo mv test.txt new.txt
Running result:
Method 2. Modify the file name directly through the graphical interface
Note: this method is only useful for linux systems with graphical interfaces.
1. Through the graphical interface, open the file directory where the file name needs to be modified.
2. Right-click after selecting the file-> Select * * rename * *.
1) if [rename] is grayed out, it means that you do not have permission to modify the file
Select [Properties]-- > [permissions], and you can see that I do not have the right to modify permissions. This kind of file needs root user to have the permission to modify the file name. If ordinary users want to modify this kind of file, they can only rename the file by using the terminal, which is the first method mentioned above.
2) if [rename] is white, it means that the file can be renamed.
These are the details of the operation steps for linux to modify the file name. Please pay attention to other related articles for more information.
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.