Common Commands for System Administration in Ubuntu

In Ubuntu, system management commands are used to manage system resources and configuration. The following are commonly used system administration commands in Ubuntu:

  1. ps

The ps command is used to list currently running processes.

For example, to list all running processes, the following command can be used:

ps aux
  1. top

The top command is used to view the system's process, CPU, memory and other resource usage in real time.

For example, to view system resource usage in real time, you can use the following command:

top
  1. kill

The kill command is used to terminate a process.

For example, to kill process 12345, the following command can be used:

kill 12345
  1. free

The free command is used to view detailed information about system memory.

For example, to view detailed information about system memory, you can use the following command:

free -m
  1. ifconfig

The ifconfig command is used to view and configure network interfaces.

For example, to view the details of a network interface, the following command can be used:

ifconfig
  1. reboot

The reboot command is used to reboot the system.

For example, to reboot the system, the following command can be used:

reboot
  1. shutdown

The shutdown command is used to shut down the system.

For example, to shut down the system, the following command can be used:

shutdown now
  1. df

The df command is used to view disk space usage.

For example, to view system disk space usage, you can use the following command:

df -h

The above are commonly used system management commands in Ubuntu. In addition to these commands, there are some other commands that can accomplish more tasks, such as systemctl, service, uname, etc. If you need to know about these commands, you can use the man command to view the man pages for the commands.

Guess you like

Origin blog.csdn.net/2302_77270563/article/details/129967131