In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First, sort by time:
Ascending order is the arrangement of data from low to high, and descending order is the arrangement of data from high to low
Ls in descending chronological order: ls-lt (most commonly used)
Ls in ascending chronological order: ls-lrt
View files by file modification time:
Plus-r is the reverse sort:
The command explains:
-t: sort by modification time. In fact, we can use the man ls command to see the use of the parameters with the ls command.-t sort by modification time,newest first sorts files by modification time. The default is the most recently modified first.
-r: reverse sort, reverse order
Example: ls-ltr: sort in reverse by modification time [that is, the latest modification time comes last]
Sort by file size:
Plus-h displays the file size with units:
The command explains:
Ls-lS is sorted from largest to smallest
Ls-Slr is sorted from small to large
Ls lSh | ls-lShr if you want to type in a "human-readable way", add a-h to indicate "--human-readable"
In this way, the unit is k or M, and it is easier to see the results clearly.
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.