; then # version 7.x export DISTRO_VERSION='7' else export UNSUPPORTED_RELEASE='YES' fi # Get distribution name as DISTRO_CODENAME if grep '^Red' /etc/redhat-release >/dev/null; then # RHEL export DISTRO_CODENAME='rhel' elif grep '^CentOS' /etc/redhat-release >/dev/null; then # CentOS export DISTRO_CODENAME='centos' elif grep '^Scientific' /etc/redhat-release >/dev/null; then
# version 7.x export DISTRO_VERSION='7' else export UNSUPPORTED_RELEASE='YES' fi # Get distribution name as DISTRO_CODENAME if grep '^Red' /etc/redhat-release >/dev/null; then # RHEL export DISTRO_CODENAME='rhel' elif grep '^CentOS' /etc/redhat-release >/dev/null; then # CentOS export DISTRO_CODENAME='centos' elif grep '^Scientific' /etc/redhat-release >/dev/null; then
LinuxThere are many releases and many distinctive names. Some are interesting, some are romantic, some have profound insights, some are cute, some are too short to satisfy the great ambitions of creators ..... 35 most popular Linux (BSD) are listed here)Meaning of the release name:
1.UbuntuIt means that every geek should know that this is an ancient African word that represents "human nature" or "My existence is because of the existence of everyone "
Defaults 0 0UUID=9015AA16-40BD-46DB-8C6B-B019513A8111/USR XFS Defaults 0 0UUID=DCBBA68B-953B-4CD5-9B92-88801EF89C0A swap swap defaults 0 0\sKernel \ r on an \m10. Summarize the methods used to describe the user and group management commands and complete the following exercises:(1), create group distro, its GID is 2016;[Email protected] ~]# groupadd-g distro[Email protected] ~]# Cat/etc/group |tail-1DISTRO:
-918d-c9e004fe6a59/ ext4defaults11uuid= 234cc62b-7746-477d-ad58-8fb2448b9788/boot ext3defaults 12UUID=b2c5da64-87b4-44c0-8864-f4a006b824fc swap swapdefaults00 tmpfs /dev/shm tmpfsdefaults0 0devpts/dev/pts devpts gid=5,mode=62000sysfs /sys sysfs defaults00proc / proc procdefaults00 centosrelease6.5 (Final) kernel\ronan\m 10. Summarize the methods used to describe the user and group management commands and complete the following exercises:(1), create group di
This directory stores configurations related to Cobbler profiles, systems, and distros.
2.3.5 log files
Web log storage point:
/Var/log/httpd/access_log
/Var/log/httpd/error_log
/Var/log/httpd/ssl_access_log
/Var/log/httpd/ssl_error_log
Cobbler log:
/Var/log/cobbler. log
/Var/log/cobbler/install. log
You can use the Cobbler log to obtain the system installation status.2.3.6 import an image
1. Check the md5 value of the downloaded ISO file to ensure data integrity.
Md5sum xx. iso
2. Create a di
| Head | Cut-d:-f1RootBinDaemonSysAdmTtyDiskLpMemKmem
9. Merge the contents of the/etc/fstab and/etc/issue files into the same content and save them to the/tmp/etc.test file
[Root@localhost ~]# cat/etc/fstab >/tmp/etc.test[Root@localhost ~]# cat/etc/issue >>/tmp/etc.test10. User, Group Management class command practice
10.1 Create group Distro with a GID of 2016
[Root@localhost ~]# Tail/etc/group[Root@localhost ~]# tail-1/etc/groupDISTRO:X:2016:
the total number of subdirectories or files in the next level of/var directory.
~]# Find/var-type F wc-l
8. Remove the name of the 10 group with the smallest value in the third field in the/etc/group file.
~]# sort-t ":"-k3/etc/group | head-10 | Cut-d ":"-f1
9. Merge the contents of the/etc/fstab and/etc/issue files into the same content and save them to the/tmp/etc.test file.
~]# Cat/etc/{fstab,issue} > Tmp/etc.test
10. Please summarize the usage of user and group management commands and
1, the Replication/etc/skel directory is/home/tuser1, requires/home/tuser1 and its internal files belong to the group and other users do not have any access rights.[Email protected] home]# cp-r/etc/skel//home/tuser1[Email protected] home]# chmod-r u-r,o-r tuser1/[email protected] home]# LLTotal 40DRWX------. 2 bash bash 4096 12:01 bashDRWX------. 2 basher basher 4096 12:01 basherDRWX------. 2 Mageia mageia 4096 01:14 LinuxDRWX------. 2 1005 distro 409
,--expiredate expire_date-I.,--inactive inactive-M,--mindays min_days-M,--maxdays max_days-W,--warndays Warn_daysTo view the user's related ID information: ID-u:uid-g:gid-g:group-n:nameTo switch users or perform as a different user: SuSu UserName: non-login switchSu-username: Login switch. The target user's profile is read and completely switched.Note:root to other users without a password, a password is required for non-root user Switching.A different Identity execution command: su-username-c '
the initialization script (based on the previously designed initialization script for Stampede), the original Stampede development system gradually evolved into a system of my own, next I used to test every new software package I created myself.
A few months later I had a complete and self-developed Linux version. I gave her a name named "Enoch" and then sat down and smiled. But what changes the development of Enoch and Gentoo? The next article will
: Added as System group groupmod: Modifying Group Property information-G GID: Modify user base Group ID-N GRPNAME: Modify Group nameGroupdel: Deleting a groupgpasswd: Set password for group (newgrp GRPNAME: Temporarily switch base Group to another group, password required)Newgrp GRPNAME chage: change user password expiration information. (not familiar with)-D: Last modification time-E: Expiration time (0 means immediate expiration, 1 means never expires)-I: Inactive time (I in uppercase) (numbe
1. Create a user Mandriva with an ID number of 2002, a base group of distro (group ID 3003), and an additional group of Linux
[[email protected] ~]# groupadd-g 3003 distro[[email protected] ~]# tail-1/etc/groupdistro:x:3003:[[email protected] ~] # Groupadd Linux[[email protected] ~]# tail-1/etc/grouplin
, whose ID number is 1005; basic group is distro;[Email protected] jun_shao]# useradd-u 1005-g distro Mandriva(3), create user Mageia, whose ID number is 1100, home directory is/home/linux;[Email protected] jun_shao]# useradd-u 1100-d/home/linux Mageia(4), to the user mageia add password, password for mageedu;[Email pr
happen to find that these combinations of tools can meet most of the needs of most people . With these two features in view, many of the advantages/disadvantages of Linux have become easy to understand.
tendency to applyThe most notable feature is that all development-related tasks have a very well-developed tool support. -From the bottom compiler, to the Make/cmake, to the Shell Script/script languages, to git, to the Vim/emacs to the convenient
10 groups with the smallest number in the third field in the/etc/group file # Cat/etc/group | sort-n-T:-k3 | head-n | cut-d ': '-f1Vii. Merge the contents of the/etc/fstab and/etc/issue files into the same content and save to the/tmp/etc.test file# cat/etc/issue >>/tmp/etc.test | Cat/etc/fstab >>/tmp/etc.testViii. summarize how to use the user and group management commands and complete the following exercises: (1) Create group Distro, whose GID is
|grep "^-" |Wc-l #文件的个数 Ls-lr/var |grep "^d" | Wc-l #文件夹的个数 let sum=$ (Ls-lr/var | grep "^d" | wc-l) +$ (Ls-lr/var | grep "^-" | wc-l); echo $sum #计算总个数8. Remove the names of the 10 groups with the lowest value of the third field in the/etc/group file;Sort-t ': '-k3n/etc/group |head-10 | Cut-d:-f19. Merge the contents of/etc/fstab and/etc/issue files into the same content and save to the/tmp/etc.test file. Cat/etc/fstab/etc/issue >/tmp/etc.test10. Summarize the methods used to describe the user
, owning group
-G
Specify additional groups, subordinate groups
Group Management Command: Create a group Groupadd
-R
Create a System user
-G
Specify Giu
Modify account command usermod usermod options user name
-C
Describe
-D
Modify Home Directory
-s
modify shell environment
-U
Modify UID
-G
Modifying
number of the third field in the/etc/group file.~]# sort-t:-k3-n/etc/group | Cut-d:-f1 | HeadThe contents of the/etc/fstab and/etc/issue files are merged into the same content and saved to the/tmp/etc.test file.~]# cat/etc/fstab/etc/issue >/tmp/etc.testSummarize the methods used to describe the user and group management commands and complete the following exercises:(1) Create group Distro with GID of 2016~]# Groupadd
"alt=" Wkiol1e5kqgahh-8aandyypn1w0219.jpg-wh_50 "/>10. Summarize the methods used to describe the user and group management commands and complete the following exercises:(1), create group distro, its GID is 2016; groupadd-g distro(2), create user Mandriva, whose ID number is 1005; basic group is distro; useradd-u 1005-g dist
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.