Common Linux System invoke commands the following functions are obsolete and replaced by new and better functions (GCC warns when linking these functions), but because of the reason for compatibility, these functions will be labeled "*" in front of the difference. First, Process Control forkCreate a new processCloneCreate child processes by specified criteriaExecveRun the executable fileExitAbort Process_exitAbort Current process immediatelyGetdtablesizemaximum number of files that the process can openGetpgidgets the specified process group identification numberSetpgidsets the specified process group flag numberGetpgrpgets the current process group identification numberSetpgrpset the current process group flag numberGetpidGet process identification numberGetppidgets the parent process identification numberGetPriorityGet scheduling PrioritySetPrioritySet scheduling PriorityModify_ldtLocal Description table for read and write processesNanosleepmake process sleep Specify the timeNicechange the priority of the time-sharing processPausesuspend process, wait for signalPersonalityset process run domainPrctlto perform specific actions on a processPtraceProcess TrackingSched_get_priority_maxget the upper limit of the static prioritySched_get_priority_minget the lower bound of the static prioritySched_getparamget scheduling parameters for a processSched_getschedulergets the scheduling policy for the specified processSched_rr_get_intervalget the time slice length of real-time process scheduled by RR algorithmSched_setparamset scheduling parameters for a processSched_setschedulerto set scheduling policies and parameters for a specified processSched_yieldthe process proactively yields the processor and waits for the queue to dispatch itselfVforkCreate a sub-process for executing new programs, often with EXECVE, etc.Waitwait for the child process to terminateWait3See waitWaitpidwaits for the specified child process to terminateWait4See WaitpidCapgetGet Process PermissionsCapsetSet process PermissionsGetSIDget a meeting identification numberSetsidset up meeting identification numberSecond, the file read and write operation FcntlFile ControlOpenOpen FilecreatCreate a new fileCloseClose File Description WordReadRead the fileWriteWrite a fileReadvreading data from a file into a buffer arrayWritevwrites the data in the buffer array to the filePreadRandom Read of filesPwriterandom write to fileLseekMove file pointer_llseekmove the file pointer in the 64-bit address spaceDupCopy an open file description wordDup2Copy a file description Word by specified criteriaFlockfile Add/UnlockPollI/o multi-channel conversionTruncatetruncate fileFtruncateSee truncateUmaskSet file permission maskFsyncwrite the file back to disk in the memory sectionThird, file system operation accessdetermining the accessibility of a fileChDirchange the current working directoryFchdirSee ChDirchmodChange file ModeFchmodSee chmodChownchange the owner or user group of a fileFchownSee ChownLchownSee ChownChrootchanging the root directoryStatfetching file status informationLstatSee statFstatSee statStatfsfetching file System InformationFstatfsSee StatfsReaddirReading directory entriesGetdentsReading directory entriesMkdirCreate a directoryMknodCreate an index nodeRmDirDelete directoryRenamefile RenamingLinkCreate a linkSymlinkCreating Symbolic LinksUnlinkDelete LinkReadlinkread the value of a symbolic linkMountInstalling the file systemUmountremoving the file systemUstatfetching file System InformationUtimechange the file's access modification timeUtimesSee UtimeQuotactlControlling disk quotasIv. system control of the IOCTLI/O total control function_sysctlread/write system parametersAcctEnable or disable process accountingGetrlimitGet system Resource capSetrlimitSet System resource capsGetrusageGet system Resource UsageUselibSelect the binary library you want to useIopermset Port I/O permissionsIoplChange the process I/O permission levelOutblow-level port operationReboot RestartSwaponopen swap files and devicesSwapoffclose swap files and devicesBdflushcontrolling the Bdflush daemonSysfsfile system type supported by CoreSysInfoGet System InformationAdjtimexadjusting the system clockAlarmset the alarm for a processGetitimerGet Timer valueSetitimerSet Timer valueGettimeofdaytake time and time zoneSettimeofdayset time and time zoneStimeset the system date and timeTimeGet system TimeTimestake process run timeUnameget information about the name, version, and host of the current UNIX systemVhangupSuspend current terminalNfsservctlControlling the NFS daemonVm86Enter analog 8086 modeCreate_moduleto create a loadable module itemDelete_moduleto delete a loadable module itemInit_moduleInitializing the moduleQuery_moduleQuerying module Information*get_kernel_symsobtained the core symbol, has been replaced by Query_moduleFive, memory management BRKchange the allocation of data segment spaceSbrkSee BRKMlockMemory page LockMunlockMemory Pages UnlockedMlockallcall Process all memory page lockMunlockallcall Process all memory page unlockedMmapmapping virtual Memory pagesMunmapremoving memory page mappingsMremapRemap virtual memory addressesMsyncwrite data from mapped memory back to diskMprotectSet memory image protectionGetPageSizeGet page SizeSyncWrite memory buffer data back to the hard diskCacheflushwrites the contents of the specified buffer back to diskVI. Network Management GetdomainnameTake domainSetdomainnameSet the domain nameGethostidGet host identification numberSethostidset the host identification numberGetHostNameget the host nameSetHostNameSet host nameSeven, socket control SocketcallSocket system CallSocketCreating SocketsBindbind socket to portConnectconnecting to a remote hostAcceptresponding to a socket connection requestSendsend message via socketSendToSend UDP messageSendmsgSee sendRecvreceiving information through the socketRecvfromreceiving UDP informationRecvmsgSee recvListenMonitor Socket PortSelectPolling for multi-channel synchronous I/OShutdownClose the connection on the socketGetSockNameget the local socket nameGetpeernameget the socket name of the communication partnerGetSockOptFetch Port SettingsSetSockOptSetting Port ParametersSendfiletransferring data between files or portsSocketpaircreate a pair of nameless sockets that have been joinedViii. User Management Getuidget the user ID numberSetuidset User flag numberGetgidGet group identification numberSetgidSet the group flag numberGetegidget valid group identification numberSetegidSet Valid group identification numberGeteuidget a valid user identification numberSeteuidset a valid user identification numberSetregidset a real and valid group identification number, respectivelySetreuidset a real and valid user identification number separatelyGetresgidget real, valid, and saved group identification numbers, respectivelySetresgidset the actual, valid, and saved group identification numbers separatelyGetresuidget real, valid, and saved user identification numbers, respectivelySetresuidset up real, valid, and saved user identification numbers, respectivelySetfsgidSet the group identification number to use when setting up file system checksSetfsuidSet the user identification number used when file system checksGetGroupsget list of post-complement group flagsSetgroupsset up post-complement Group flag listIX. Inter-process communication IPCInter-process communication total Control call9.1 Signal Sigactionset the processing method for the specified signalSigprocmaskoperation of blocking/unblocking of signals in signal set according to parametersSigpendingsets the queue for the specified blocked signalSigsuspendsuspend process waits for a specific signalSignalSee signalKillsignaling to a process or process group*sigblockadds a signal to the blocked signal mask that has been replaced by Sigprocmask*siggetmaskget an existing blocking signal mask that has been replaced by Sigprocmask*sigsetmaskreplacing an existing blocking signal mask with a given signal mask, replaced by Sigprocmask*sigmaskConverts a given signal to a mask that has been replaced by Sigprocmask*sigpausefunction with Sigsuspend, has been replaced by SigsuspendSigvecfor BSD-compliant signal processing functions, similar to SigactionSsetmaskthe signal processing function of ANSI C, acting like sigaction9.2 Message MsgctlMessage Control OperationsMsggetGet Message QueuingMsgsndSend MessageMsgrcvfetching Messages9.3 Piping PipeCreating Pipelines9.4 Signal Volume SemctlSignal Volume ControlSemgetget a set of semaphoresSemopSemaphore Operation9.5 Shared Memory ShmctlControlling shared memoryShmgetGet shared memoryShmatConnecting shared memoryShmdtRemoving shared memory
Common Linux System invoke commands