Linux basic command exercises Day2 and linux exercises day2
Job 1:
1) create a user named natasha. The uid is 1000, the gid is 555, and the remarks are "master"
2) modify the Home Directory of the natasha user to/Natasha
3) view the last line of the
The Find command is one of the most powerful commands, but it is also one of the most difficult commands for command-line structures to master.
# Find/-print | WC-L displays the number of files and directories in the system.
# Find/-user
Analyze the NTFS file system to get the content of a specific file, ntfs file content
Find the content of a file (for example, to read the file D: \ dir \ dir2 \ text.txt, follow these steps:(1) read the Partition Table/partition linked list
Homework One1, the new user Natasha,uid, GID is 555, the note information is "master"Groupadd-g 555 Natashauseradd-g 555-u 1000-c Master NatshaModify Natasha user's home directory to/natashaView the last line of the user information profileSet the
Add user Natasha with Edit file passwd User ID 1000, group ID 555Add Natasha user information to the shadow fileThe genus group ID for adding Natasha in the group file is 555Create/home/natasha user's host directory for Natasha, and copy the host
Job One:1) New user Natasha,uid is 1000,gid to 555, note information is "master"2) Modify Natasha user's home directory for/natasha3) View the last line of the user information profile4) Set the password "123" for the Natasha user5) View the last
Create a user process manually1) New user natasha,uid is 1000,gid to 555, note information is "master"vim/etc/passwdNatasha:x:1000:555:master:/home/natasha:/bin/bash2) Modify Natasha user's home directory for/natasha[Email protected] ~]#
Job One:1) New user Natasha,uid is +, gid is 555, note information is "master" Groupadd-g 555 NatashaUseradd-u 1000-g 555-c ' master ' Natasha2) Modify Natasha user's home directory for /natasha Usermod-d/natasha/natasha3) View the last line of
To find the contents of a file (for example, to read a file D:\dir\dir2\text.txt, follow these steps:(1) Read the partition table/partition list information and find the starting sector of disk F.(2) Read the first sector of the D-Disk (partition of
Tag: User password indicates dir groupadd lock useradd Ash bash the1 The new user natasha,uid is 1000,gid to 555 and the note information is "master" Groupadd-g 555 NatashaUseradd-u 1000-g 555-c "Master" Natasha2. Modify the Natasha user's home
A. users, groups, and permissions1) New user natasha,uid is 1100,gid to 555, note information is "master"2) Modify Natasha user's home directory for/natasha3) View the last line of the user information profile4) Set the password "123" for the
Job One:1) New user Natasha,uid is 1000,gid to 555, note information is "master"2) Modify Natasha user's home directory for/natasha3) View the last line of the user Information profile4) Set the password "123" for the Natasha user5) View the last
Download the test version:Http://www.symental.com/sfw/xrename.zip
Xrename, also known as the file folder super rename tool, can help you quickly rename a batch of files or folders according to the specified requirements, for example, replace
Linux cloud automated O & M course 4: linux cloud AutomationAutomated O & M for Linux
I. vim
1. Move the vim cursor
1) In command mode
: Number ### move to the specified row
G ### last line of the file
Gg ### first line of the file
2) In insert
linux-Command Permissions1) New user natasha,uid is 1000,gid to 555, note information is "master"2) Modify Natasha user's home directory for/natasha3) View the last line of the user information profile4) Set the password "123" for the Natasha user5)
Objective: to use eclipse on the local machine (Win7) to operate Hadoop on the virtual machine (redhat) for learning and experiment purposes. general workflow-Hadoop installation section: 1. implement ssh password-less authentication configuration
Rsync is a data-mirroring Backup tool under Unix-like systems, which can be seen from the name of the software--remote syncit has the following characteristics:The entire directory tree and file system can be saved in a mirror.It is easy to keep the
* The index Node object is represented by an inode struct. The definition file is in Linux/fs. h.*/Struct inode {Struct hlist_node I _hash;/* hash table */Struct list_head I _list;/* index node linked list */Struct list_head I _dentry;/* directory
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.