diff options
| -rw-r--r-- | posts/2021-08-01-linux-cheatsheet.md | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/posts/2021-08-01-linux-cheatsheet.md b/posts/2021-08-01-linux-cheatsheet.md index 6e28016..cd9cced 100644 --- a/posts/2021-08-01-linux-cheatsheet.md +++ b/posts/2021-08-01-linux-cheatsheet.md | |||
| @@ -7,10 +7,43 @@ Created: 2021-08-01 | |||
| 7 | Tags: [] | 7 | Tags: [] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | ***For Debian and Ubuntu servers*** | 10 | **Table of contents** |
| 11 | 11 | ||
| 12 | 12 | 1. [Generate SSH key](#generate-ssh-key) | |
| 13 | 13 | 2. [Login to host via SSH](#login-to-host-via-ssh) | |
| 14 | 3. [Execute command on a server through SSH](#execute-command-on-a-server-through-ssh) | ||
| 15 | 4. [Displays currently logged in users in the system](#displays-currently-logged-in-users-in-the-system) | ||
| 16 | 5. [Displays Linux system information](#displays-linux-system-information) | ||
| 17 | 6. [Displays kernel release information](#displays-kernel-release-information) | ||
| 18 | 7. [Shows the system hostname](#shows-the-system-hostname) | ||
| 19 | 8. [Shows system reboot history](#shows-system-reboot-history) | ||
| 20 | 9. [Displays information about the user](#displays-information-about-the-user) | ||
| 21 | 10. [Displays IP addresses and all the network interfaces](#displays-ip-addresses-and-all-the-network-interfaces) | ||
| 22 | 11. [Downloads a file from an online source](#downloads-a-file-from-an-online-source) | ||
| 23 | 12. [Compress a file with gzip](#compress-a-file-with-gzip) | ||
| 24 | 13. [Interactive disk usage analyzer](#interactive-disk-usage-analyzer) | ||
| 25 | 14. [Install Node.js using the Node Version Manager](#install-nodejs-using-the-node-version-manager) | ||
| 26 | 15. [Too long; didn't read](#too-long-didnt-read) | ||
| 27 | 16. [Combine all Nginx access logs to one big log file](#combine-all-nginx-access-logs-to-one-big-log-file) | ||
| 28 | 17. [Set up Redis server](#set-up-redis-server) | ||
| 29 | 18. [Generate statistics of your webserver](#generate-statistics-of-your-webserver) | ||
| 30 | 19. [Search for a given pattern in files](#search-for-a-given-pattern-in-files) | ||
| 31 | 20. [Find proccess ID for a specific program](#find-proccess-id-for-a-specific-program) | ||
| 32 | 21. [Print name of current/working directory](#print-name-of-currentworking-directory) | ||
| 33 | 22. [Creates a blank new file](#creates-a-blank-new-file) | ||
| 34 | 23. [Displays first lines in a file](#displays-first-lines-in-a-file) | ||
| 35 | 24. [Displays last lines in a file](#displays-last-lines-in-a-file) | ||
| 36 | 25. [Count lines in a file](#count-lines-in-a-file) | ||
| 37 | 26. [Find all instances of the file](#find-all-instances-of-the-file) | ||
| 38 | 27. [Find file names that begin with ‘index’ in /home folder](#find-file-names-that-begin-with-index-in-home-folder) | ||
| 39 | 28. [Find files larger than 100MB in the home folder](#find-files-larger-than-100mb-in-the-home-folder) | ||
| 40 | 29. [Displays block devices related information](#displays-block-devices-related-information) | ||
| 41 | 30. [Displays free space on mounted systems](#displays-free-space-on-mounted-systems) | ||
| 42 | 31. [Displays free and used memory in the system](#displays-free-and-used-memory-in-the-system) | ||
| 43 | 32. [Displays all active listening ports](#displays-all-active-listening-ports) | ||
| 44 | 33. [Kill a process violently](#kill-a-process-violently) | ||
| 45 | 34. [List files opened by user](#list-files-opened-by-user) | ||
| 46 | 35. [Execute "df -h", showing periodic updates](#execute-df--h-showing-periodic-updates) | ||
| 14 | 47 | ||
| 15 | 48 | ||
| 16 | ##### Generate SSH key | 49 | ##### Generate SSH key |
| @@ -298,7 +331,7 @@ find /home/ -name "index" | |||
| 298 | ##### Find files larger than 100MB in the home folder | 331 | ##### Find files larger than 100MB in the home folder |
| 299 | 332 | ||
| 300 | ```bash | 333 | ```bash |
| 301 | find /home -size +10000M | 334 | find /home -size +100M |
| 302 | ``` | 335 | ``` |
| 303 | 336 | ||
| 304 | 337 | ||
