South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Not just that... if they only want you to delete the .txt files in the user's Home directory (and not the subdirectories), surely you don't need to recurse?I got a problem and i think there is a mistake in the study material.If i wanted to do a crontab job to delete all txt files in a users home directory at midnight.Would this be correct
View attachment 1632727i am thinking this is wrong cause there is no .txt in the line
then how would you crontab -u student -eNot just that... if they only want you to delete the .txt files in the user's Home directory (and not the subdirectories), surely you don't need to recurse?
0 0 * * * /usr/bin/rm /home/student/*.txtI got a problem and i think there is a mistake in the study material.If i wanted to do a crontab job to delete all txt files in a users home directory at midnight.Would this be correct
View attachment 1632727i am thinking this is wrong cause there is no .txt in the line
this great stuff man i knew there was something wrong with that line ,Thank you so much, now i can go study that part again,Allso i do not want to go beyond what the study bootcamp material shows.I am already stressed out with the things i forgot in previous lessons.For example i forgot the cli string for saving i made for changes to the grub boot timeout.Again thank you sir.0 0 * * * /usr/bin/rm /home/student/*.txt
If you want to do recursive delete look into "find" using "xargs". Can give you the command but really useful if get to grips with it yourself and try various options, very powerful.
![]()
Get 'Linux All-In-One For Dummies, 7th Edition' (worth $24) for FREE
Linux All-in-One For Dummies breaks down the ever-popular operating system to its basics and trains users on the art of Linux.betanews.com

I have a major problem again with my studies.The question is if an admin forgot the root password or has left the company how can we create a new password.(reset the administrator root password)I followed the examples and i am getting an error.
These are my steps
Firstly i did not change the run level from 5 to 3,i dont think this matters but here is my steps
Please take not that i am doing these tasks on a notebook that is dual booted with windows 11/redhat9.The bios has selected grub as default.
At the grub menu i press E
I then delete the line rhgh quiet and replace it with rd.break and then on keyboard i press cntrl+X
the system is now in emergency mode
I then type:
mount -o remount,rw /sysroot
This is the error i receive after that above cli command "mount: /sysroot: cant find in /etc/fstab.
I do not know what more to do after this.What am i doing wrong.
cat /etc/fstabI have a major problem again with my studies.The question is if an admin forgot the root password or has left the company how can we create a new password.(reset the administrator root password)I followed the examples and i am getting an error.
These are my steps
Firstly i did not change the run level from 5 to 3,i dont think this matters but here is my steps
Please take not that i am doing these tasks on a notebook that is dual booted with windows 11/redhat9.The bios has selected grub as default.
At the grub menu i press E
I then delete the line rhgh quiet and replace it with rd.break and then on keyboard i press cntrl+X
the system is now in emergency mode
I then type:
mount -o remount,rw /sysroot
This is the error i receive after that above cli command "mount: /sysroot: cant find in /etc/fstab.
I do not know what more to do after this.What am i doing wrong.
cat /etc/fstab
and look at what partitions are setup.
then you can remount the root partition (whatever its named) in write mode.
i did not delete the entire lineYou shouldn’t delete the entire line, just edit a part of it.
I did this,i only EDiT that section as i explained in the post.UPDATE:I changed the words in my post...sorry for the confusion .You shouldn’t delete the entire line, just edit a part of it.
can i do this in recovery mode.Ok let me check,i am not sure if the dual boot is causing this,AFAIK it sohuld not matter as the grub loaded the entire boot sector.cat /etc/fstab
and look at what partitions are setup.
then you can remount the root partition (whatever its named) in write mode.
thank you sir
Does your prompt say "switch_root #" or something to that effect?i did not delete the entire line
I did this,i only EDiT that section as i explained in the post.UPDATE:I changed the words in my post...sorry for the confusion .
ok will try but i am confused about the linux.... you mention.wait le me seeDoes your prompt say "switch_root #" or something to that effect?
Try not removing anything and just adding "rd.break" to the line that starts with "linux ...."
Nope and it's considered a fairly generic administration task to make partitions, delete them, resize them, make use of LVM etc.Guys i am really struggling with the rhelcsa at the sectionView attachment 1661865
Its a nightmare, is there any easy way to go about this to gain the concept of this