Seventh Week activity content:
1, create a 10G partition, and the format of the Ext4 file system;
(1) The block size is required to 2048, the reserved space percentage is 2, the volume label is MyData, the default Mount property contains ACLs;
(2) Mount to the/data/mydata directory, require the mount to prohibit the program to run automatically, and do not update the file access time stamp;
2, create a swap partition of size 1G, and create a good file system, and enable it;
3. Write a script
(1), obtain and list all disk devices on the current system;
(2), display the space usage information about each partition on each disk device;
4. Summarize the different levels of RAID and its combination mode and performance;
5, the creation of a size of 10G RAID1, requires a free disk, and chunk size of 128k;
6, the creation of a size of 4G RAID5 device, chunk size of 256k, format Ext4 file system, required to automatically mount to the/backup directory, and do not update the access timestamp, and support ACL function;
7. Write a script
(1) Accept more than one file path as a parameter;
(2) show the number of rows owned by each file;
(3) A summary of the total number of documents for several statistics of their lines;
8. Write a script
(1) Pass more than two strings as user name;
(2) Create these users, and the password with the user name;
(3) A summary of the total creation of a number of users;
9, write a script, create a new 20 users, visitor1-visitor20; calculate the sum of their IDs;
10. Write a script that counts the sum of the number of lines starting with # in/etc/rc.d/rc.sysinit,/etc/rc.d/init.d/functions, and/etc/fstab files, and the total number of blank lines;
11. Write a script that shows the user name, UID, and the UID of all the default shell users on the current system.
12. Write a script that displays the user name of all the users on the current system with additional groups, and how many such users are in total;
13. Create a volume group of at least two physical volumes with a size of 20G, requiring a PE size of 8M, and creating a logical volume of 5G in the volume group MYLV1, formatted as EXT4 file system, boot automatically mounts to/users directory, support ACL;
14, the new user magedu, the home directory is/users/magedu, and then su switch to this user, copy multiple files to the home directory;
15, expand MYLV1 to 9G, ensure that the original data is fully available after the expansion;
16, reduce MYLV1 to 7G, to ensure that the original data is fully available after the completion of the reduction;
17, the MYLV1 to create a snapshot, and through the backup data, the requirement to retain the original genera group and other information;
Seventh Week assignment