You are here: Home / Topics / Page / 1

Logging and Auding Linux Commands

Filed under: Linux on 2024-04-26 12:58:17
# Display messages in kernel ring buffer.dmesg# Display logs stored in the systemd journal.journalctl# Display logs for a specific unit (service).journalctl -u servicename

Top Linux Commands for Security

Filed under: Linux on 2024-04-26 12:57:31
# Change the current user's password.passwd# Switch to the root account with root's environment. (Login shell.)sudo -i# Execute your current shell as root. (Non-login shell.)sudo -s# List sudo privileges for the current user.sudo -l# Edit the sudoers configuration file.visudo# Display the current SE

Top Linux Commands for Disk Usage

Filed under: Linux on 2024-04-26 12:56:36
# Show free and used space on mounted filesystemsdf -h# Show free and used inodes on mounted filesystemsdf -i# Display disks partitions sizes and typesfdisk -l# Display disk usage for all files and directories in human readable formatdu -ah# Display total disk usage off the current directorydu -sh&n

Top Linux Commands for File Transfers

Filed under: Linux on 2024-04-26 12:56:06
# Secure copy file.txt to the /tmp folder on serverscp file.txt server:/tmp# Copy *.html files from server to the local /tmp folder.scp server:/var/www/*.html /tmp# Copy all files and directories recursively from server to the current system's /tmp folder.scp -r server:/var/www /tmp# Synchronize /ho

Top Linux Commands for Searching Operations

Filed under: Linux on 2024-04-26 12:54:27
# Search for pattern in filegrep pattern file# Search recursively for pattern in directorygrep -r pattern directory# Find files and directories by namelocate name# Find files in /home/john that start with "prefix".find /home/john -name 'prefix*'# Find files larger than 100MB in /homefind /home -size

Top Linux Commands for Installing Packages

Filed under: Linux on 2024-04-26 12:53:52
# Search for a package by keyword.yum search keyword# Install package.yum install package# Display description and summary information about package.yum info package# Install package from local file named package.rpmrpm -i package.rpm# Remove/uninstall package.yum remove package# Install software fr