If you find some port numbers that you've never seen before, how can you tell if the port is open to Trojans or not? Or do you want to know what port the process is opening in your system when you discover unfamiliar processes in the process list?
First, according to the process to check the port number
First enter "
files or directories that have access times closer than Tmp.txtFind/home-used-2 #列出文件或目录被改动过之后, files or directories accessed within 2ndFind/home-user CNSCN #列出 files or directories in the/home directory that belong to the user CnscnFind/home-uid +501 #列出 A file or directory with a user ID greater than 501 in the/home directoryFind/home-group CNSCN #列出 files or directories in the/home group as CNSCNFind/home-gid 501 #列出 A file or directory with a gro
processes : In a Linux system, any process other than the root process has a parent process or a sibling process or child process. So the PCB for each process contains the parent
too long in each line to make the output clearer. Grep-v 0: 00 is used to remove the process that appears only once before and after 20 seconds. At this point, processes that consume different CPU time before and after 20 seconds are displayed on the screen, from which you can easily find the process you are looking. Finally, in order not to leave useless junk f
How to obtain the pci id of a device in Linux
Sometimes, you need to use the pci ID of the device during development. For example, to bind a network card with dpdk, you need to use the pci ID of the network card. The following methods can be used to obtain the pci ID.
1. Use
Sometimes, the development needs to use the device's PCI ID, such as the use of DPDK to bind a network card, need to use the PCI ID card. Here are some ways to get the PCI ID.1. Use the LSPCI command.Such as02:00.0 USB Controller:intel Corporation 82371ab/eb/mb PIIX4 usb02:01.0 Ethernet Controller:intel Corporation 82545EM Gi Gabit Ethernet Controller (Copper) (r
Reference: How to kill processes and sub-processes/** * Incoming parameters: Parent Process ID * Function: Kills the process tree associated with it according to the parent process ID */public static void killprocessandchildren (int pid) { ManagementObjectSearcher search
concept of conversation group appears to be easy to manage Linux, mainly for the operation control. The most common is to send an interrupt signal (CRTL+C) on the terminal, which is sent to the foreground process group of the control terminal. Simply put, a process group is a collection of one or more processes, and a session is a collection of one or more
statement in the parent process: signal (SIGCHLD, SIG_IGN); indicates that the parent process ignores the SIGCHLD signal, this signal is sent to the parent process when the child process exits.
3. SIGCHLD Signal
When a child process exits, the kernel sends a SIGCHLD signal
/imagemagick-6.8. 9-tar.gz/root/oneinstack/src/php-5.6. - . tar.gz/root/oneinstack/src/mysql-5.5. - . tar.gz/root/oneinstack/src/php-7.0. 3 . tar.gz/root/oneinstack/src/percona-server-5.6. -76.1. Tar2.3 Find Hard LinksWe use the Inode number to find the hard link because the inode number of the hard link is the same as the source file:[[Email protected]1]# ls1. txt4 5 5. txt c.txt[[email protected]1]# L
the kernel mounts this Initramfs as part of a two-stage boot process.Kernel starts the SYSTEMD process with a process ID of 1 (PID 1).XxxxSYSTEMD:SYSTEMD is a init system used in boot process in Linux RHEL 7 to bootstrap the user space and manage all processes Subseq uently
. No search conditions are listed here. You can find all the search functions of the find command in related Linux books.-Amin nFind the files accessed in the last n minutes of the system-Atime nFind the last n * 24 hours of files in the system-Cmin nSearches for the files in the last n minutes that have been changed.-Ctime nSearches for the last n * 24 hours of
Tag: CPU core is runningThe affinity of Cpu/memory is one of the most important factors for maximizing performance when you run HPC (High performance computing) programs that require higher performance on multicore NUMA processors or programs that consume network resources very well. Scheduling the most relevant processes on the same NUMA node can reduce slow remote memory access. Like the Intel Sandy Bridge processor, the processor has an integrated PCIe controller that allows you to schedule n
oldest way of Process Communication in the UNIX family. It uses the kernel to establish a channel between two processes. It features similar operations with files, read-only at one end of the MPs queue and write only at the other end. Data is transmitted between processes in read/write mode.
2: shared memory is a segment of memory address that is shared among multiple processes. Multiple processes use the shared memory address to directly operate on
2.6.25 kernel can be awakened by SIGKILL.
# Define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE)
# Define TASK_STOPPED (TASK_WAKEKILL | _ TASK_STOPPED)
# Define TASK_TRACED (TASK_WAKEKILL | _ TASK_TRACED)
# Define TASK_NORMAL (TASK_INTERRUPTIBLE | TASK_UNINTERRUPTIBLE)
Process Data Structure
In Linux, processes and threads are described using the task_struct data structure. The following describes
file system are counted-L: Calculate all file sizes-H: Indicates that the file system size is in an easy-to-read format such as GB and MB.Example:% du-a% du-sh/etc only shows the sum of this directory% Du/etc | Sort-nr | More statistical results are sorted using the sort command,The parameter-nr of sort indicates that you want to reverse-sort by a numeric sort.18. Show ProcessCommand: PSFormat: PS [option]Features: Displays information about processes in the system. Includes
file system are counted-L: Calculate all file sizes-H: Indicates that the file system size is in an easy-to-read format such as GB and MB.Example:% du-a% du-sh/etc only shows the sum of this directory% Du/etc | Sort-nr | More statistical results are sorted using the sort command,The parameter-nr of sort indicates that you want to reverse-sort by a numeric sort.18. Show ProcessCommand: PSFormat: PS [option]Features: Displays information about processes in the system. Includes
command. No search conditions are listed here. You can find all the search functions of the find command in related Linux books.
-Amin n: Find the files accessed in the system in the last N minutes.-Atime n: Find the last n * 24 hours of files in the system.-Cmin n:
command. No search conditions are listed here. You can find all the search functions of the find command in related Linux books.-Amin nFind the files accessed in the last n minutes of the system-Atime nFind the last n * 24 hours of files in the system-Cmin nSearches for the files in the last n minutes that have been changed.-Ctime nSearches for the last n * 24 h
In Linux, the common commands for file lookups are locate and findLocate works: Global lookup, according to the system file database lookup, the database will be automatically generated during the same run for a period of time, provided that the Mlocate package is installed.The Mlocate package installation generates the Locate command and the UpdateDB command, which is the command used to manually generate the database used to locate
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.