Useful Bash Scripts for Linux System Administrator

The Most Important Useful Bash Scripts for Linux System Administrator. The Daily task for every Linux system administrators is to open the Terminal and type the same repeated commands to accomplish the system administrator task for everyday usages. This Bash scripts make life simpler of Linux System Admin to accomplish day to day task with ease. Thanks to Developer of this Bash Scripts that makes daily System Administrator Task more easier than ever.

The Given tasks are performed while using this Scripts.

  1. Linux Operating system Informations
  2. Hostname and DNS Informations
  3. Network Informations
  4. Who is online
  5. Last logged in users
  6. Free and used memory Informations
  7. Get my IP address
  8. My Disk Usage
  9. Process Usage
  10. Users Operations
  11. File Operations

Script for Linux System Administrator

Step-1 (Download the Bash Scripts)

# wget https://github.com/sathisharthar/Admin-Scripts/blob/master/sysinop

Step-2 (Run the Bash Scripts)

# bash sysinop

OR

# sh sysinop

Step-3 (Check the output results of scripts)

It shows the given Menu

1

1. Operating system info

It shows which operating system you are used on host Linux Distro.

2

2. Hostname and dns info

It shows host name and other DNS and IP related informations

3

3. Network info

It shows all NIC related information as wellas shows the public and Private IP related informations

4

4. Who is online

It shows Which User accounts are accessing the Internet on host and other users.

5

5. Last logged in users

It Shows history of login records for your PC the users are login during the usages.

6

6. Free and used memory info

It shows all the memory devices currently attached to your PC and statistics of Free and used memory informations in tabular formats.

7

7. Get my ip address

It shows what is your public IP address.

8

8. My Disk Usage

It shows the disk usages in percentage for all your partitions

9

9. Process Usage

In Process Usage following menu is appear like this and used for process administration for sysadmin

10

1. Show all processes

It shows all running process running on your PC.

11

2. Kill a process

It allows you to kill process by using the PIDs.

12

3. Bring up top

It allows you to execute the top command

13

4. Return to Main Menu

It uses to return back to Main Menu

5. Shut down

It uses to perform halt to your PC

10. Users Operations

In Users Operations following menu is appear like this and used for user administration for sysadmin

15

1. Create a user

It is used for creating normal users with ease

14

2. Change the group for a user

It is used to change the group for ever

16

3. Create a group

It is used to make a new group for users

17

4. Delete a user

It is used to remove a user

19

5. Change a password

It is used to change the password of super and normal users

18

6. Return to Main Menu

It uses to return back to Main Menu

7. Shut down

It uses to power off your PC.

11. File Operations

In File Operations following menu is appear like this and used for file and basic administration for sysadmin

20

1. Create a file

It used to creates file with any extensions

21

2. Delete a file

It used to deletes any files

22

3. Create a directory

It creates any directory with ease

23

4. Delete a directory

It deletes a directory with ease

24

5. Create a symbolic link

It create the short link within with symbolic links of files anywhere

26

25

6. Change ownership of a file

It change the file ownership to anyone within this commands

27

7. Change permissions on a file

It changes files permissions of files with read , write and execute permissions

28

8. Modify text within a file

It modify and replaces text with new one

29

9. Compress a file

It is used to compress the files best for reduced size of files

30

10. Decompress a file

It is used to decompress the compressed files

31

11. Return to main menu

It uses to go back to Main Menu

12. Shut down

It is used to turn off you PC

Final Words

Thats all now you have used the most important bash scripts for the Linux system administration. This make complex Linux commands into easy script that is easy to run. If you have any queries regarding to this script you can use the comment section below.

Related Post

Develop New SysAdmin Skills with E-books (FREE Download)

COMMENTS