This command has not been used before, on the Internet to check the information, I think people write very well, so copied over.Title: Use of the Linux command evalLinks: http://blog.chinaunix.net/uid-21411227-id-1826706.htmlTitle: eval in the Linux
1. Delete the first character of each line of the file: Sed-r ' s/^.//g ' passwd2. Delete the second character of each line of the file: Sed-r ' s/^ (.) (.) /\2/g ' passwd3. Delete the last character of each line of the file: Sed-r ' s/(.) $//g '4.
own handwriting Implementation ls-l command tangled for a long time, just finally figured out. Directly on the code important partLong Ntotalblocks = 0;dir* DP = opendir (dirpathname); struct dirent* dirp;while ((DIRP = Readdir (DP)) = NULL) {Lstat (
Pre-built a Linux server for business testing, hard disk space partition is relatively small, with the test system function gradually grow, hard disk space appears to be stretched, this needs to be enlarged. It is recommended to save the backup
Operating system and server enthusiastsInvestigate the secret of domestic Linux in the end how to make money?From the 1996 Linux operating system into China, and now after more than 10 years of development, the popularity of Linux in China has
File systemRootfs: With File systemLINUX:FHS specification1./boot: System boot related files, such as kernel, Initrd,grub (bootloader)2./dev: Device files1, Block equipment: Random access, data block read and write2. Character devices: Linear access,
Linux Common Basic Command collation1-CD Switching directoriesThe CD enters the user's home directory;CD ~ Enter the user's home directory;CD-Returns the directory where the directory was before it entered;Cd.. Return to the parent directory (if the
Create a soft connection file for/etc/passwd, and put it in the/tmp directorySoft connections created using file names can span partitions, delete destination files, and disable soft connection filesCreate a hard-link file for/etc/passwd, put it
Job One:1) New user Natasha,uid is 1000,gid to 555, note information is "master"2) Modify Natasha user's home directory for/natasha3) View the last line of the user Information profile4) Set the password "123" for the Natasha user5) View the last
Add user Natasha with Edit file passwd User ID 1000, group ID 555Add Natasha user information to the shadow fileThe genus group ID for adding Natasha in the group file is 555Create/home/natasha user's host directory for Natasha, and copy the host
Linux User ManagementLinux is a multi-user login operating system, multi-user sharing of resources on the host, but also have their own user space, for storing their own files. Virtually all of their files are in the same physical disk or even in
^ Beginning of the line.$ end of line.. Any character other than the line break.* The preceding character repeats 0 to several times.. * Used to match all characters.[] Define a set of characters that match any one by one characters in the group
Overview of a few commands1. View the directory and the files under the directory:ls(-a displays the hidden file;-D displays the directory itself;-L displays the details;-R recursive display, that is, the file of the directory is also displayed;-h
1. Introductiongrep is a powerful text search tool that uses regular expressions to search for text and print matching lines. The grep family of Unix includes grep, Egrep, and Fgrep. Egrep and Fgrep commands are only a small difference from grep.
I. Introduction TO Services for NFSNFS is the abbreviation for the network file system, which is the web filesystem. is a way to implement disk file sharing among Unix-like systems.The basic principle of NFS is to "allow different clients and
Linux popen obtains ip test OK and popentest
Task: unix. linux obtains the local IP address through the c program.
1. The standard I/O library functions have an extra buffer (, buf) compared to the functions called by the system, and buf is used to
Ant LAMP quick installation tutorial
Ps: the LAMP installation on DU Niang is more comprehensive and the explanation is clearer. The following is a personal idea and is for your reference only.
Lamp quick installation steps1. Allow Remote Login1.1
Common regular expression content, regular expression contentCommon metacharacters
Code
Description
.
Match any character except linefeed
\ W
Match letters, numbers, underscores, or Chinese Characters
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