Tags: Verify pts note reference redirect Ora standard output login clockPipe symbol "|" in Linux The roleCommand format: command a| command b, which is the correct output of command 1 as the operand of command B (apply someone else's picture)1. For example: PS aux | grep "Test" looks for test in the results of PS aux.2. For example: Find. -name "*.txt" | Xargs grep "Good"-n--color=auto the results of find as parameters into grep, which is the search f
/var directory.
~]# ls-d/var/* | Wc-l
8. Remove the name of the 10 group with the lowest numerical value in the third field in the/etc/group file.
~]# sort-t:-k3-n/etc/group | Cut-d:-f1 | Head
9. The 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.test
10. Summarize the methods used to describe user and group management commands and complete the following exercises:
(1) Create group
the third field in the/etc/group file with the lowest value of the 10 group nameSORT-T:-k3-n/etc/group | Cut-d:-f1 | Head9, the 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.test10. Summarize the methods used to describe the user and group management commands and complete the following exercises:(1) Create group Distro with GID of 2016Groupadd
: Create Group-
g: Specify GID
(1), create group distro, its GID is 2016;
[Root@node2 ~]# groupadd-g 2016 distro
(2), create user Mandriva, its ID is 1005; basic group is distro;
[Root@node2 ~]# useradd-g 2016-u 1005 Mandriva
(3), the creation user Mageia, its ID number is 1100, the home directory is/home/
Description
Cobbler Server System: CentOS 5.10 64-bit
IP Address: 192.168.21.128
You need to install a deployed Linux system:
Eth0 (first network card, for extranet) IP address segment: 192.168.21.160-192.168.21.200
ETH1 (second network card, for intranet) IP address segment: 10.0.0.160-10.0.0.200
Subnet Mask: 255.255.255.0
Gateway: 192.168.21.2
dns:8.8.8.8 8.8.4.4
All s
@localhost ~]# tail-1/etc/group distro:x:2016: Chuang Build User Mandriva, whose ID is 1005; basic group bit distro [root@localhost ~]# useradd-g distro-u 1005 Mandriva [root@localhost ~]# tail-1-/etc/p ASSWD mandriva:x:1005:2016::/home/mandriva:/bin/bash Create user Mageia with ID bit 1100; home directory for/home/linux; [Root@localhost ~]# Useradd-u 1100-d/home
total number of sub-directories or files in the/var directory.Du-c/var8. Remove the value of the third field in the/etc/group file to the minimum of 1Sort-n-K 3-t ': '/etc/group|head-n 10 | Cut-d ":"-f1Sort by ': ' To arrange the first 10 rows and delete: After a paragraph of characters9, the 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.test10. Summarize the methods used to describe the user a
to 500 after subsequent from the previous group ID.-R: Added as System group(16)Groupmod-G GID//modify group ID-N GRPNAME(17)Groupdel//Delete group(18)GPASSWD: Setting a password for a group(19) switch to the new groupNewgrp GRPNAME Cases:Newgrp MyGroupCases:1, create a user Mandriva, whose ID number is 2002, the basic Group is distro (group ID 3003), the additional group is Linux;# groupadd-g 3003
third field in the/etc/group file.Sort-t ': '-k3-n/etc/group | head-10 | Cut-d ': '-f19, the 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,issue} >/tmp/etc.test10. Summarize the methods used to describe the user and group management commands and complete the following exercises:(1), create group distro, its GID is;Groupadd-g distro
convert their names to uppercase and save them to the/tmp/etc.conf file.ls/etc | grep '. conf$ ' | Tr ' A-Z ' A-Z ' >/tmp/etc.conf7. Displays the total number of sub-directories or files in the/var directory.[Email protected] ~]# Ls/var |wc-w21st8. Remove the names of the 10 groups with the smallest number of the third field in the/etc/group file.[Email protected] ~]# cat/etc/group |sort-t:-n-k3|head-10|cut-d:-f1RootBinDaemonSyscd/TtyDiskLpMemKmem9, the contents of the/etc/fstab and/etc/issue f
10 group with the lowest value in the third field in the/etc/group fileCommand: sort-t:-k3-n/etc/group | Cut-d:-f1 | Head
9, the contents of the/etc/fstab and/etc/issue files are merged into the same content and saved to the/tmp/etc/test file.Command: cat/etc/fstab/etc/issue >/tmp/etc.test
10. Please summarize how to use the user group management commands and complete the exercise:(1), create group distro, its GID is 2016;Command: Groupad
Related exercises for Linux user and Group management commands:1, create a user Mandriva, whose ID number is 2002, the basic Group is distro (group ID 3003),The attachment group is Linux:#groupadd-G 3003 distro#groupadd Linux#useradd-u 2002-g 3003-g
time-I: Inactive time-M: Minimum period of use-M: Maximum lifespan-W: Warning timePractice:
Create a user Mandriva with an ID number of 2002, a base group of distro (group ID 3003), and an additional group of Linux
#:groupadd-g 3003 distro#:groupadd Linux#:useradd-u 2002-g
/etc/login.defs file, you can set the information when the user adds13.id command--View user's attribute information-U: View UID-G: View GID-G: View additional group GID-N: View Group name14.pwck--Checking user account Integrity15.chage--Changing the user password expiration time -D: Last modification time-E: Expiration time-I: Inactive time-M: Minimum period of use-M: Maximum lifespan-W: Warning timePractice:1, create a user Mandriva, whose ID number is 2002, the basic Group is
in the/var directory.[Email protected] ~]$ ll-a/var |wc-l8. Remove the names of the 10 groups with the smallest number of the third field in the/etc/group file.[Email protected] ~]$ cat/etc/group |sort-t:-k3-n-r | Tail-109, the contents of the/etc/fstab and/etc/issue files are merged into the same content and saved to the/tmp/etc.test file. [Email protected] ~]$ cat/etc/fstab/etc/issue >>/tmp/etc.test10. Summarize the methods used to describe the user and group management commands and complete
,... : Set up a list of users with administrative rights(1), create group distro, its GID is 2016;[Email protected] ~]# groupadd-g distro(2), create user Mandriva, whose ID number is 1005; basic group is distro;[Email protected] ~]# useradd-u 1005-g distro Mandriva(3), create user Mageia, whose ID number is 1100, home
distro Mandriva(3), create user Mageia, whose ID number is 1100, home directory is/home/linux;Useradd-u 1100-d/home/linux Mageia(4), to the user mageia add password, password for mageedu;echo "Mageedu" | passwd--stdin Mageia(5), delete Mandriva, but retain their home directory;Userdel Mandriva(6), create user Slackware, its ID number is 2002, the basic group is
system. Here free refers not only to money, but also to freedom of speech. This means that the source code of Linux can be researched and modified by everyone, you can even copy your favorite code for sharing.
Free Software
Compared with Windows and mac OS x, Windows OS X is not open-source, which means that users cannot systematically learn and freely allocate resources. One of the main reasons for the openness of
openness of Linux is the success of the derivative version of the Linux operating system. The early open-source technology enabled many individuals and enterprises to build their own Linux derivative versions.
3. What is the Linux release?The so-called release version (distro
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.