1, add a system call, increase the total number of system calls +1diff in Kernel/include/uapi/asm-generic/unistd.h+ + #define __nr_mysyscall 285+ + SYSCALL (__nr_mysyscall, Sys_mysyscall)#undef __nr_syscalls--#define __nr_syscalls 285+ + #define
Reproduced from the spiritual Leap cloud: the original link1. Write in frontA system call is a set of "special" interfaces that the operating system provides to user program calls. Through this set of "special" interface, the user program can obtain
First, SuSwitch usersSu-usernameSwitch users with User environmentsu - -c "touch /tmp/123.txt" user1以user1用户创建/tmp/123.txt 文件如果需要切换到一个没有家目录的用户,会像图中一样报错这时候首先需要创建家目录,然后将文件夹用户与组修改为目标用户与组,再将bash配置信息复制到家目录下,cp/etc/skel/.bash*/home/user4Can LoginIt's a
PS command: View StaticThe process statistics informationP s : will show only the processes that are open in the current user session without any parameters 、P s aux : All process information will be displayed as a simple list Comments:U ser: The
Packaging Compression
One, compress+[option]+ file name (default delete original file)-D decompression- C just preview the generated content, do not delete the original file, need to cooperate > use to generate the compressed
Linux will virtualize its physical memory. Instead of addressing the physical memory directly, the process maintains a special virtual address space for each process by the Linux kernel. This address space is linear, starting at 0, to a maximum
Linux server to add a new hard disk, you can directly format the disk can be used, such as mount in the/usr/local directory, but there is a drawback, that is, if this disk full, the subsequent want to expand, can not continue to mount this/usr/local
First, the directory of the Switch command cd usr means switch to the USR directory in this directory CD.. / switch to the previous level directory CD/ switch to the system root directory CD ~ switch to user home directory CD- back to the
1. First we go to Linux remotelyThe 2.SSH configuration file is in the/etc/ssh/sshd_config file.3. We modify the port by editing this file to achieveVi/etc/ssh/sshd_config4. Find the #port 22 line, default port 22We can remove the previous # and
Confirm Current Network configuration:[Email protected] ~]# nmcli-p Dev===================== Status of Devices===================== DEVICE TYPE State CONNECTION------------------------------------------------------------------virbr0
printf formatted output basic formatprintf [format] [text 1] [text 2]:Common format Substitutions
%s
String
%f
Floating-point format
%c
ASCII character, which is the first character that
#创建yum云, you need to mount the disc to the local path first:$sudo Mkdir/mnt/cdrom #创建挂载点, cdrom the folder you created for yourself$sudo mount-t iso9660/dev/sr0/mnt/cdrom #挂载光盘到/mnt/cdrom Path, the file type is: iso9660. Disc path:/dev/sr0
Linux first week study notes (+)2.11.CP CommandCP ( Copy shorthand) Command: used to copy one or more source files or directories to a specified destination file or directory. Cp–r : Copy Directory- I. : Security Options-----------------------------
Rsync ToolsThe Rsync tool is used to synchronize folder data, unlike the CP command, which can handle real-time changes in files, synchronizing source and target data directories, and not processing the same portion of data for two directories.I.
The virtual machine comes with the Firefox version is too old, so on the official web download the latest installation package, after running the prompt:$ Firefox for file/home/parallels/firefox-32/libmozgtk.so: libgtkor directory Couldn't
Under Linux system, reboot tomcat using command operationFirst, go to the bin directory under Tomcatcd /usr/local/tomcat/bin使用./shutdown.sh或者是sh shutdown.sh关闭TomcatUse./startup.sh or SH startup.sh to start tomcatTo see if Tomcat is shutting downps
Recover a corrupted USB device to its initial state on Linux
In many cases, storage devices such as SD cards and U disks may be damaged and cannot be used for any other reason.
This may be because you have used this device to create a boot media,
To solve the "unable to connect to a repository at URL" problem, unablerepositoryProblem
The SVN server is built on A Linux machine. It is okay to checkout on machine A. After A while, install the SVN client on machine B and the checkout code
Linux Timed Shutdown (command tutorial) and linux Shutdown
Go to the following directory
cd /var/spool/cron/
Add time and modify code under this directory
root[root@dev cron]# cat rootSHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=root# For
Hadoop2.7.5 + HBase1.4.0 fully distributed cluster Construction
1. recommended books for beginners before introducing completely distributed systems:For more information about Hbase principles, see PDF.
2. You should have a simple understanding of
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