Log File Maintenance and Cleanup
Log files sometimes take up a lot of disk space. Some applications have internal processes that run periodically to manage them and some do not. Often, this becomes a problems after a while as the logs consume all of your partition space.
You can manage these files yourself with a simple script running in a cronjob (or systemd timers if you’re so inclined) if they have a common naming convention and you have the proper access.
How to Clean Up the Fedora Root Folder
OK, so you’re running Fedora and you’re getting warnings that you’re running out of disk space on the root folder. What are your options?
The first thing to consider is resizing the root partition size. For that you can find instructions here
If that is not an option, then the next thing you probably should do is find out which folders/directories are causing the issue. You can use the du command and some piping to figure this out:
How to Change the UID or GID for a User or Group
Let’s assume we have a user, Jane Doe, with the username of jdoe and the UID of 1001 who we need to move to another UID (for some reason or another).
First, change the UID of the user:
# usermod -u 3001 jdoe
Next, use search and change all file’s ownership owned by this user:
# find / -user 1001 -exec chown -h jdoe {} \;
How to Enable the Administrator Account in Windows
To activate the Administrator account on Windows, open the Command Prompt as Administrator from the Start Menu, or you can right-click on the “Start” menu and select the “Powershell” menu item, then enter:
net user administrator /active: yes
into the window. You should disable the account again when you’re done.