TuxDex¶

Linux commands. Real-world examples. No guesswork.
A practical reference for Linux administration, server operations, and DevOps with command syntax, working examples, and tips for real-world scenarios.
Debian Ubuntu RHEL Arch
English ยท German
Built by Nox
Linux administration¶
-
Who am I, where am I, and what is going on on this machine?
-
Moving around the file system and finding files.
-
Creating, copying, moving and deleting files and directories.
-
Reading files and logs, also compressed and binary files.
-
Searching, filtering, sorting and changing text in logs and configuration files.
-
Owners, groups and access rights, and how to fix them.
-
Creating and managing users and groups,
sudoandsu. -
Finding, watching and stopping running programs.
-
Managing services, reading their logs and restarting the server cleanly.
-
Installing, updating and removing software with
apt,dnfandpacman. -
Addresses, connections, DNS, downloads, network configuration and the firewall.
-
Logging in securely, keys, tunnels and copying files between servers.
-
Partitions, file systems, mounting, disk space and LVM.
-
Packing and compressing with
tar,gzip,zstdandzip. -
Kernel messages, log rotation, failed logins, audit and log analysis.
-
Running jobs regularly with cron,
atand systemd timers. -
Finding out why a server is slow, and tuning kernel parameters and limits.
-
Database dumps, encrypted backups with restic and borg, and testing the restore.
Server services¶
-
nginx and Apache: configuration, sites, reverse proxy and load tests.
-
Sharing directories with NFS and Samba.
-
PostgreSQL and MariaDB: users, databases, rights and health checks.
-
Redis, Valkey and RabbitMQ: memory, keys, users, queues and health checks.
-
Search with Elasticsearch and OpenSearch
Cluster health, indices and shards, passwords, keystore and plugins.
Automation & DevOps¶
-
Variables, conditions, loops and functions for your own admin scripts.
-
Versioning configurations and scripts, branches and remotes.
-
Virtual machines with KVM and libvirt: install, clone, snapshots and disk images.
-
Running services in containers, images, volumes and Compose.
-
Running containers across many servers with
kubectland Helm. -
Configuring many servers at once with playbooks.
-
Testing and deploying automatically with pipelines.
-
Prometheus, node exporter and Alertmanager: metrics, queries and alerts.
Security¶
-
Open ports, hardening, rootkits, file integrity and vulnerable images.
-
TLS certificates,
openssl,gpgand Let's Encrypt. -
Fixing "Permission denied" properly instead of switching the protection off.
-
Encrypted tunnels between servers and admin machines, SSH only through the VPN.
All commands¶
a2enmoda2ensiteaa-complainaa-statusabactactionlintaddgroupadduserageaideamtoolanacronansibleansible-configansible-docansible-galaxyansible-inventoryansible-lintansible-playbookansible-pullansible-vaultapachectlaptapt-cacheapt-fileapt-markatatqatrmaudit2allowaureportausearchawkbatchbgblkidborgbzip2casecatcdcertbotchagechattrchgrpchkrootkitchmodchownclamscancolumncpcreatedbcreateusercrontabcurlcutdatedebsumsdelgroupdeluserdfdiffdigdmesgdnfdocker builddocker composedocker execdocker imagesdocker inspectdocker logsdocker networkdocker psdocker pulldocker pushdocker rmdocker rmidocker rundocker startdocker statsdocker stopdocker systemdocker volumedpkgduechoelasticsearch-keystoreelasticsearch-pluginelasticsearch-reset-passwordexitexportexportfsfail2ban-clientfaillockfdiskfgfilefindfindmntfirewall-cmdflockforfreefsckfunctiongetenforcegetentgetfaclgetoptsgh rungh secretgh workflowgit addgit branchgit clonegit commitgit configgit diffgit fetchgit initgit loggit mergegit pullgit pushgit rebasegit remotegit restoregit stashgit statusgit switchgit taggitlab-runnerglab cigoaccessgpasswdgpggrepgroupaddgroupsgzipheadhelmhexdumphosthostnamehostnamectlhtophtpasswdidififupiostatiotopipjobsjournalctljqk3sk9skillkillallkubectl applykubectl configkubectl createkubectl deletekubectl describekubectl drainkubectl eventskubectl execkubectl getkubectl logskubectl port-forwardkubectl rolloutkubectl scalekubectl toplastlesslnlnavlocalectllocateloggerloginctllogrotatelslsattrlsblklsmodlsoflvcreatelvextendlvslynismariadbmariadb-adminmariadb-secure-installationmdadmmkdirmkfsmkswapmodprobemountmtrmvmysqldumpnameincncduneedrestartnetplannftnginxniceniktonlnmapnmclinode_exporternohupopenssl genpkeyopenssl reqopenssl s_clientopenssl x509pacmanpartedpasswdpg_dumppg_isreadypg_lsclusterspgreppidofpingpkillpodmanpopdpre-commitprintfprometheuspromtoolpspsqlpstreepushdpvspwdqemu-imgrabbitmq-diagnosticsrabbitmq-pluginsrabbitmqctlreadrealpathrebootredis-benchmarkredis-clireniceresize2fsresolvectlresticrestoreconrkhunterrmrmdirrpmrsyncrun-partssarscpsedsemanagesestatussetsetenforcesetfaclsetseboolsftpsha256sumshellcheckshowmountshredshutdownsmartctlsmbclientsmbpasswdsortsourcesssshssh-addssh-agentssh-copy-idssh-keygenssh-keyscansshdstatstringssusudoswaponsysctlsystemctlsystemd-analyzesystemd-catsystemd-runsystemd-tmpfilestactailtartcpdumpteetesttestparmtestssl.shtimedatectltimeouttoptouchtrtraceroutetraptreetrivytruncateufwulimitumaskumountunameunattended-upgradeuniqunzipuptimeuseradduserdelusermodvgsvirshvirt-clonevirt-installvisudovmstatwwatchwcwgwg-quickwgetwhereiswhichwhilewhowhoamixargsxfs_growfsxzyamllintzcatzipzlesszstd