] ~/gawktest]#seq 1 10 | sed ‘1~2p‘1123345567789910
4, 2 2~2 even rows
[[emailprotected] ~/gawktest]#seq 1 10 | sed ‘2~2p‘12234456678891010Edit commandD Delete a row that matches the pattern space]#sed ‘/^UUID/d‘ /etc/fstab 删除以UUID开头的行P Print the current mode space content, appended to the default output, the general Mate-N option to[[emailprotected] ~/gawktest]#sed -n ‘/r..t/p‘ /etc/passwdroot:x:0:0:root:/root:/bin/bashoperator:x:11:0
Label: style blog HTTP color OS use AR file sp This document consistsXiuyi Lin FengProviding friendship sponsorship, first launchedThe world. The installation of a server system is complete, but the LVM volume group VG uses the default volgroup name, which is uncomfortable to use. I plan to change the volume group name to VG. Run the following command to view information about LVM in the system: /Etc/fstab/etc/grub. conf DF-H LVS Vgs We can s
loads the required modules, creates corresponding/dev/sda1 nodes in udev, and sends messages to HAL. After receiving the messages, HAL sends the messages according to the configuration file, it runs fstab-sync to modify fstab and creates/media sub-directories as Mount Points. After gamin detects a change in fstab, it notifies the desktop system. The desktop syst
pattern;(3) Address range#,#: From line # to line ##,+#: Starting from the third line down eight lines#,/pat1/: Starting with line #, to the first match to the end of the pattern/pat1/,/pat2/: Starting from match to first pattern, to match to second mode end$: last line;(4) Step forward: ~: All Odd lines2~2: All even linesEdit command:D: Delete: (shows lines that are not matched to)Example: sed ' 1,3d '/etc/fstab shows everything from line fourth
Etc/fstab description:/dev/hdbx is the partition in windows to be mounted. Note that my partition is hdb, you may also be using hda, where/mnt/winx is the directory to be mounted. here I will use it to Mount CDE disks for windows respectively. Vfat indicates the fat32 file format. ntfs indicates utf8 after ntfs format. umask indicates the permission of the file directory. In short
Etc/fstab
Note:/dev/hdbx
In the RedHatEnterpriseLinux5.0 server, after the NFS server, different computers in the network must first mount the file system before using the file system. You can use the mount command or add entry items to/etc/fstab. the entry items in/etc/fstab include an NFS mount type. NFS file system
On the Red Hat Enterprise Linux5.0 server, after the NFS server, different computers on the network must first moun
Very good text processing tools, especially variables and control statements, using the awesome.Personal understanding of the general process is as follows1. Normal output# $0表示正行 默认是按照行分割 $1 $2#-----------------------------------------------------------------[[emailprotected] test]# awk ‘{print "hello ",$2}‘ fstabhellohellohello /etc/fstabhello Created2. Variables#FS:input field seperator, 输入 在行里面里面的分割符,默认为空白字符;#OFS:output field seperator,输出 在行里面里面的分割符,默认为空白字符;#-------------------------
other partitions, perform the following six steps: 1. separate a new partition and format it as the file system format of your current system, for example, ext 3 or ext4 2, back up your fstab file, edit and modify the file, mount the partition you just formatted as/media/home, and restart 3, use the rsync command to synchronize all files under/home to/media/home 4, edit the fstab file again, and mount it t
File
G boot System
Cat command usage
The cat command is used to view the file content. Sometimes we do not know the Linux/boot partition and the location of the/root partition. We need to check the/etc/fstab content to find out, we need to use CAT (HD [0-n], Y)/etc/fstab to obtain the content. Be sure to use the tab command to complete the function;
grub> CAT (hd0 or hd1 is displayed by pressing th
INITRD fileG Boot Boot SystemUse of the Cat commandThe cat instruction is used to view the contents of the file, sometimes we do not know the Linux/boot partition, and/or the location of the root partition, to see/etc/fstab content to know, at this time, we need to use the cat (Hd[0-n],y)/etc/fstab to obtain these content Note to learn to use the TAB key command to complement the function;Grub> Cat (Press
.
The time it takes to create the file system depends on the data disk size.[Email protected] ~]# mkfs.ext3/dev/vdb1mke2fs 1.41.12 (17-may-2010) Filesystem Label=os Type:linuxblocksize=4096 (log=2) Fragmentsize=4096 (log=2)Stride=0 blocks, StripeWidth=0 blocks1310720 inodes, 5242852 blocks262142 blocks (5.00%) reservedfor the Super Userfirst data Block=0maximum filesystem blocks=4294967296160 block groups32768 blocks per group, 32768 Fragments Per group8192 inodes per Groupsuperblock backup
call the update method. Before that, you can update, insert, or delete data.Adlockbatchoptimistic = 4, // optimistic batch update. The record is not locked during editing. Modification, insertion, and deletion are completed in batch mode.};⑤ For options, refer to the introduction to the execute method of the connection object in this article.
Record set traversal and update
According to the student information table created by executing the SQL command just now, it contains four fields: Student
configuration netcfg source code)| -- Nexus (Code of google's latest mobile phone)| -- Rootdir (rootfs, including scripts and configurations under etc)| -- Sh (shell code)| -- Toolbox (toolbox, similar to the tool set of busybox)| '-- Vold (SD card Manager)| -- Extras (additional tool)| -- Latencytop (a tool for software developers, identifying system latency happen)| -- Libpagemap (pagemap Library)| -- Librank (Java Library Ranking System Library)|
; otherwise, busybox mkfs will fail. ext2/dev/block/sdamkfs. ext2: can't format mou Nted filesystem) 17' mount-t ext2/dev/block/sda/mnt/sata OK, buysybox df-h: root @ android: /# busybox df-hbusybox df-hFilesystem Size Used Available Use % Mounted ontmpfs 153.4 M 32.0 K 153.4 M 0%/devtmpfs 153.4 M 0 153.4 M 0%/mnt/asectmpfs 153.4 M 0 153.4 M 0%/mnt/obb/dev/block/system 504.4 M 257.9 M 246.5 M 51%/system/dev/block/data 504.4 M 57.7 M 446.7 M 11%/data/dev/block/ cache 252.1 M 4.3 M 24 7.8 M 2%/cac
Uevent Daemon Process
Healthd
/sbin/healthd
The Battery daemon
Logd
/system/bin/logd
The daemon of log
CD D
/sbin/adbd
ADBD process (Socket IPC)
Lmkd
/system/bin/lmkd
Lowmemorykiller Daemon Process
Console
/system/bin/sh
Control Desk
Vold
/system/bin/vold
Volu
Uevent Daemon Process
Healthd
/sbin/healthd
The Battery daemon
Logd
/system/bin/logd
The daemon of log
adbd
/sbin/adbd
ADBD process (Socket IPC)
Lmkd
/system/bin/lmkd
Lowmemorykiller Daemon Process
Console
/system/bin/sh
Control Desk
Vold
/system/bin/vold
Volu
-0x00005e200000: "User"//This has gone sour for 6M to 1506M.0x00005e200000-0x000080000000: "File System"PPP Generic driver Version 2.4.2
View
/# [6NDFFileSystem Size Used Free blksize/1G 112M 1G 4096/1G 112M 1G 4096/dev 113M 44K 113M 4096/dev 113M 44K 113M 4096/mnt/asec 113M 0K 113M 4096/mnt/obb 113M 0K 113M 4096/var 2M 0K 2M 4096
Only 1 G. Doubt can not exceed 1G, but the experiment is hanging success of the original BLOCK3, nearly 2G it
Using BusyBox DF to see the
/# [6nbusybox DFFileSystem
the Student information table we just established by executing the SQL command, it contains four fields: School number, name, age, Birthday code implementation: Open the Recordset, traverse all records, delete the first record, add three records, move the cursor to the second record, change its age, save to the database. try {_variant_ t vUsername,vBirthday,vID,vOld; _recordsetptr m_precordset ; m_precordset.createinstance ("ADODB. Recordset "); m_
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