RHCSA, EX200, RED HAT CERTIFIED SYSTEMS ADMIN EXAM 2024| COMPLETE SOLUTION 100% ACCURATE
9 keer bekeken 0 keer verkocht
Vak
RHCSA
Instelling
RHCSA
RHCSA, EX200, RED HAT CERTIFIED SYSTEMS ADMIN EXAM 2024| COMPLETE SOLUTION 100% ACCURATE
how to redirect errors to a file? - command 2> <$filename>
2> will over write the file and 2>> will append
how to redirect both standard error and output to a file and have no ...
RHCSA, EX200, RED HAT CERTIFIED SYSTEMS
ADMIN EXAM 2024| COMPLETE SOLUTION 100%
ACCURATE
how to redirect errors to a file? - command 2> <$filename>
2> will over write the file and 2>> will append
how to redirect both standard error and output to a file and have no outputs show on
screen? - &>
how to redirect standard error into standard output? - 2 > &1
how to grep opposites? - grep -v
select all that do not start with l,i,n,u,x - grep -v '[^linux]'
returns everything not beginning with the letters: l, i, n, u, x
what does ? mean in regex - character before is optional
what does + mean in regex - preceding item is matched 1 or more times
what is scp? - secure copy protocol. do it over ssh. encrypted. old way to transfer. can
send commands to the other server.
what is sftp? - secure file transfer protocol. or ssh file transfer protocol. can connect
and live inside the other server.
can type get <$filename> to get copy the files back
what is tar -cvf - create, verbose, use this archive name.
how to see files in archive - tar -tf
what does tar -xzvf do - eXtract gZip Verbosely Filename
star command. archive utility. not default. need to yum install. - big data sets and files.
what is apropos and mandb - apropos searches the titles of man pages for this key.
man page is not indexed and cached so we need to run mandb and it'll be recorded.
how to see all the commands if stuck - info coreutils
, how to yum install the locate command? - yum install mlocate make sure to updatedb
how to find stuff - rpm -qd <$packageName>
whereis
which
man
info
things are in /usr/share/doc
/usr/share/info
/usr/share/man
locate and find - package is mlocate. install httpd also.
updatedb.
find /etc -name motd
find /etc -user <$name>
find / -mtime -3
find / -mtime +3
find / -uid <$uid>
find / -user jeff - type f
find /home/ -user jeff -type f -exec rm {} \;
useful for finding mass compromised files.
how to gain access to a system - interrupt the boot process to change the root
password on a system.
need physical access to the machine.
reboot
hit any key to interrupt the boot.
select a kernel
hit e to edit the grub config.
grub menu loads local kernel in the memory. needs to be mounted. attached future disk
root drive. nitramfs. initramfs. go to debug shell and code in memory.
linux16 line. end command. type in rd.break. ctrl x
goes into initram debug shell.
go in /sysroot or /root.
/sysroot will be mounted as /root
/sysroot is read only.
mount -oremount,rw /sysroot
chroot /sysroot
passwd
make new passwd.
touch /.autorelabel
exit
exit
system will reboot. we go into root now.
how to view oldest to newest processes of a user as root? - pgrep -u <$username> -l
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper Mboffin. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €11,45. Je zit daarna nergens aan vast.