diff --git a/src/rhcsa.md b/src/rhcsa.md index dee9bfe..bdd470c 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -500,10 +500,23 @@ sudo systemctl restart sshd # Restart the sshd service ### NFS ```bash +sudo dnf install nfs-utils # Install the NFS utilities + sudo nano /etc/exports # Edit the exports file +# Add the following line to the exports file: +/mnt/nfs # The directory to export + sudo exportfs -r # Export the NFS shares sudo exportfs # Display the NFS shares sudo systemctl start nfs-server # Start the NFS server +``` + +### Configure an NFS Client +```bash +sudo dnf install nfs-utils # Install the NFS utilities + +sudo mount 192.168.1.1:/mnt/nfs /mnt/nfs # Mount the NFS share +sudo umount /mnt/nfs # Unmount the NFS share ``` \ No newline at end of file