{"id":22804421,"url":"https://github.com/divinemonk/bash_keyboard_shortcuts_cheatsheet","last_synced_at":"2026-04-24T16:39:10.167Z","repository":{"id":130581571,"uuid":"464047146","full_name":"Divinemonk/bash_keyboard_shortcuts_cheatsheet","owner":"Divinemonk","description":"Bash Keyboard Shortcuts: cheatsheet","archived":false,"fork":false,"pushed_at":"2022-02-27T05:32:12.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"m41n","last_synced_at":"2025-02-05T23:32:45.960Z","etag":null,"topics":["bash","command-line","keyboard","keyboard-shortcuts","linux","linux-shell","linux-terminal","shortcuts","unix","unix-shell","unix-terminal"],"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/Divinemonk.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":"2022-02-27T05:32:00.000Z","updated_at":"2023-04-16T17:25:02.000Z","dependencies_parsed_at":"2023-05-05T17:59:21.523Z","dependency_job_id":null,"html_url":"https://github.com/Divinemonk/bash_keyboard_shortcuts_cheatsheet","commit_stats":null,"previous_names":["divinemonk/bash_keyboard_shortcuts_cheatsheet","divinemonk/bash_keyboard_shortcuts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divinemonk%2Fbash_keyboard_shortcuts_cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divinemonk%2Fbash_keyboard_shortcuts_cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divinemonk%2Fbash_keyboard_shortcuts_cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divinemonk%2Fbash_keyboard_shortcuts_cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Divinemonk","download_url":"https://codeload.github.com/Divinemonk/bash_keyboard_shortcuts_cheatsheet/tar.gz/refs/heads/m41n","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246376350,"owners_count":20767266,"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":["bash","command-line","keyboard","keyboard-shortcuts","linux","linux-shell","linux-terminal","shortcuts","unix","unix-shell","unix-terminal"],"created_at":"2024-12-12T10:08:07.921Z","updated_at":"2026-04-24T16:39:10.137Z","avatar_url":"https://github.com/Divinemonk.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Bash Shortcuts\n==============\n\n![visual cheetsheet](https://raw.githubusercontent.com/fliptheweb/bash-shortcuts-cheat-sheet/master/moving_cli.png)\n\n## Moving\n\n| command  | description                    |\n|----------|--------------------------------|\n| ctrl + a | Goto BEGINNING of command line |\n| ctrl + e | Goto END of command line       |\n| ctrl + b | move back one character        |\n| ctrl + f | move forward one character     |\n| alt + f  | move cursor FORWARD one word   |\n| alt + b  | move cursor BACK one word      |\n| ctrl + xx | Toggle between the start of line and current cursor position |\n| ctrl + ] + x\t | Where x is any character, moves the cursor forward to the next occurance of x |\n| alt + ctrl + ] + x  | Where x is any character, moves the cursor backwards to the previous occurance of x |\n\n## Edit / Other\n\n| command  | description                    |\n|----------|--------------------------------|\n| ctrl + d          | Delete the character under the cursor |\n| ctrl + h          | Delete the previous character before cursor |\n| ctrl + u          | Clear all / cut BEFORE cursor |\n| ctrl + k          | Clear all / cut AFTER cursor |\n| ctrl + w          | delete the word BEFORE the cursor |\n| alt + d           | delete the word FROM the cursor |\n| ctrl + y          | paste (if you used a previous command to delete) |\n| ctrl + i          | command completion like Tab\n| ctrl + l          | Clear the screen (same as clear command) |\n| ctrl + c          | kill whatever is running |\n| ctrl + d          | Exit shell (same as exit command when cursor line is empty) |\n| ctrl + z          | Place current process in background |\n| ctrl + _          | Undo |\n| ctrl + x ctrl + u\t| Undo the last changes. ctrl+ _ does the same |\n| ctrl + t          | Swap the last two characters before the cursor |\n| esc + t           | Swap last two words before the cursor |\n| alt + t           | swap current word with previous |\n| esc + .           | |\n| esc + _           | |\n| alt + [Backspace] | delete PREVIOUS word |\n| alt + \u003c           | Move to the first line in the history |\n| alt + \u003e           | Move to the end of the input history, i.e., the line currently being entered |\n| alt + ?           | display the file/folder names in the current path as help |\n| alt + *           | print all the file/folder names in the current path as parameter |\n| alt + .           | print the LAST ARGUMENT (ie \"vim file1.txt file2.txt\" will yield \"file2.txt\") |\n| alt + c           | capitalize the first character to end of word starting at cursor (whole word if cursor is at the beginning of word)|\n| alt + u           | make uppercase from cursor to end of word |\n| alt + l           | make lowercase from cursor to end of word |\n| alt + n           | |\n| alt + p           | Non-incremental reverse search of history. |\n| alt + r           |Undo all changes to the line|\n| alt + ctl + e     |Expand command line. |\n| ~[TAB][TAB]       | List all users |\n| $[TAB][TAB]       | List all system variables |\n| @[TAB][TAB]       | List all entries in your /etc/hosts file |\n| [TAB]             | Auto complete |\n| cd -              | change to PREVIOUS working directory |\n\n## History\n\n| command  | description                    |\n|----------|--------------------------------|\n| ctrl + r          | Search backward starting at the current line and moving 'up' through the history as necessary |\n| crtl + s          | Search forward starting at the current line and moving 'down' through the history as necessary |\n| ctrl + p          | Fetch the previous command from the history list, moving back in the list (same as up arrow) |\n| ctrl + n          | Fetch the next command from the history list, moving forward in the list (same as down arrow) |\n| ctrl + o          | Execute the command found via Ctrl+r or Ctrl+s |\n| ctrl + g          | Escape from history searching mode |\n| !!                | Run PREVIOUS command (ie `sudo !!`) |\n| !vi               | Run PREVIOUS command that BEGINS with vi |\n| !vi:p             | Print previously run command that BEGINS with vi |\n| !n\t\t            | Execute nth command in history |\n| !$\t\t            | Last argument of last command |\n| !^\t\t            | First argument of last command |\n| ^abc^xyz\t        | Replace first occurance of abc with xyz in last command and execute it |\n\n# Kill a job\n\nn = job number, to list jobs, run `jobs`\n\n```bash\nkill %n\n```\n\nExample:\n\n```bash\nkill %1\n```\n\n## References\n\n1. http://cnswww.cns.cwru.edu/php/chet/readline/readline.html\n2. https://github.com/fliptheweb/bash-shortcuts-cheat-sheet/blob/master/README.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivinemonk%2Fbash_keyboard_shortcuts_cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivinemonk%2Fbash_keyboard_shortcuts_cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivinemonk%2Fbash_keyboard_shortcuts_cheatsheet/lists"}