1. Count the number of users whose default shell is not /sbin/nologin in the /etc/passwd file, and display all users
2. Find the username, UID and shell type of the user with the maximum UID value
3. Count the number of connections for each remote host IP currently connected to this machine and sort them from largest to smallest.
4. Write a script createuser.sh to implement the following functions: use a user name as a parameter, if the user with the specified parameter exists, display its existence, otherwise add it; display the ID number and other information of the added user;
5. Write a script that generates the basic format of the script, including author, contact information, version, time, description, etc.;
This is the end of this article about the detailed use of Linux text processing tools. For more information on the simple use of Linux text processing tools, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: WeChat applet records user movement trajectory
>>: js to realize the mouse following game
Usage of alter command in mysql to edit table str...
First, let's talk about why we use provide/in...
Lists are used to list a series of similar or rela...
Mainly for low version browsers <!-- --> is ...
Optimizing and refining information is always the ...
Nginx cross-domain configuration does not take ef...
This note is an installation tutorial. It has no ...
Preface As a DBA, you will often encounter some M...
Suppose now you want to add an item like this to ...
Preface: In the daily use of the database, it is ...
Table of contents Achieve results Rolling load kn...
About password strength verification: [root@mysql...
Table of contents Creating OAuth Apps Get the cod...
Table of contents background Main content 1. Comp...
Preface Every time you use Docker to start a Hado...