業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

nuy

Disk and device management

Inspect the file system.

If a problem is suspected in the file system, use the fsck command to inspect the file system.When the fsck command is executed, it will check the file system for abnormalities, and if any abnormalities are found, it will display a return value depending on the nature of the problem.If no abnormality is found, the number of files contained on the disk, the number of blocks in use, and the number of available blocks will be displayed.If the command is executed with no arguments, all devices described in /etc/fstab will be scanned, and if the command is executed with a device name specified as an argument, only the specified device will be scanned.Caution.Since disk access while the check is in progress may destroy the system, it is safe to unmount any volume that can be unmounted when executing the fsck command, and to run it in single-user mode if it contains a volume on which / is placed.
Disk and device management

Check for filesystem consistency.

Use the e2fsck command to check the consistency of the file system for ext2 (Linux 2nd extended file system) and ext3 (Linux 2nd extended file system with journal and automatic record keeping).Specify the device name of the volume to be checked as an argument.Caution.Since disk access while the inspection is in progress may destroy the system, it is safe to unmount any volume that can be unmounted when running the e2fsck command, and to run it in single-user mode if it contains a volume with / placed on it. Also, root privileges are required to run this e2fsck command.
Disk and device management

Check the status of the SCSI host adapter.

Check the status of the SCSI host adapter.To find out the manufacturer, model name, model number, and connection status of the SCSI card in a system with a SCSI card installed, you can check the status of the SCSI card by viewing the information in the "/proc/scsi/scsi" file.
Disk and device management

Displays information on I/O addresses.

I/O address informationOn Linux systems, you can display the memory map of the CPU reserved for I/O devices.To display the information, refer to the /proc/ioports file.You can use the more or less command to see the screen transition.
LinuxTips(RedHat)_en

Reboot the system immediately.

reboot is a command to reboot the system immediately.Usually, the shutdown command is used to stop the system, but reboot is a shortened form of the shutdown command.To reboot the system with the shutdown command, you need to add the option "r" as an argument, but reboot does not need any argument.There is also halt, which is a command to stop the system immediately as well as reboot.
LinuxTips(RedHat)_en

Display various information of memory

Display various information of memory●Information about memoryTo get information about memory, refer to the /proc/meminfo file.This file is used as the memory information displayed by the top, free, and vmstat commands.
LinuxTips(RedHat)_en

Display the status of a process

To view the processes, use the ps command.When the ps command is executed, it will display the process information based on the information under /proc.If the ps command is executed without any options, the process status of the user who executed the command will be displayed.
LinuxTips(RedHat)_en

Show all processes

Show all processesTo see all the processes, run the ps command with the "-a" option.If you want to see the processes executed by the logged-in user, you can use the "-a" option without any arguments, but if you want to see which processes are being executed by other users, you can use the "-u" option as well.
LinuxTips(RedHat)_en

Display processes including their parent-child relationships.

Display processes including their parent-child relationships...
LinuxTips(RedHat)_en

Show only running processes and specific processes

Show only running processes and specific processes●View running processesThe ps command basically shows all the processes that are not completed, so it will also show the processes that are stopped.To show only running processes, run the ps command with the option "-r".
LinuxTips(RedHat)_en

Display the kill signal

Display the kill signalThe kill command not only kills the process, but it can also control various other things.The signals used for this control are called signals, and there are numbers, names, and abbreviations that can be used for control.To check which signals can be used with the kill command, execute the kill command with the option "-l".
LinuxTips(RedHat)_en

Shut down the system.

Shut down the system.●top the system with the halt commandThere are several ways to stop the system, but executing the halt command will send a system stop message to all connected users, shift the run level to "0", and start the stop process.Normally, you need to be the root user to execute this command, but the halt command can also be executed by a general user. However, when run as a general user, the behavior differs depending on the distribution as follows.RedHat system:Can be executed by general users. However, if the command is executed from a remote host, it will be ignored.Vine Linux system:Ask for the root user's password, and if correct, run the stop process.Debian GNU/Linux system:Cannot be executed by general usersPlamo Linux system:Cannot be executed by general users
LinuxTips(RedHat)_en

Check your Linux distribution and version.

Check your Linux distribution and version.●For CentOS7 system[root@Lion ~]# cat /etc/redhat-releaseCentOS Linux release 7.6.1810 (Core)●For Fedora systems[root@Lion ~]# cat /etc/fedora-release●For Ubuntu systems[root@Lion ~]# cat /etc/lsb-release
LinuxTips(RedHat)_en

Show loaded kernel modules

Display the loaded kernel modulesIn order to prevent the kernel from becoming bloated, Linux does not include programs other than those that are minimally necessary for operation in the kernel, but allows them to be added or detached depending on the environment.The things that can be added or detached in this way are called "modules," and typical ones include SCSI adapters, PC cards, and device drivers.The command to display what modules are currently installed is the "lsmod" command.You will need root privileges to execute this command.
LinuxTips(RedHat)_en

View detailed information about kernel modules.

View detailed information about kernel modules.To display detailed information about each loaded module, use the modinfo command.Specify the module for which you want to know the detailed information as an argument and execute it.