Compression: TarPackage all files in the/etc directory into/tmp/etc.tar[[email protected] ~]# TAR-CVF/TMP/ETC.TAR/ETC [[email protected] ~]# tar-czvf/tmp/etc.tar.gz/etc such as: tar-zcvf/root/root.tar.gz/root/* package root All files, save to root,
1,date Time management view system timeDate [MMDDHHMM[[CC]YY][.SS] Modify Time or date-s+%d Display+%d Show month/day/year with +%m/%d/%y+%f Same as%y-%m-%d+%m Month+%h Hour+%m Minute+%s Second+%t Time:same as%h:%m:%s+%y year%n New LineCase
Commonly used file related commands are: Mkdir,rmdir,touch,stat,rm,cp,mv,installNaming rules:1) cannot exceed 255 characters in length2) cannot use '/' when file name3) strictly case-sensitive1. mkdir: Create file empty directory-P: can be created
1: Password file/etc/shadowCat/etc/shadow Red Line part for encrypted password650) this.width=650; "style=" Float:none; "title=" shadow. JPG "alt=" wkiol1brr-zdb0vcaah05ij-4p0973.jpg "src=" http://s2.51cto.com/wyfs02/M01/7D/9C/
#!/bin/bash# This script was created by Tangbo.# E_mail:[email Protected]# version:1.0###################################################################################################set-X# Set Language and must be rootExport lang= "ZH_CN. GB18030
Fifth Chapter system callIn the operating system, the kernel provides a set of interfaces for user processes to interact with the kernel. These interfaces allow application-constrained access to hardware devices, provide a mechanism for new
Linux kernel Design Week fourth--clawed system call three layer leather by Su Zhengshen Original works reproduced please specify the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000 One, Knowledge Point
First, the Knowledge Point Summary (a) User state, kernel state and interrupt1. Kernel state: at high execution level, the code can execute the privileged instruction, access any physical address, then the CPU corresponds to the kernel state2. User
Dermot W.J. Zhang + original works reproduced please specify the source + "Linux kernel analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000I. Contents of the studySystem call: The operating system provides a set of interfaces for
Experimental steps:Use the same system call in the Library function API and in the C code to embed the assembly code in two ways. In this experiment, I used the 20th system to call the Getpid () function to get the process identification code.
Basic commands under Linuxls : Listpwd : Print work directory (printing working directories)CD : Change directory (switch directory)Example: CD-Back to last directoryExample: cd ~ Back to the current user directoryExample: CD. /: Back to the top
Sublime remote connection to a Linux host
Sublime remote connection to a Linux hostDevelopment, directly using Sublime's SFTP function to modify wx_sample.php1. Install the package management plug-in for Sublime pack control (for most
1. Piping limitations:(1) Half duplex;(2) can only be used between processes that have a common ancestor;2. Pipeline creation Function:#include int pipe (int filedes[2]); ret = 0-Success-1-FailureReturn two file descriptor via Filedes: filedes[0]
when troubleshooting, be sure to develop the habit of looking at the log, the system is the core of a log/var/log/messages. #cat/etc/logrotate.conf This is a log-cut profile. Kill-hup is a new configuration file from the freshman. Killall process
Experimental process
Select number 20th system call GETPID (get process identification code)
Querying the C language code of the GETPID function and its embedded assembly statements on the WebC Language code:#include #include #include #include
A conceptual distinctionWhen it comes to Linux system calls, you have to differentiate between several confusing concepts:System call: A system call is a special interface. With this interface, the user can access the kernel space. System calls
Linux of the CP command is used to copy one or more source files or directories to a specified destination file or directory . It can copy a single source file into a specific file with a specified file name or a directory that already exists. the
Chapter One Linux kernel Introduction 1. Features of the Unix kernel
Concise: Provides only system calls and has a very clear design purpose
Abstract: Almost everything is treated as a file
Portability: Written in C , making it an
Solve the Problem of compiling lib_gen.c from the source code ncurses6.0, libncurses5dev source code
When compiling the source code directly from the official website, an error is reported:
gcc -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE
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