In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to write linux file path, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The path is in the form of a tree, starting with the root, denoted by the symbol "/", and the absolute path begins with /. All disk partitions in Linux are hung under the root directory "/".
For example, there is a hard disk in a LINUX, and a hard disk has four partitions. If the partition is the main partition, it is represented as sda1 sda2 sda3 sda4.
If there is only one primary partition, the other is represented as sda1 sda5 sda6 sda7 (the old LINUX version identified the hard disk as hda). These four partitions have at least one root partition /, at least one partition is swap partition (that is, virtual memory partition), and the remaining two partitions can be mounted under the root partition directory respectively according to the actual need.
For example, in the above four partitions, sda1 is the root partition, sda5 is the swap partition, and home,mnt exists under the sda1 root partition. Do not mount the partition sda6,sda7 under the home mnt directory, then the path of the partition sda6,sda7 is expressed as / home / mnt.
For example, saving a file a.txt in the home directory is represented by a path as / home/a.txt, which can be understood as saving a file a.txt under the partition sda6.
How to write the path of linux file?
To put it simply, add the things you usually click with the mouse, write every time you click, click on what is in that folder, and continue / write your name after that.
For example, this is the path to the configuration file after the installation of apache's rpm package: / etc/httpd/conf/httpd.conf
The same is true for other files. You can use the cd command to switch paths: cd / usr/local
You can also use the pwd command to display the current path.
The above is how to write all the contents of the linux file path, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.