ufw: Uncomplicated Firewall
August 9th, 2024 2:32 PM Mr. Q Categories: Command
Description: A user-friendly frontend for managing firewall rules on Linux. ufw is designed to make configuring a firewall easier by providing a straightforward command-line interface. Command to Enable UFW Command to Check UFW Status: Command to Allow Incoming Traffic on Port 8080: Command to Deny Incoming Traffic on Port 3306: […] Read more »
history: Command History Management
August 9th, 2024 2:27 PM Mr. Q Categories: Command
history: Display or manipulate the command history list. Description: Shows the list of commands previously executed in the shell. Useful for recalling and reusing commands without retyping them. This will execute the command listed as number 3 in the history list. Output: Command to Execute a Specific History Entry: Output: […] Read more »
fsck: Disk usage and file integrity
August 9th, 2024 2:22 PM Mr. Q Categories: Command
fsck: File System Consistency Check and Repair Description: Checks and repairs inconsistencies in file systems. Running fsck is essential for maintaining file system integrity, especially after improper shutdowns or if there are disk errors. Replace /dev/sdX with the specific device or partition you want to check. Output: Using fsck with […] Read more »
Most Common and Important Files and Directories
August 9th, 2024 2:03 PM Mr. Q Categories: Command
Here’s a table categorizing common and important files and directories by their group: System and Configuration Files File/Directory Description /etc/passwd Contains user account information, such as usernames and user IDs. /etc/shadow Stores hashed user passwords and password expiration information. /etc/group Contains group account information, including group names and group IDs. […] Read more »
watch: Monitor command output at regular intervals
August 9th, 2024 2:00 PM Mr. Q Categories: Command
Command: watch The watch command is used to execute a command repeatedly at specified intervals and display the output. This is useful for monitoring changes in command output or system status in real-time. Commands and Outputs: Output: Output: Output: Changes will be highlighted to show differences from the previous output. […] Read more »
alias: Define shorthand commands for longer or frequently used commands
August 9th, 2024 1:59 PM Mr. Q Categories: Command
Command: alias The alias command allows you to create shortcuts for longer or frequently used commands. This can help streamline your workflow by reducing the amount of typing required. Commands and Outputs: Output: Output: Output: Example Usage: Note: Aliases are typically defined in shell configuration files like .bashrc or .zshrc […] Read more »
crontab: Schedule jobs (commands) to run automatically at specified times
August 9th, 2024 1:50 PM Mr. Q Categories: Command
Command: crontab The cron daemon is used to schedule commands or scripts to execute automatically at specified intervals. Jobs are defined in a crontab file, which outlines the timing and commands to run. Commands and Outputs: Text Editor Output: Output: Output: Text Editor Output: Read more »
iostat: System I/O statistics, disk, and processor activity
August 9th, 2024 1:46 PM Mr. Q Categories: Command
Command: iostat The iostat command provides detailed information about system input/output (I/O) statistics, including disk usage and CPU load. It’s useful for monitoring system performance and identifying potential bottlenecks related to I/O operations. Sample Commands and Outputs: Sample Output: Description: Options: Example with Options: Sample Output: Description: Read more »
vmstat: System virtual memory statistics
August 9th, 2024 1:45 PM Mr. Q Categories: Command
Command: vmstat The vmstat command provides system information related to virtual memory, processes, paging, block IO, traps, and CPU activity. It’s useful for monitoring system performance and diagnosing issues related to memory and process management. Sample Commands and Outputs: Sample Output: Description: Options: Example with Options: Sample Output: Description: Read more »
htop: Graphical representation similar to a task manager
August 9th, 2024 1:44 PM Mr. Q Categories: Command
Command: htop The htop command provides an interactive, ncurses-based graphical representation of system processes, similar to a task manager. It offers an enhanced view compared to top, with a more user-friendly interface and additional features for managing processes. Sample Commands and Outputs: Sample Output: Description: Installation:To install htop if it’s […] Read more »