Welcome to the Essential Linux Commands Reference! This guide is designed for beginners and experts alike, providing a quick reference to some of the most commonly used Linux commands. Whether you're navigating through directories, managing files, or monitoring system processes, this guide has you covered.
# Install epel-release on redhat 9 based Oss
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
# Install epel-release on redhat
dnf install epel-release
# Install pwgen on redhat based Oss
dnf install pwgen -y
yum install pwgen -y
# Install pwgen on Debian based Oss
apt install pwgen -y
pass=$(pwgen -y 32 | awk '{print $1}') ; base64 <<< $pass ; echo $pass
ls - List directory contents.cp <source> <destination> - Copy files from source to destination.mv <source> <destination> - Move/rename files or directories.rm <file> - Remove files (use -r for directories).cat <file> - Concatenate and display file content.pwd - Print the working directory.mkdir <directory> - Create a new directory.rmdir <directory> - Remove an empty directory.cd <directory> - Change the current directory.top - Display ongoing system processes.htop - An interactive process viewer (needs to be installed).df - Report file system disk space usage.free - Display available memory.ping <host> - Check the network connection to a host.ifconfig - Configure and display network interface parameters.netstat - Display network connections, routing tables, etc.ssh <user>@<host> - Connect to a remote host securely.chmod <permissions> <file> - Change the file mode/permissions.chown <owner>:<group> <file> - Change file owner and group.grep <pattern> <file> - Search for a pattern in a file.sed <expression> <file> - Stream editor for filtering and transforming text.awk <program> <file> - Pattern scanning and processing language.du - Estimate file space usage.du -sh * - Human-readable sizes, summarizing for each file/directory.find <directory> -name <filename> - Find files by name.locate <filename> - Find files by name, using a database.man <command> - Display the manual page for a command.info <command> - Display a command's info entry.whatis <command> - Display one-line command descriptions.gpg --full-generate-keygpg --check-sigs - Check the recipient key,Feel free to contribute to this guide by submitting pull requests or suggesting improvements. Happy Linux-ing!