100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA Redhat – Questions With Complete Solutions $26.99   Add to cart

Exam (elaborations)

RHCSA Redhat – Questions With Complete Solutions

 1 view  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA Redhat – Questions With Complete Solutions

Preview 4 out of 37  pages

  • October 24, 2024
  • 37
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
LeCrae
RHCSA Redhat – Questions With Complete Solutions

Repeat last command Right Ans - !!

Repeat last argument in current command Right Ans - !$

Kernel log message command Right Ans - dmesg

File usage Right Ans - du -hsx
h - human, s - summarize,
x - single fs

Umount a busy drive Right Ans - kill -9 'lsof +D /mnt/cdrom'
(list open files, +D=directory and contents)

Compare file contents Right Ans - diff

Search for all gzip files, not dirs Right Ans - find -type f -name *.gz

Command to tell crond what to do Right Ans - crontab

crontab order Right Ans - Min, hour, date, month, day, command

Show what's in crond Right Ans - crontab -l

Turn on firewall for run levels 2-5 Right Ans - chkconfig iptables on

Check if <cmd> is running Right Ans - service <cmd> status <=old
systemctl status <cmd> <=new

Set tasks for crond Right Ans - crontab -e
e = edit

Mail location Right Ans - /var/spool/mail

Command to check messages Right Ans - mail

Check <cmd> run level schedule Right Ans - chkconfig --list <cmd>

,Print a file's number of lines Right Ans - wc -I <file>
l=line

User account commands Right Ans - useradd, userdel, usermod

usermod switches Right Ans - G second group, g main group, u user ID
num, d home, s shell

Set user password Right Ans - passwd --stdin <user>

Delete user account AND home dir Right Ans - userdel -r
r = remove

Force user password change Right Ans - chage -d 0 <user>
change + age
-d = last day

Group-file field categories Right Ans - /etc/group gname:x:gid:users

User account lock cmd Right Ans - usermod -L or -U <usr>
U = unlock

Check if user account is locked Right Ans - less /etc/passwd
user:! means locked
:!! means no password set

Show password parameters Right Ans - chage -l <login>
l = list

Set password max life Right Ans - chage -M <# of days>

Firewall settings GUI Right Ans - system-config-firewall

Scan for open ports Right Ans - netstat -tulpn (as root)
nmap 192.168.1.10
tu=tcp/udp, l=only listening, p=sh pid, n=numeric address

Yum repo location Right Ans - /etc/yum.repos.d

,Turn <cmd> on for important run levels Right Ans - chkconfig <cmd> on

cmd to see if crond is running Right Ans - ps -ef | grep crond
e=every process, f=ASCII process hierarchy
or
service crond status <=old
systemctl status crond <=new

start crond Right Ans - service crond start <=old
systemctl start crond <=new

turn <cmd> on for important run levels Right Ans - chkconfig <cmd> on

check what levels <cmd> is set to run at Right Ans - chkconfig --list <cmd>

cmd to set instructions for crond Right Ans - crontab -e

script comment symbol Right Ans - #

crontab format Right Ans - min hr date month day command

what day number is Sunday Right Ans - zero

cmd to get crontab help Right Ans - man 5 crontab

cmd to view email Right Ans - mail

where are emails stored Right Ans - /var/spool/mail

show list of crond tasks Right Ans - crontab -l

Be careful of this when creating crond tasks Right Ans - the created task
will run as the user you are logged in as

cmd for disk usage Right Ans - du -hsx
h - human, s - summarize, x - single fs

cmd to find all open instances of cdrom Right Ans - lsof +D /dev/cdrom
list open files, +D is for all instances and included files

, repeat previous argument Right Ans - !$

cmd to repeat most recent command Right Ans - !!

cmd to search in / for files named "root" (not dirs) Right Ans - find / -type f
-name root

What values do you set to staticly assign an IP to eth0 at system startup
Right Ans - /etc/sysconfig/network-scripts/ifcfg-eth0 =>
ONBOOT=YES
PROTO=none

DNS server settings are stored here Right Ans - /etc/resolve.conf

remember this if you change any network config Right Ans - service
network restart <=old
systemctl restart network <=new

what if no DNS server Right Ans - /etc/hosts is used as a sort of DNS cache
file

where do you make a hostname change permanent Right Ans -
/etc/sysconfig/network

cmd to temp change hostname Right Ans - hostname

how do you get into the grub loader at boot up Right Ans - hold down shift

how do you apply grub config changes Right Ans - update-grub

how do you change to single user mode during bootup Right Ans - enter
grub loader (hold shift during boot), hit e to edit, edit kernel argument, put a
"1" (one) at the very end of the line

cmd to show if selinux is enabled/installed Right Ans - getenforce
hint=security, law enforcement

cmd to start the environment GUI Right Ans - startx

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller LeCrae. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $26.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85651 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$26.99
  • (0)
  Add to cart