In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Display / etc directory, starting with a non-letter, followed by a letter and other files or directories of any length and any character
First of all, query the files or directories under the current directory
Ls / etc
The queried file list information is piped to grep, and the things in the / etc directory are matched and filtered through regular expressions.
Ls / etc | grep "^ [^ [: alpha:]] [[: alpha:]. *"
2. Copy all files or directories that begin with p and end with non-numbers under the / etc directory to the / tmp/mytest1 directory.
First create a new mytest1 directory under the / tmp directory with the mkdir command
Mkdir / tmp/mytest1
Copy a qualified file or directory to the target file through the cp command
Cp-a / etc/ [p] * [^ [: digit:]] / tmp/mytest1/
View through the grep command
3. Convert the contents of the / etc/issue file to uppercase and save to the / tmp/issue.out file
Convert the contents of the file through the tr command
4. Summarize and describe how to use user and group management commands and complete the following exercises:
(1) create a group distro with a GID of 2019
Group-g 2019 distro
(2) create user mandriva, whose ID number is 1005; the basic group is distro
(3) create user mageia, whose ID number is 1100 and home directory is / homenux
(4) add a password to the user mageia, the password is mageedu, and set the user password to expire after 7 days.
(5) delete mandriva, but keep its home directory
(6) create user slackware, whose ID number is 2002, basic group is distro, and additional group peguin
(7) modify the default shell of slackware to / bin/tcsh
(8) add additional group admins for user slackware
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.