7.29 Jobs

Source: Internet
Author: User

7 . 29 Jobs

1. the difference between soft and hard links

difference: Hard chain Connect refers to a connection made through an index node. In a Linux file system, files saved in a disk partition are assigned a number, called an index node number, regardless of the type. Hard link It cannot span devices, cross partitions. The number of links is incremented after creation, and each directory references the same inode number.

In the delete hard link is, as long as there is a link number, the file exists, the number of links is zero, the file is deleted.

Soft Links The file is a bit like a shortcut to Windows, and when the source file is deleted, the link fails. It can span partitions and can be used for directory

A soft link is another file, the function can be understood as a pointer, action on this file operation in addition to the deletion are directly to the actual point of the file, because it is a real file, so occupy disk space , the content of a symbolic link is the name of the file it refers to. It points to the path of another file whose size is the length of the path string pointed to, and does not increase or decrease The reference count of the target file inode.

2. Convert the contents of the /etc/issue file to uppercase and save to the /tmp/issue.out file

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/85/4C/wKiom1efSgfS0kbZAAAHGQCgZhc241.png "title=" Qq20160801205418.png "alt=" Wkiom1efsgfs0kbzaaahgqcgzhc241.png "/>

3. Convert the current system login user's information to uppercase and save to /tmp/who.out

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/85/4C/wKiom1efShaiKmisAAAHHs4chJI369.png "title=" Qq20160801205507.png "alt=" Wkiom1efshaikmisaaahhs4chji369.png "/>

4. a Linux user sends an email to root asking for the message titled "Help" with the following message body: Holle

, I am username , the system version is Here,please help me to check it, thanks!

Operating system Version Information

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/85/4C/wKioL1efSiWDsCCFAAARsqRSEYk825.png "title=" Qq20160801205533.png "alt=" Wkiol1efsiwdsccfaaarsqrseyk825.png "/>

5. /root/ The list of files, displaying them as a line, separated by a space between the filenames

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/85/4C/wKioL1efSjTRHuUkAAAE6EetZUM657.png "title=" Qq20160801205609.png "alt=" Wkiol1efsjtrhuukaaae6eetzum657.png "/>

The contents of the 6.file1 file are: "1 2 3 4 5 6 7 8 9" Calculates the sum of all the numbers

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/85/4C/wKiom1efSkiRYq0ZAAAJIF3G60Q856.png " Title= "Qq20160801205628.png" alt= "Wkiom1efskiryq0zaaajif3g60q856.png"/>

7. handle the string "xt.,l 1 jr#! $mn 2 c*/fe3 uz4", preserving only the numbers and spaces

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/85/4C/wKioL1efSlfiqO4uAAAMeQ_lYCs388.png "title=" Qq20160801205647.png "alt=" Wkiol1efslfiqo4uaaameq_lycs388.png "/>

8. Display the PATH variable in a separate row for each directory

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/85/4C/wKiom1efSm2zOP7DAAAGMIAvRhA094.png " Title= "Qq20160801205706.png" alt= "Wkiom1efsm2zop7daaagmiavrha094.png"/>

9. Delete blank lines for the specified file

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/4C/wKiom1efSnuzG7KxAAAFhagJxIc186.png " Title= "Qq20160801205724.png" alt= "Wkiom1efsnuzg7kxaaafhagjxic186.png"/>

to display each word (letter) in a file in a separate line, with no blank lines

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/85/4C/wKiom1efSoyCboiAAAAFLOMk7T0299.png "title=" Qq20160801205743.png "alt=" Wkiom1efsoycboiaaaaflomk7t0299.png "/>0

One by one. Create user Gentoo, additional group bin and root, default shell For /bin/csh, the annotated message is "Gentoo distribution"

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/85/4C/wKioL1efSsjDOc-sAAAHmjXEUdg332.png "title=" Qq20160801205753.png "alt=" Wkiol1efssjdoc-saaahmjxeudg332.png "/>

Create the following user, group, and group memberships

Group with the name admins

User Natasha, using admins as a subordinate group

Harry, also use admins as a subordinate group

User Sarah, not an interactive login system, and not A member ofadmins,Natasha,Harry . ,Sarah 's code is all CentOS .

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/4C/wKiom1efSvfRvmflAAAMiy4LdI8256.png " Title= "Qq20160801205821.png" alt= "Wkiom1efsvfrvmflaaamiy4ldi8256.png"/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/85/4C/wKioL1efSx-yimJHAAAFYJN-liY267.png "title=" Qq20160801205834.png "alt=" Wkiol1efsx-yimjhaaafyjn-liy267.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/85/4C/wKiom1efSy-zZJNqAAAE7bjlyVE373.png "title=" Qq20160801205841.png "alt=" Wkiom1efsy-zzjnqaaae7bjlyve373.png "/>


This article from "11890466" blog, declined reprint!

7.29 Jobs

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.