1. List Linux distributions by series and describe the two lines and differences between different distributions.The current major Linux distributions are:Slackware:suseDebian:ubuntu MintRedhat:rhel CentOS FedoraContact: Because the Linux kernel
1 CPU hotspot Analysis positioning backgroundCPU resources are still very expensive, in order to feel this expensive, the current CPU price of resources:So for the program apes, it is necessary for the program to use CPU resources reasonably and
A. Find command1.ctrl some usage.Ctrl d exits a terminalCTRL C Exits a commandCTRL a cursor starts from the beginningCTRL u cursor in front of all Delete commandsCTRL d cursor after the command one character deleteCtrl-e cursor moves to the last2.
Top commandThe top command is a common performance analysis tool under Linux that shows the resource usage of individual processes in the system in real time, similar to the Task Manager for Windows. Top is a dynamic display process where the
Copying and moving filesCP: copy(can have multiple sources, but only one target (directory, cannot make files))A file to a fileMultiple files to a directoryCopy By default, the directory is not copied. Copy–r: Replicate directories for recursive
File action functions
1, Get filename: basename ();
2, get the file directory: DirName ();
3, PathInfo () Get the file information, return the result is an array, including path, file full name, file name and extension. For example:
If there are any problems with the website or the server, you will first think about whether the file on the server has been modified, and search will use the Find command as follows:
Finds files in the current directory. php file that have been
File system:Rootfs: Root file systemFhs:linux File System Level standardsLS//boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)/dev: Device filesBlock devices: Random devices, random access, data blocks do not matter the
Directory operations (C language) header file:
#include
#include
#include
Read DirectoryRequired header files: #include
Open the directory and return an empty pointer at the time of the failure.DIR * OPENDIR (const char
A. mkdir is used to create a directory:mkdir Directory name #创建目录Mkdir-p Directory name 1/directory Name 2/directory name 3 #创建多层目录Two. RM for deleting files ( Use caution, easy to trigger program crashes ):1. Parameters(1) RM file name #只能删除文件, but
First, CPU information collection
1). Collect CPU Usage rate
Acquisition algorithm: collecting and calculating CPU total utilization or single kernel utilization through/proc/stat file. Taking cpu0 as an example, the algorithm is as follows:1. Cat/
the difference between df-i and df-h
These days patrol the database, found that the script has df-h and Df-i command began not care, later found that the two are not the same
[ORACLE@HVR ~]$ Df-hFileSystem Size Used Avail use% mounted
On the Linux machine, there is a command to calculate the MD5 value of the file, that is md5sum, if not, you need to install the RPM package: Coreutils.
Now we can also easily compute the MD5 value of the file using the OpenSSL library. The main
Chapter II
The echo command is used to display the value of a string or output variable in the terminal, in the form of "echo [string | $ variable]".
The Date command is used to display and set the system's time or date in the format: "Date
experiment 3:unix/linux permissions and file management commands
1. Experimental purposes
Unix/linux permissions and file management commands;
The use of Unix/linux file system;
Other commands related to file system administration. 2, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.