{"id":23279262,"url":"https://github.com/maximjsx/Command-Utils","last_synced_at":"2025-10-27T17:30:55.512Z","repository":{"id":196610977,"uuid":"696750083","full_name":"max1mde/Command-Utils","owner":"max1mde","description":"Some useful linux commands 💻 (Tested on Debian 12)","archived":false,"fork":false,"pushed_at":"2025-02-09T20:11:40.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T21:22:27.504Z","etag":null,"topics":["commands","debian","linux","linux-server"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max1mde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-26T11:15:03.000Z","updated_at":"2025-02-09T20:11:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa0b03be-313b-40b3-b6a7-78cb4587eeba","html_url":"https://github.com/max1mde/Command-Utils","commit_stats":null,"previous_names":["max1mde/command-utils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1mde%2FCommand-Utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1mde%2FCommand-Utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1mde%2FCommand-Utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1mde%2FCommand-Utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max1mde","download_url":"https://codeload.github.com/max1mde/Command-Utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238527257,"owners_count":19487188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commands","debian","linux","linux-server"],"created_at":"2024-12-19T22:40:57.251Z","updated_at":"2025-10-27T17:30:50.212Z","avatar_url":"https://github.com/max1mde.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eCommand Utils\u003c/h1\u003e\n  \u003cp\u003eSome useful commands if you are \u003cb\u003enot\u003c/b\u003e that familiar with linux and just want to setup a new linux server\u003c/p\u003e\n\u003c/div\u003e\n\n\u003e [!NOTE]  \n\u003e All commands are only tested on a Debian 12 machine  \n\u003e so they might not work if you are using a different operating system\n\n\n# Table of contents\n\n- [Basics](#Basics)\n- [Nginx](#Nginx)\n- [Certbot (For-HTTPS)](#Certbot)\n- [Compress folders](#Compress-folders)\n- [Upload a file to another server](#Upload-file)\n\n# Basics\n\n### Show running prozesses and RAM, CPU ... usage\n\u003e Is equivalent to the windows task manager\n```\nhtop\n```\n\n### Navigate to a directory\n```\ncd \u003cpath\u003e\n```\n\u003e You can use `cd ..` to go to the parent diretory / go back\n\n### Create a directory\n```\nmkdir \u003cname\u003e\n```\n\n### Delete a file\n\u003e You can use rm -r \u003cdirectory\u003e to delete a directory recursively\n```\nrm \u003cfile-name\u003e\n```\n\n### View a file\n```\ncat \u003cfile-name\u003e\n```\n\n### Create a file\n```\ntouch \u003cfile-name\u003e\n```\n\n### Copy a file/directory\n```\ncp -r /path/ /new/path/\n```\n\n# [Nginx](https://de.wikipedia.org/wiki/Nginx)\n\n### Install\n```\nsudo apt update\nsudo apt install nginx\n```\n\n### Start\n```\nsudo systemctl start nginx\nsudo systemctl enable nginx\n```\n\n### Status\n```\nsudo systemctl status nginx\n```\n\n### Restart\n```\nsudo systemctl restart nginx\n```\n\n# Certbot\n\u003e For a https connection\n### Install\n```\nsudo apt update\nsudo apt install certbot python3-certbot-nginx\n```\n\n### Add a domain and get a certificate for it\n\u003e **Important**\n\u003e The domain must point to your root servers IP\n```\nsudo certbot --nginx -d yourdomain.com\n```\n\n# Compress folders\n\u003e Compress files/folders to a tar.gz file\n\nOne folder\n```\ntar -czvf archive.tar.gz /path/to/folder\n```\nMultiple folders\n```\ntar -czvf archive.tar.gz /path/to/folder1 /path/to/folder2 /path/to/folder3\n```\n\n### Exctract files/folders from tar.gz file\n```\ntar -xzf archive.tar.gz\n```\n\n# Upload file\n\u003e In this example we are using the [generated tar.gz](#Compress-folders)\n\n\u003e [!NOTE]   \n\u003e You need the password for the `\u003cDestinationServerIP\u003e` to upload the file\n```\nscp -r /path/archive.tar.gz root@DestinationServerIP:/path\n```\n\n\n# Install JDK 21\n```\nwget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz \ntar -xvf jdk-21_linux-x64_bin.tar.gz \nmv jdk-21.0.6/ /opt/\n```\n\n```\nsudo nano /etc/profile.d/jdk.sh\n```\n\nAdd lines:\n```\nexport JAVA_HOME=/opt/jdk-21.0.6\nexport PATH=$JAVA_HOME/bin:$PATH\n```\n\nClose \u0026 save file\n\n```\nsource /etc/profile.d/jdk.sh\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximjsx%2FCommand-Utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximjsx%2FCommand-Utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximjsx%2FCommand-Utils/lists"}