packet contents-I: followed by the network port to listen to, such as Eth0,lo, etc.-W: Use this parameter if you want to store the incoming packet data, followed by the file name-R: Read the packet data from the file that follows it, produced by-WC: Without this parameter, Tcpdump will continue to monitorExample: Tcpdump-i eth0-nn #以IP和port number get eth0 this NIC dataTcpdump-i Eth0-nn Port #只监听 Port 21 dataTcpdump-i eth0-nn-x ' Port ' #十六进制与ASCII方式查看Tcpdump-i eth0-nn ' Port ' and SRC host 192
following to establish whether there is a file with the same name
IFNEG...ELSE...ENDIF, conditional statements in makefile
-include $ (DEPS): Contains the file in DEPS, "-" indicates that the file does not exist error
@$ (RM) *.O: "@" at the beginning means that this command is not displayed when make is displayed (GNU make defaults)
All: As the first occurrence of the target project, make will use it as the primary and default item ("Make" means "makes all")
Deps: Generate only
immediately.The parent process exits before the child process and needs to ensure that these child processes find a new parent. The workaround is to have the child process find a thread within the current thread group as the father, and if not, let the init process adopt.Cleanup work at the end of the process and deletion of the process descriptor are performed separately. The deletion of a process descriptor occurs after the parent process has obtained information about the child process that
update-alternatives--Management soft Connect/Word linked (Symbolic links)
Command format
update-alternatives [Options] Command
Detailed description
Update-alternatives can be created, deleted, repaired, soft-connected, and can display information about existing soft links, all of which constitute the Debian alternative system (alternatives systems).
Many times we will install differ
project root directorydj_admin/under, that isManage.pydirectory where the files are located2.pythonManage.pyMakemigrations #To generate a migration data file3.pythonManage.pyMigrate #Migrating Data4.pythonManage.pyCreatesuperuser #Create Administrator Information Username:d jadmin email address [email protected]com Password:1234qwer Start Project5.Start the servicepythonManage. pyRunserver0.0.0.0:8000 #IPset to0.0.0.0that allows anyIPAccess6.access the service and log inhttp://localhost:8000/ad
. For files that are already open, use the Fchmod type, plus the F prefix.The following is a demo sample program that uses the Lstat function to query file properties to print the appropriate prompts based on the type of file.The code is as follows:#include Ok. That's all.The Next:Application project implementation of file managementSome important points of knowledge about file management systems:InodeNext-generation file
returning instances, That is, basically only the Rt.jar inside the class can be used), because Directbytebuffer will also throw an Oom exception, but the exception is thrown when actually did not really apply to the operating system to allocate memory, but by calculating that the inability to allocate both thrown, the actual application of the allocation method is Unsafe.allocatem Emory ()./*** VM args:-xmx20m-xx:maxdirectmemorysize=10m *@authorZzm*/ Public classDirectmemoryoom {Private Static
Uid_min 500Uid_max 6000
Minimum maximum UID Range
Encrypt_method SHA512
Encryption mode
III. User Management Commands 1 adding users Useradd [-udcggs] User name-U UID-D Home Directory-C User Description-G Group name (initial group)-G Group name (additional group)-s command interpreter shell (default/bin/bash)Example: Useradd-u 666-g root,bin-c "test user"-d/home/zhw-s/bin/bash ZHW2 Modifying use
Management of software packages for Linux learning Notes 1. RPM (RPM Package Manager) Format: for example, cvs.1.11.2-10. i386.rpm cvs: Software name 1.11.2: software package version number, including the main version number and minor version number i386: software running hardware platform rpm: File Extension www.2cto.com uninstall: rmp-e cvs [-- nodeps] if other software includes dependencies, a prompt mes
department number for each department; Table A2B. Consider the query results from the previous step as a sub-table (inline view); (select ... from ...) A1-- cannot be used asC. Multi-table query with the above two tables A2,A1Summary: When using a subquery in the FROM clause, the subquery is treated as a view, and therefore also called an inline view, and when a subquery is used in the FROM clause, the subquery is required to assign an alias (the alias cannot be specified with AS).
Usi
to Sgid, The group to which the user who has write permission to this directory belongs to a file that is created in this directory the genus group for this directory ; Permission settings: chmod g+s DIR ... chmod g-s DIR ... Sticky For a multi-person writable directory, if Sticky is set, each user can only delete their own files; #/tmp has sticky permissions by default to prevent users from deleting non-self files permission settings: chmod o+t DIR ...
Q1:whatFirst ask the Almighty man in Linux.Mans YumSimply put, Yum is a apt-get-like package Manager.Also attached are the yum Wikipedia.Q2:howSince it says something like Apt-get. Then combine the actual combat to learn yum immediately.First explain the Blogger learning platform CentOS LiveCD, then the corresponding package is packagename.rpm. Familiarize yourself with the basic commands first.Update Software CacheYum check-updateYum automatically up
1. Introduction(1) Log serviceThe log service in CentOS 6.x has replaced the original SYSLOGD service by RSYSLOGD. RSYSLOGD Log service More advanced, more features. However, regardless of the use of the service, or the format of the log file is actually compatible with the SYSLOGD service, so learning basic and SYSLOGD services consistent.New features of RSYSLOGD:The transmission of log information based on TCP network protocol, more secure network t
is nested. Typically, the engine maintains a recycling pool, and all Autorelease objects are added to the pool. Multiple auto-recycle pools are arranged into a stack structure, and when we manually create the recycle pool, the recycle pool is pushed to the top of the stack, and the Autorelease object is added only to the top pool. When the recovery pool of the when top layer is ejected, all objects inside it are freed once, and then the Autorelease objects that appear are added to the next pool
In the background user management module:The user is divided into three categories: 0 for registered members, 1 for administrators, and 2 for Super AdministratorsPages and Features:
User List Page.
Show all users (admin, Super Admin)
Query specified user (Email, Status) based on criteria (admin, Super Admin)
Delete the User. (super Admin)
Modify the user State. (admin, Super Ad
1.Linux directory structure is a tree structure, the topmost directory is the directory "/", the other directory by Mount can add it to the directory tree, by lifting the mount to remove them. 2. Absolute path and relative path
Absolute path notation: written by the root directory "/", for example:/usr/share/man this directory;
Relative path notation: not written by "/", for example, to be transferred from/usr/share/man to/usr/share/doc, can be written as: CD. /doc. However, it is
to a directory: You can only create and modify files, and you cannot delete In addition to the existing File View File System Properties: Lsattr option file name option:-A Show All files and directories-D if the target is a directory, list only the properties of the directory itself, not the child files4. System commands sudo permissions--root a command that could have been executed only by the superuser to the ordinary user, sudo the operation of th
configuration file. Use when a name is used to differentiate even if the command is a configuration fileMans 1 PasswordMans 5 PasswordFunction Description: Get help informationExample: Man lsCommand name:Info---->> InformationCommand path:/usr/bin/infoExecute permissions: All userSyntax: info[command or config file command or configuration file just write the name, don't write absolute pathFunction Description: Get help information, and man's difference is only in the way the content is present
using the Echo methodIf you set a property on the directory, only the files are allowed to be created and modified in the directory, but the deletion is not allowed2, view file System properties [[email protected]~]# lsattr option file name options:-a show all files and directories-D If the target is a directory, list only the properties of the directory itself, not the child files8.4system commands sudo permissions1, sudo permissions? Root gives a c
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.