• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back

How do you recover a root password?

1) Append rd.break to grub menu


2) mount -oremount,rw /sysroot


3) mount /sysroot


4) passwd root


5) touch /.autorelabel

what is the command to delete 3 files named file1, file2, file3?

rm {file1, file2, file3}

What is the command to delete directory


~/tempdir and all sub directories and files?

rm -rf ~/mytempdir

What is the single command to create a


directory named tempdir along with a


sub-directory (temp1) under the home directory?

mkdir -p ~/tempdir/temp1

how do you interrupt the boot process to change the target to the rescue target?

1) Edit the grub file by pressing e on the appropriate line


2) append the end of the line that starts with linux16: systemd.unit=rescue.target


3) CTL X

What's the command to get the version of linux the system is running?

hostnamectl


uname -a

What is the command to shutdown the system in 5 minutes?


What is the command to shutdown the system at 1:00am?

shutdown +5


shutdown 01:00

How do you abort a shutdown?

shutdown -c

What is the command to rename the hostname and make sure the change survives a reboot?

1) hostnamectl set-hostname


2) sudo systemctl restart systemd-hostnamed

How do you create a new ssh key?

ssh-keygen

where is the ssh key stored by default?

/home/<username>/.ssh/id_rsa

ping a host 10 times

ping <hostip> -c 10