RHCSA Exam Questions and Answers
Already Passed
How do you check the current kernel version in a Linux system?
You can check the current kernel version using the `uname -r` command.
What command is used to list all installed RPM packages on a system?
The command `rpm -qa` is used to list...
RHCSA Exam Questions and Answers
Already Passed
How do you check the current kernel version in a Linux system?
✔✔You can check the current kernel version using the `uname -r` command.
What command is used to list all installed RPM packages on a system?
✔✔The command `rpm -qa` is used to list all installed RPM packages.
How do you view the contents of a file in Linux?
✔✔You can use commands like `cat`, `less`, or `more` to view the contents of a file.
What is the command to create a new user in Linux?
✔✔The `useradd` command is used to create a new user.
How do you change a user’s password in Linux?
✔✔The `passwd` command is used to change a user’s password.
1
,What command is used to switch to another user account in Linux?
✔✔The `su` command is used to switch to another user account.
How do you check the disk usage of a directory?
✔✔You can check the disk usage of a directory using the `du` command.
What command can be used to display the available disk space on mounted filesystems?
✔✔The `df -h` command displays the available disk space on mounted filesystems in a human-
readable format.
How do you view active processes in Linux?
✔✔You can view active processes using the `ps` or `top` commands.
What is the command to stop a running process by its process ID (PID)?
✔✔The `kill` command followed by the PID can be used to stop a running process.
How do you set file permissions in Linux?
✔✔You set file permissions using the `chmod` command.
2
,What command would you use to change file ownership in Linux?
✔✔The `chown` command is used to change file ownership.
How do you create a new directory in Linux?
✔✔You can create a new directory using the `mkdir` command.
What is the command to remove an empty directory in Linux?
✔✔The `rmdir` command removes an empty directory.
How do you schedule a job to run at a specific time using cron?
✔✔You can schedule jobs using the `crontab -e` command to edit the cron table and set up the
schedule.
What is the function of the `/etc/fstab` file?
✔✔The `/etc/fstab` file is used to define how disk partitions, devices, and filesystems are
automatically mounted at boot.
3
, How do you mount a filesystem manually in Linux?
✔✔You can manually mount a filesystem using the `mount` command.
What command is used to unmount a filesystem?
✔✔The `umount` command is used to unmount a filesystem.
How do you check the status of systemd services?
✔✔You can check the status of systemd services using the `systemctl status` command.
What is the purpose of the `journalctl` command?
✔✔The `journalctl` command is used to view systemd logs.
How do you start or stop a service using systemctl?
✔✔You use `systemctl start <service>` to start and `systemctl stop <service>` to stop a service.
What is the purpose of the `/etc/passwd` file?
✔✔The `/etc/passwd` file contains user account information, including usernames and home
directories.
4
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 BrilliantScores. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.