In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux commonly used command fold how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Linux commonly used command fold command is used to limit the file column width. The fold instruction will read the contents from the specified file, add additional characters to the columns that exceed the limited column width, and output them to the standard output device.
Syntax fold [- bs] [- w] [--help] [--version] [file..] Parameters:
-b or-bytes calculates the column width in Byte rather than the number of rows.
-s or-spaces take the space character as the break point.
-w or-width sets the maximum number of rows per column.
-help online help.
-version displays version information.
For example, to fold the line of a file named testfile to a width of 30, you can use the following command:
Fold-w 30 testfile for comparison, output the testfile file as follows:
$cat testfile # View the contents of testfile Linux networks are becoming more and more common, but security is often an overlooked issue. Unfortunately, in today's environment all networks are potential hacker targets, from top-secret military research networks to small home LANs. Linux Network Security focuses on securing Linux in a networked environment, where the security of the entire network needs to be considered rather than just isolated machines. It uses a mix of theory and practical techniques to teach administrators how to install and use security applications, as well as how the applications work and why they are necessary. Then use the fold command to collapse the display:
The $fold-w 30 testfile # line is folded to a width of 30, showing the testfile file Linux networks are becoming more and more common, but securi ty is often an overlooked issu e. Unfortunately, in today's environment all networks are potential hacker targets, from top-secret military research networks to small home LANs. Linux Network Security focuses on securing Linux in a networ ked environment, where the sec urity of the entire network ne eds to be considered rather th an just isolated machines. It uses a mix of theory and pract ical techniques to teach admin istrators how to install and use security applications, as w ell as how the applications wo rk and why they are necessary thank you for reading this article carefully. I hope the article "how to use Linux commands fold" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.