Settings
Enable Advanced Security Audit Policy
gpedit.msc → Computer Configuration → Windows Settings → Security Settings → Advanced Audit Policy Configuration → System Audit Policies - Local Group Policy Object.
Power
# View the available CPU speed governors for the first CPU core
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# Output example: performance powersave
# Check the current CPU governor in use for the first CPU core
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# Output example: powersave
# Change the CPU governor to 'performance' mode for all CPU cores
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# This command sets the scaling governor to 'performance' for all CPU coresBIOS & Firmware Version
# Display BIOS information from the system's DMI (Desktop Management Interface) data
sudo dmidecode -t biosLinux File Permissions
-rw-r--r-- 12 linuxize users 12.0K Apr 28 10:10 file_name
|[-][-][-]- [------] [---]
| | | | | | |
| | | | | | +-----------> 7. Group
| | | | | +-------------------> 6. Owner
| | | | +--------------------------> 5. Alternate Access Method
| | | +----------------------------> 4. Others Permissions
| | +-------------------------------> 3. Group Permissions
| +----------------------------------> 2. Owner Permissions
+------------------------------------> 1. File TypeRsync & SCP
Firewalld
SSH logging
Syslog
auth.log
System authentication and security events
boot.log
A record of boot-related events
dmesg
Kernel-ring buffer events related to device drivers
dpkg.log
Software package-management events
kern.log
Linux kernel events
syslog
A collection of all logs
wtmp
Tracks user sessions (accessed through the who and last commands
1
Alert
Action must be taken immediately
2
Critical
Critical conditions
3
Error
Error conditions
4
Warning
Warning conditions
5
Notice
Normal but significant conditions
6
Informational
Informational messages
7
Debug
Debug-level messages
MISC
Memory Commands
CPU & Processes Commands
Storage Commands
Network Commands
Disable SELinux
Disable Transparent Huge Pages (THP)
NTP Commands
Permission Commands
Storage Options
Option 1: Resize Without Adding a New Disk
OR
Option 2: Resize by Adding a New Disk
Crontab
Overview: Crontab is a time-based job scheduling program in Unix-like operating systems, allowing users to automate recurring tasks. The term "crontab" combines "cron" (the daemon that executes scheduled tasks) and "tab" (short for table, as the scheduling information is organized in a tabular format).
Usage: Crontab is ideal for scheduling scripts, commands, or programs to run at specified intervals (e.g., daily, weekly, monthly, or specific minutes within an hour). It is particularly useful for automating repetitive tasks and maintenance activities.
Crontab File Format: The crontab file follows this structure:
Field Breakdown:
Minute: 0-59 (when the task runs)
Hour: 0-23 (when the task runs)
Day of Month: 1-31 (when the task runs)
Month: 1-12 or names (e.g., Jan, Feb)
Day of Week: 0-7 or names (0/7 = Sunday)
Command: The command or script to execute
Scheduling a Task: To schedule a task, add a line to your crontab file using the specified format. Fields are separated by spaces or tabs, and asterisks (*) can be used to represent any value.
Editing Crontab: Use the command crontab -e to edit the crontab file for the current user.
Last updated