FlashKeepers

Linux · Professional · Professional Certifications

RHCSA Essentials

Red Hat RHCSA objectives: user and group management, storage with LVM and XFS, systemd, networking with nmcli, SELinux basics and firewalld.

About this set

40 basic cards for Professional Linux. It opens with "Command to add a new user named 'jsmith' to the system" and "Remove a user and their home directory". Study it alongside the other Professional sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

Command to add a new user named 'jsmith' to the system
Show answeruseradd jsmith
Remove a user and their home directory
Show answeruserdel -r username
Set a user's password to expire in 30 days
Show answerchage -M 30 username
Create a new group named 'developers'
Show answergroupadd developers
Add existing user 'jsmith' to group 'developers' without removing from other groups
Show answerusermod -aG developers jsmith
Show all groups a user belongs to
Show answergroups jsmith
Change file owner to user 'jsmith' and group 'developers'
Show answerchown jsmith:developers /path/to/file
Set default login shell for user 'jsmith' to bash
Show answerusermod -s /bin/bash jsmith
Initialize a physical volume for LVM on /dev/sdb1
Show answerpvcreate /dev/sdb1
Create volume group 'vg_data' using physical volume /dev/sdb1
Show answervgcreate vg_data /dev/sdb1
Create logical volume 'lv_home' with size 10GB in volume group 'vg_data'
Show answerlvcreate -L 10G -n lv_home vg_data
Extend logical volume /dev/vg_data/lv_home by 5GB
Show answerlvextend -L +5G /dev/vg_data/lv_home
Reduce logical volume /dev/vg_data/lv_home by 2GB
Show answerlvreduce -L -2G /dev/vg_data/lv_home
Remove logical volume /dev/vg_data/lv_home
Show answerlvremove /dev/vg_data/lv_home
List all physical volumes in the system
Show answerpvs

25 more cards in the app

Study this set free