In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux lsattr command to show file hidden attributes, I believe that most people do not know much, so share this article for you to learn, I hope you will learn a lot after reading this article, let's go to learn the method!
The English full name of the lsattr command is "list attribute", which is used to view the specific attribute information of a specific device or file on the second extended file system of Linux. This command is often used with chattr, the chattr command is used to change the hidden properties of a file or directory, and the lsattr command is used to view its properties.
Syntax format: lsattr [parameters] [file]
Common parameters:
-a lists all files in the directory, including hidden files-d shows only directory names-R recursively processes all files and subdirectories under the specified directory-v display files or directory versions-V display version information-D displays the name of the attribute, the default value-E displays the current value of the attribute obtained from the user equipment database
Reference example:
Use the lsattr command to display file properties:
[root@linuxcool ~] # lsattr / etc/resolv.conf
Displays the current valid value of the device en0:
[root@linuxcool] # lsattr-E-H-l en0
Displays the value of the arp property of eno:
[root@linuxcool] # lsattr-R-l en0-an arp
To display the current property values for a rmt0 tape device:
[root@linuxcool] # lsattr-l rmt0-E
To display the default attribute values for rmt0 tape devices:
[root@linuxcool] # lsattr-l rmt0-D above shows all the contents of the hidden attributes of the file using the lsattr command of linux. 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.