The shutdown command can safely shut down or restart the Linux system, prompting a warning message to all logged-in users on the system before the system shuts down. The command also allows the user to specify a time parameter, either as a precise time or as a time period from now onwards. The exact time format is hh:mm, which represents hours and minutes, and the time period is represented by the "+" and the number of minutes. When the system executes this command, data synchronization is performed automatically.
The general format for this command is: Shutdown the options in the [options] [TIME] [warning messages] command mean:
-K does not really turn off the computer, but only sends a warning message to all users.
-R reboot immediately upon shutdown.
-H shutdown does not restart.
-F Fast shutdown, skip fsck during reboot.
-N Fast shutdown without the INIT program.
-C cancels a shutdown that has already been run.
Specifically, this command is available only to Superuser.
The free command displays system memory usage information, how much memory is used, and how much memory is idle.
Free [command switch] [-v]
|-B||Display memory usage in bytes|
|-K||Displays the memory usage in kilobytes.|
|-M||Displays the memory usage in megabytes.|
|-S delay||Continuously output memory usage. Displays the memory usage at intervals of time for the delay of typing.|
|-T||Displays the summary usage of memory.|
Display Memory size information:
Total used free shared buffers Cached
mem:223740 219492 4248 0 3756 73212
-/+ buffers/cache:142524 81216
swap:1052216 66732 985484
The free command displays all of the system's memory information, such as the total amount of memory used and the size of the available content.
To display memory information using a file:
The above command displays the system's memory usage information.
Use Rights: All users
How to use: Top [-] [D delay] [Q] [C] [s] [s] [i] [n] [b]
Description: Real-time display of process dynamics
D: Change the speed of the display, or press s in the conversational instruction column (interactive command)
Q: There is no delay in the display speed, if the user has Superuser permissions, then top will be the highest priority to execute
C: Toggle display mode, there are two modes, one is to display only the name of the execution file, the other is to display the full path and name S: Cumulative mode, will be completed or disappeared child stroke (dead children process) of the CPU time accumulated
S: Safe mode, canceling conversational instruction to avoid potential crisis
I: Do not show any idle (idle) or useless (zombie) trip
N: Number of updates, and will exit top after completion
B: Batch file mode, with "n" Parameters used together, can be used to output the top results to the file
Display the update 10 times after exiting;
The user will not be able to use the conversational instruction to command the trip:
Enter the results of the update display two times into the file named Top.log:
Top-n 2-b < Top.log