{"id":20640579,"url":"https://github.com/joakimteixeira/linux-cheat-sheet","last_synced_at":"2025-08-25T20:11:47.001Z","repository":{"id":122992051,"uuid":"265888105","full_name":"JoakimTeixeira/linux-cheat-sheet","owner":"JoakimTeixeira","description":"Cheat-sheet with my most frequent Linux commands","archived":false,"fork":false,"pushed_at":"2020-05-22T15:26:20.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T08:37:19.750Z","etag":null,"topics":["linux","linux-commands","ubuntu"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoakimTeixeira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-21T15:45:00.000Z","updated_at":"2023-02-24T18:44:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ce19438-e9b4-4bbb-bd43-1f6cc9ec6fe1","html_url":"https://github.com/JoakimTeixeira/linux-cheat-sheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimTeixeira%2Flinux-cheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimTeixeira%2Flinux-cheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimTeixeira%2Flinux-cheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimTeixeira%2Flinux-cheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoakimTeixeira","download_url":"https://codeload.github.com/JoakimTeixeira/linux-cheat-sheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242679514,"owners_count":20168163,"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":["linux","linux-commands","ubuntu"],"created_at":"2024-11-16T15:29:58.820Z","updated_at":"2025-03-09T11:08:30.904Z","avatar_url":"https://github.com/JoakimTeixeira.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  Cheat Sheet - \u003ca href=\"https://en.wikipedia.org/wiki/Linux\" target=\"_blank\"\u003e #Linux \u003c/a\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  My most used Linux commands\n\u003cp/\u003e\n\n## Indice\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Subtitle](#subtitle)\n- [Subtitle Example](#subtitle-example)\n- [File Editing](#file-editing)\n- [Wildcard Example](#wildcard-example)\n- [File info](#file-info)\n- [File / Folder Creation](#file--folder-creation)\n- [Command Info](#command-info)\n- [SSH Key for Remote Access](#ssh-key-for-remote-access)\n- [Network Troubleshooting](#network-troubleshooting)\n- [Process Management](#process-management)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Subtitle\n\nInput             | Description\n------------------|------------\n**[ ]**           | Brackets only represent a user input (what you have to type)\n**[file]**        | Type a file name + extension (\".txt\", \".css\", \".js\", etc)\n**[folder]**      | Type a folder name\n**[directory]**   | Type a directory path\n**[word]**        | Type a Word\n**[host]**        | Type a remote computer name + IP address (example: peterComputer@178.68.xx.x)\n**[PID]**         | Type a process ID. It's a number listed in \"top\" or \"ps\" command and identifies the process\n**[site]**        | Type a site name or IP address\n\n\n## Subtitle Example \n\n* Command description: ```touch [file]```\n* Desired input #1: ```touch myFile.html```\n* Desired input #2: ```touch hello.txt```\n\nBelow, the commands are organized in groups:\n\n## File Editing\n\nCommand                                 | Description \n----------------------------------------| -------------\nnano **[file]**                         | Open file to edit\nmv **[file]** **[file / directory]**    | Rename/move file\ncp [file] **[directory]**               | Copy to directory\nrm -rf **[file]**                       | Remove file (r = recursive, f = force)\nrm ***[file]**                          | Wildcard: remove all files with same letter combination or extension \n\n## Wildcard Example\n\nrm *[file]  | Description\n------------|-------------\nrm *        | Remove all files\nrm *.js     | Remove all javascript files\nrm a*.txt   | Remove all text files beginning with the letter \"a\"\n\n\n## File info\n\n\nCommand                                 | Description \n----------------------------------------| -------------\nlist -l                                 | List files with detailed info (l = long)\nlist -a                                 | List visible \u0026 insisible files (a = all)\ncat **[file]**                          | Concatenate: print file content\nhead **[file]**                         | Print file's first 10 lines \ntail **[file]**                         | Print file's last 10 lines\nless **[file]**                         | Print file with navigation\ngrep **[word]** **[file]**              | Search word in file and print corresponding line\nfind -name **[file]**                   | Find file directory\n\n## File / Folder Creation\n\nCommand                                 | Description \n----------------------------------------| -------------\ntouch **[file]**                        | Create file\nmkdir **[folder]**                      | Create folder\necho **[word]** \u003e **[file]**            | Write word inside file\n\n## Command Info\n\nCommand                                 | Description \n----------------------------------------| -------------\nman **[command]**                       | Get documentation about command\nhistory **[command]**                   | Get the list of all typed commands\nCTRL + R **[command]**                  | Reverse i-search: find command from history, based on typed input\ncd ~/.bash_history                      | Go to invisible file in the HOME directory, which contains command history log\n\n## SSH Key for Remote Access \n\nCommand                                 | Description \n----------------------------------------| -------------\nssh-keygen                              | Create SSH key pair\nls .ssh                                 | Confirm if SSH key was created\nssh-copy-id **[host]**                  | Copy SSH key to remote computer\nssh **[host]**                          | Login remote computer with SSH\n\n## Network Troubleshooting\n\nCommand                                 | Description \n----------------------------------------| -------------\nifconfig                                | Get network info\nhostname -I                             | Get IPV4 \u0026 IPV6 info\nroute                                   | Check if \"default\" line has IP, and if so, you can contact servers outside the local network\nping **[site]**                         | Check \"packet loss\" summary to see if you have a good internet connection\nwhois **[site]**                        | Get all info about domain names registered on the Internet\nwhois **[site]** \\| grep **[word]**     | Search for word inside \"whois\" command (\\| = group commands together)\nwhois **[site]** \\| head                | Get first 10 lines of \"whois\" command\n\n## Process Management \n\nCommand                                 | Description \n----------------------------------------| -------------\ntop                                     | List processes executing in the computer\nps                                      | Similar to \"ls\" command, but for processes\nps aux                                  | More detailed info to \"ps\" command\nkill **[PID]**                          | Kill process\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakimteixeira%2Flinux-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakimteixeira%2Flinux-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakimteixeira%2Flinux-cheat-sheet/lists"}