Kernel layer:
1. Kernel Arch/x86/kernel/syscall_table_32.s
. Long Sys_mysyscall/* 285 * * Available
2. Arch/x86/include/asm/unistd_32.h
#define __nr_mysyscall 285
3. Add function code
asmlinkage int Sys_mysyscall (int n){PRINTK ("This are My syscall\
dnscache.py detailed code as follows, under Linux, direct "import dnscache" without modifying anything else, you can have the DNS cache effect such as Windows, if necessary, in a valid time, empty the cache
#-*-Encoding:utf-8-*-Import socket,
1, copy native/home/administrator/test entire directory to the remote host 192.168.1.100/root directory
Scp-r/home/administrator/test/root@192.168.1.100:/root/
2. Copy single file to remote host
1, view CPU information
Cat/proc/meminfo
This file gives information about the state of memory. It shows the total amount of free memory in the system, physical memory and swap memory. It also shows the total amount of shared memory and buffers used
The problem with cannot execute binary file is encountered under Linux, which is typically caused by a non-root or a compilation environment with no execute permission (the program is replicated by other operating environments).
For the first case,
We often encounter this requirement during programming, by clicking the button, launching another application, or executing a script. You must think how simple this is, what can be written. In fact, to achieve the same function, the code written by
In Linux, the links are divided into soft and hard, as for the difference between the two, we can refer to the next https://www.ibm.com/developerworks/cn/linux/l-cn-hardandsymb-links/
The link is not ln/link command (of course, if you use a
Statement writing: Find corresponding directory-mtime + days-name "filename"-exec rm-rf {} \;
Example 1: The/usr/local/backups directory is all 10 days ago with "." The file deletion
Find/usr/local/backups-mtime +10-name "*.*"-exec rm-rf {} \;
Ubuntu will only prompt the user to set up an ordinary user during the installation process, and will not set the root user's password.
After the installation of Ubuntu suddenly realized that no root password is set, do not know the password
Omact Service startup error log the following information: The APR based Apache Tomcat Native Library which allows optimal performance in production environments Wasn't found on the Java.library.path: $JAVA _home/jre/lib/amd64/server: $JAVA
The lab server uses Redhat as its operating system, but one of the biggest problems is that it does not shut down properly, or that the power supply does not shut down after the shutdown and requires manual shutdown. So we have been accustomed to
10.34-10.35 System Log and screen
The log records the various things that happen to the system every day, and you can check the log to see why the error occurred. Or the traces that were left when they were attacked.
/var/log/messages is the core
Three main scheduling strategies for the Linux kernel:
1,sched_other time-sharing scheduling strategy,
2,sched_fifo Real-time scheduling strategy, first come first service
3,SCHED_RR Real-time scheduling strategy, time slice rotation
The real-time
Linux terminals, there is no Windows search as easy to use the graphical interface tool, but find command is very powerful.
For example, by name to find a file, you can use found/-name targetfilename. Alas, if you only know the name, do not know
I. Objectives
Implement/python Development with Pycharm debugging tools under Linux
Linux uses the Vi/vim tool to write Python, disadvantages: Debugging inconvenient, no code hints, jump and many other functions.
Windows uses Idle/pycharm/eclipse
I belong to the Window+vm+ubuntu configuration and sometimes I need to mount the files on Windows to the virtual machine. Then each time you use the command, the following problems occur:
It's easy to solve the problem, but it takes a long time
Tip: Install VSFTPD must be installed under root user to install successfully, go to root:Su-(there are spaces in the middle)Problem:1. Re-use command Getsebool-a | grep ftpd command to view issues when viewing status:SELinux is disabled (stating
Environment: Qemu + ARMV8Perf is a comprehensive analysis tool that is large to system-wide performance, smaller to the process thread level, or even to the function and assembly level.Execute the compile script under the kernel source
User and Group ManagementEnvironment: UBUNTU-16.04.4-SERVER-AMD64/etc/passwdRoot:x:0:0:root:/root:/bin/bashUser name user password User ID master Group ID comment User Directory shellx means encryption (dot character)/etc/grouproot:x:0:Group name
The powerful find command is used in Linux to find files in the specified directory, and any string before the parameter for the Find command will be treated as the directory name to be looked up, and if the command is used, no parameters are set.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service