Task one: Complete the following actions as required
1) Display date format
2) Create a new directory test under/tmp/and specify permissions 664
3) Show environment variable path, but add/root to $path
4) display the/etc/passwd with cat and print the travel number
5) Show 5-10 lines in the/etc/passwd file
6) Displays the CTime time of all files in the/home/directory
7) Display the atime time of all files in/home/directory
8) Show Mtime time for all folders in/home/directory
9) Find the directory or file that was added a day before the home/directory
10) Find directories or files that have been changed in the/etc/directory for 24 hours
11) Find a new file or directory in the/etc/directory than the/etc/passwd date
12) Find the files or directories of all test users in the/home directory
13) Look for files with file attribute F under/home
14) Find/directory all special bit files.
15) Find/directory All special bit files, and show detailed information
16) Find/directory All files larger than 2M
17) Query the files that were changed one hours before the/etc directory, excluding directories
Copy file/etc/passwd to/tmp directory, hold timestamp
19) View the usage space of the/tmp/directory
20) set Linux to shut down after one minute
21) Set Linux to restart after one minute
22) Enter the/home directory and use PWD to display the current directory
23) Create directory under/Under Worker, create directory under worker host01,host02 directory under host01 h01,h02
24) Delete the H01 directory under HOST01, and if the host01 directory is empty, delete the host01
25) Create a file under host02 baby.txt
26) long format display of files in/etc
27) Copy the/etc/yp.conf to/worker/host02, prompting the user to overwrite
28) Copy/etc/yp.conf Copy to/worker/host02, renamed to Tt20912.conf
29) Copy the files and directories under/mnt to/worker/host02
30) Create directory host03 under the worker, move all files in host02 to host03, such as file presence without any overlay hint
31) Delete all files under host03, the user will need to confirm the deleted files.
32) Delete all directories under host03
34) Try to build a hard link to/worker/host02/yp.conf to/man.hard
35) Try to create a soft link to/worker/host02/yp.conf to/soft.soft
36) in/under the establishment of directory test20912, in test20912 set up files 1.txt and 2.txt, respectively in the file 1.txt and 2.txt input "I am Chinese", "Is you OK?" "Use the cat command to see what's in it, merge the contents of 1.txt and 2.txt into 3.txt and add line numbers
37) Show/worker/host02/yp.conf from line 5th
38) Display/worker/host02/yp.conf before the five elements
39) display/worker/host02/yp.conf after five elements
40) Find all files starting with "Cu" In/dev
41) Create file file.txt under Worker, enter in File.txt
1001 A CCC1957 AUX 58.00 lvx2a 138
1002 B CCC1956 AUX 45.00 lvx2c 289
1058 C CCC1988 AUX 63.00 kvm9d 234
2058 D CCC1979 PCB 73.00 plc2c 68
4080 E CCC1929 PCB 79.00 plv2c 512
5800 F CCC1988 USP 77.00 kcm9d 234
5008 G CCC1987 USP 96.00 kvm9e 644
Then complete
1 total number of rows containing "58" strings
2 Display line numbers for all lines with a "58" string
3 exact matching of rows containing only "408" strings
4 Find cities with codes 1001 and 1002
5 display makes the beginning of the line not 4 or 5
6 Show rows containing a
7 Show all codes starting with K and ending with D
8 Display the first two are uppercase letters, the middle two arbitrary, and the code ending in C
9 querying all records starting with 1 ending with 8 or 9
10 searching for "plc2c" in file.txt
11 pairs of file.txt sorted by value
12 count the number of rows, words, and characters in file.txt
Task two: Complete the following actions as required, write the corresponding commands
1. Create directory think under/and copy/etc/inittab files to/think
2. View the contents of line 5th of the Inittab file and record
3. Under Think, create a new file Mod.c, enter the contents and save the exit.
#include <stdio.h>
void Main () {
int i;
float S;
scanf ("%d", &i);
s=i*i+20;
printf ("%d", s);
4. Open MOD.C to display line numbers for all content
5. Position the cursor directly to the i*i and consider how to turn off the line number
6. Copy the/etc/man.config to the/think
7. Use VI to open the/think/man.config, the cursor moves to the first line, and search down the "teTeX" this string, if so, in what line?
8. Change the man from 50 to 100 rows to man, and a select whether to modify
9. If the revision is complete, how to restore all, how to operate?
10. Copy the contents of the 10 lines from 51 to 60 lines, and paste them after the last line;
11. Delete 20 rows between 11 and 30 rows;
12. Save Think/man.config as Man.test.config
13. Select all empty rows, and then delete them
14. How many lines and how many characters does the file have?
15. Delete the row containing man, save the file
Task three: Complete the following actions as required, write the corresponding command
1. Set up user Win1,uid, GID and so on by default
2. New user win2, default home directory is/think, remaining default
3. Change win2 user name to Tin,uid to 700, password to 1330855
4. Remove tin users together with the home directory
5. Create a user group named Goup, with a GID of 5000
6. Try adding win1 to Goup, clear text view win1 belongs to group
7. The file Book.txt is created under/think/, the user of the file is changed to Win1, and for the Book.txt, the group user is added
Write permission to cancel other users ' read and Write permissions
8. Modify the permissions of the Book.txt is a group readable writable, the same group is readable, other users are unreadable and not writable, with the number set
9. For Book.txt Read permissions to Everyone
Task four: Complete the following actions as required and record the process on the internship report
1. Copy the/etc/man.config to/think, compress/think/man.config to Good.tar, and under/think/new
Build file bad.conf, Man.config, bad.conf simultaneously compressed to Ftpp.tar
2. Displays the contents of the Ftpp.tar, creates a new file Top.txt, appends it to Ftpp.tar
3. Unzip the Ftpp.tar with gzip and use the TAR command to package all files under think as lost.tar.gz and display the pressure
Shrinking progress
4. Delete the top.txt in the compressed file lost.tar.gz,
5. Displays all processes in the system.
6. Displays the CPU utilization of the machine you are using, memory utilization, 10 seconds Refresh
7. Set the system to build the directory/baby in 2 minutes, set up the file Ppstream.sys in/baby, and
Ppstream.sys compression to Pp.tar
8. Set up your system after 5 minutes to open the VI editor
9. View your system memory and disk space usage, statistics partition usage
10. Mount your USB drive, implement Linux access to the contents of the USB drive, write the complete process
11. Mount the CD-ROM, mount the \ c \ virtual machine and other \shrike-i386-disc1.iso into the optical drive, and implement Linux
Shrike-i386-disc1.iso file access, write the complete mount process
12. Check your machine for the installation of Samba, VSFTPD, FTP and other packages
13. Configure your Linux implementation, Linux access the Internet, write detailed configuration procedures
Linux Practice Commands