Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux-4week

Shulou Source: shulou.com Published: 2022-06-03 08:58:28 12月06日 Update

1. Count the number of users whose default shell is not / sbin/nologin in the / etc/passwd file, and display all the users.

2. Find out the user name, UID and shell type of the maximum UID of the user

3. Count the number of connections to each remote host IP that is currently connected to this machine, and sort them from large to small

4. Write a script createuser.sh to achieve the following functions: use a user name as a parameter, if the user of the specified parameter exists, show its existence, otherwise add it; display information such as the id number of the added user

5. Write a script that generates the basic format of the script, including author, contact information, version, time, description, etc.

Tags: User script parameter user name statistics maximum number host author information function file method time maximum value format version type contact information and will Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux NVidia Shulou Information Xiaomi