In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what are the basic operations of linux", the content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn "what are the basic operations of linux" this article.
#Before introducing the basic operation of linux, think about how windows operates.
We usually copy, paste, move under windows, how to operate, then how to operate in linux
For example, if I want to copy a file to drive c in windows, everyone should know that first copy that folder, then right-click, select copy, then double-click drive c, enter the c packing directory, right-click, paste, and the file will stick to the c packing directory.
So what should we do in Linux?
Examples:
cp -r Source file path Destination file path//Copy source file to destination file
cp -r /boot / root//means copy the/boot file to root directory
cp -r /boot/* /root/ //means copy all files under/boot/*-boot to/root directory
mv source file path destination file path//is to move the source file to the destination file path, the source file will disappear from the original place. Copies do not disappear from the source file
mv /boot/abc /root//and yes is to move abc under/boot to/root/
# mv also has another meaning: rename:
mv /boot/abc /root/ bgh //means to move and change its file name to bgh
#Let's continue to introduce you to relative paths and absolute paths
A relative path is: anything that does not start with/is a relative path.
The absolute path is: the absolute path starts with/
Example: If I were to list files under/boot, one would list them in relative paths and one would list them in absolute paths.
1. cd / boot / //first enter the boot directory
pwd //Display current working directory
ls //This is what is listed under/boot/in the relative path
2. ls / boot /This is the absolute path shown because it starts with root, no matter what directory you work in, as long as it starts with/is the absolute path
#A brief introduction to the creation of directories and files
mkdir /boot/abc //is to create an abc directory for the boot directory
mkdir -p /abc/bca //means recursively creating directories under the root,
ls -R /abc //means recursive display
The requested URL/boot/abc/1.txt was not found on this server.
How to create multiple files in one directory
For example: to create a.txt b.txt 2.txt under/boot/directory
It is generally recommended to establish a path under the relative path
cd / boot/
touch a.txt b.txt 2.txt //Enter the boot directory and create multiple files
#Here's how to delete files
The requested URL/boot/a.txt was not found on this server.
#Simple introduction to shortcuts in Linux
Ctrl + l = clear //Clear the entire screen
Ctrl + u //Clear to first line
Ctrl+ c //Discard the command currently being edited
Ctrl +e //Skip to the last line
Ctrl +a //Jump to the first line
The above is "what are the basic operations of linux" all the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to 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.