Can you install your own software when being an IT system admin

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
1702384226725.pngi am thinking this is wrong cause there is no .txt in the line
 
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
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
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.
 
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.
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.
 
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 note 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 words 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.
 
Last edited:
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.

You shouldn’t delete the entire line, just edit a part of it.
 
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/fstab

and look at what partitions are setup.

then you can remount the root partition (whatever its named) in write mode.
 
cat /etc/fstab

and look at what partitions are setup.

then you can remount the root partition (whatever its named) in write mode.
You shouldn’t delete the entire line, just edit a part of it.
i did not delete the entire line
You 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 .
 
Last edited:
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 .
Does 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 ...."
 
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
Nope and it's considered a fairly generic administration task to make partitions, delete them, resize them, make use of LVM etc.

Additionally acronyms matter (It's RHCSA, not RHELCSA ), case matters, spelling matters - you're using the CLI, make sure your inputs are correct for everything you do.

--

1.) For some things you can probably get away with GUI based tools like gparted or some such - but really you should learn, know the CLI and know how to find reference documentation / help.

2.) I'd start by layering your knowledge. What is a disk, FS, partition, LVM etc etc. Once you understand one, then move to the other. Look at articles, man pages etc for further info when things are unclear.
 
Last edited:
the problem is when using fdsk /dev/ sda2..etc i do everything correct but when they say what size i input 500M then the system give me an error in red saying that the partition starts at 1749585 etc.I tried multiple times with no luck.i dont even know what can go wrong as fdisk automate by pressing m in cli.Anyway i will follow your advice.
 
Top
Sign up to the MyBroadband newsletter
X