{"id":23585166,"url":"https://github.com/chaseofthejungle/bash-commands","last_synced_at":"2025-11-03T05:30:24.407Z","repository":{"id":258881820,"uuid":"862973485","full_name":"chaseofthejungle/bash-commands","owner":"chaseofthejungle","description":"Bash commands and keyboard shortcuts for bash, GNU nano, and Vim.","archived":false,"fork":false,"pushed_at":"2025-02-12T06:43:44.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T07:49:40.896Z","etag":null,"topics":["bash","bash-commands","bash-scripting","bash-scripts","linux"],"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/chaseofthejungle.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":"2024-09-25T13:57:14.000Z","updated_at":"2025-02-12T06:43:47.000Z","dependencies_parsed_at":"2025-02-13T08:15:24.604Z","dependency_job_id":null,"html_url":"https://github.com/chaseofthejungle/bash-commands","commit_stats":null,"previous_names":["chaseofthejungle/bash-commands"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaseofthejungle%2Fbash-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaseofthejungle%2Fbash-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaseofthejungle%2Fbash-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaseofthejungle%2Fbash-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaseofthejungle","download_url":"https://codeload.github.com/chaseofthejungle/bash-commands/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412489,"owners_count":19634016,"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","bash-commands","bash-scripting","bash-scripts","linux"],"created_at":"2024-12-27T03:14:10.901Z","updated_at":"2025-11-03T05:30:24.357Z","avatar_url":"https://github.com/chaseofthejungle.png","language":null,"readme":"# bash commands and shortcuts \n*Note: If in need of a lightweight Linux distro, consider [Xubuntu](https://xubuntu.org/tour/). An online Fedora 33 bash emulator can also be found at [bellard.org/jslinux](https://bellard.org/jslinux/), although it does not contain all of the commands in this repository. For some sample bash networking scripts, see [this repo](https://github.com/chaseofthejungle/bash-networking-scripts).*\n  \n#### Table of Contents\n\n1. [bash Commands](#bash-cmds)\n2. [bash keyboard Shortcuts](#bash-keys)\n3. [Nano Keyboard Shortcuts](#nano-keys)\n\u003chr /\u003e\n  \n## 1. \u003ca name=\"bash-cmds\"\u003e[bash](https://www.gnu.org/software/bash/) Commands\u003c/a\u003e\n| Command | Purpose | Category |\n| --- | --- | --- |\n| **apt-get** | Package managing utility, such as for adding, removing, and updating packages. | Packages |  \n| **awk** | [see 'gawk' command] Original interpreter of the AWK programming language. | Text |\n| **blkid** | Locates and prints block device attributes. |  Drives/Devices |\n| **cat** | Concatenates files. Prints using standard output stream. | Text |\n| **cd** | Changes directory. | Files/Directories |\n| **chgrp** | Changes group ownership association. | Permissions |\n| **chmod** | Changes file permissions for users, groups, and others. | Permissions |\n| **chown** | Changes file owner and group owner. | Permissions |\n| **compress** | Reduces file size using Lempel-Ziv algorithmic logic. | Compression |\n| **cp** | Copies files and directories as specified. | Files/Directories |\n| **cpio** | Copies files in and out of archives via copy-in and copy-out modes. | Compression |  \n| **cron** | Executes/runs commands as scheduled. | Processes | \n| **curl** | Utility to transfer data (URL) to/from a server. | Data Transfer |\n| **cut** | Removes specified sections from each text input line. | Files/Directories |  \n| **dd** | Copies and converts files, and can backup disks. | Files/Directories |  \n| **df** | Displays 'disk free'/space usage of filesystems. | Drives/Devices |\n| **diff** | Performs a line-by-line comparison of files. | Files/Directories |\n| **dnf** | 'Dandified YUM'. Package manager for Fedora, RHEL, and CentOS. | Packages |  \n| **du** | Displays disk space usage for directories and files. | Drives/Devices |\n| **echo** | Displays strings using standard output stream. | Text | \n| **exit** | Invokes normal termination of process/task. | Processes |  \n| **fdisk** | Utility for creating and modifying partition tables. | Drives/Devices |\n| **file** | Returns file data type. | Files/Directories |\n| **find** | Scans directory hierarchy for files. | Files/Directories |\n| **ftp** | Enables usage of File Transfer Protocol. | Data Transfer |\n| **gawk** | [see 'awk' command] The GNU implementation (for scanning and processing) of the AWK pattern programming language in GNU. | Text |\n| **getfacl** | Retrieves file names, owners, group owners, and Access Control List permissions. | Permissions |\n| **grep** | Searches input files for lines that match a specified pattern. | Text |\n| **gunzip** | Decompresses files generated by zip, gzip, compress, and pack. | Compression |\n| **gzip** | Reduces file size using the LZ77 lossless compression algorithm. | Compression |\n| **head** | Outputs first lines of file (10 by default). | Text |  \n| **history** | (The GNU history command) Recalls commands previously entered in session. | Processes |  \n| **hwinfo** | Displays information about system hardware. | Drives/Devices |\n| **kill** | Sends terminate signal to process/task. | Processes |\n| **less** | [see 'more' command] plus enables user to scroll backwards. | Text |\n| **locate** | Retrieves file (by file name). | Files/Directories |\n| **ln** | Creates links between files. | Files/Directories |\n| **ls** | Displays (lists) the contents of a specified directory. | Files/Directories |\n| **lsblk** | Displays information about block devices. | Drives/Devices |  \n| **make** | Automation tool for recompiling parts of large programs by using makefiles. | Files/Directories |  \n| **man** | Documentation for commands, functions, system calls, and other features. | Documentation |\n| **mkdir** | Creates directories. | Files/Directories |\n| **more** | Allows for paging through text output one screen at a time. | Text |\n| **mount** | Attaches file system of a drive to a target directory. | Drives/Devices |\n| **mv** | Moves/renames files (similar to a cut/paste of files). | Files/Directories |  \n| **nano** | Launches the GNU nano text editor. | Text |  \n| **parted** | Partitions and resizes disks. | Drives/Devices |\n| **patch** | Modifies file based on source (patch) file instructions produced by the diff utility. | Text |\n| **ping** | Sends an ICMP ECHO_REQUEST datagram to a specified destination. | Drives/Devices |\n| **ps** | Displays a report on currently running tasks/processes. | Processes |\n| **pwd** | Prints working directory to standard output stream. | Files/Directories |\n| **rm** | Deletes files or directories. | Files/Directories |\n| **rpm** | The Red Hat Packet Manager, commonly used in Red Hat distributions such as CentOS and Fedora. | Packages |\n| **rmdir** | Deleted empty directories. | Files/Directories |\n| **rsync** | A high-speed utility for remote file copying. | Data Transfer |\n| **scp** | Uses ssh data transfer and authentication for remote file copying. | Data Transfer |\n| **sed** | Filters and modifies input stream text. | Text |\n| **setfacl** | Sets Access Control List permissions for files and directories. | Permissions |  \n| **sftp** | Enables usage of a secure file transfer protocol using SSH transport encryption. | Data Transfer |\n| **sort** | Arranges lines of text for display via the standard output stream. | Text |\n| **ssh** | Launches the SSH remote communication protocol. | Data Transfer |\n| **sudo** | Allows user to execute commands as the superuser (or another user). | Permissions |\n| **tail** | Outputs last lines of file (10 by default). | Text |\n| **tac**| Concatenates files. Prints (in reverse) using standard output stream. | Text |  \n| **tar** | Creates compressed files as a single disk archive or tape, and extracts compressed files. | Compression |  \n| **tee** | Reads from input stream and writes to output stream/files. | Text |\n| **telnet** | Launches user interface for the TELNET remote communication protocol. |  Data Transfer |\n| **top** | Provides a realtime display of running tasks. | Processes |\n| **touch** | Creates blank files and updates file timestamps. | Files/Directories |\n| **umount** | Unattaches file system of a drive from a directory. | Drives/Devices |\n| **uncompress** | Decompresses files that were compressed by the compress utility. | Compression |  \n| **uniq** | Detects and omits repeated adjacent lines. | Text |\n| **unzip** | [see 'zip' command] Unpackages ZIP files. | Compression |\n| **vi** | Launches the vi text editor. | Text |\n| **wc** | Outputs byte, word, and newline counts for files. | Text |\n| **wget** | HTTPS, HTTPS, and FTP utility for non-interactive web downloads. | Data Transfer |\n| **whereis** | Locates manuals and sources/binaries for files. | Files/Directories |\n| **which** | Displays absolute path of shell commands. | Files/Directories |\n| **xz** | Compresses/decompresses .lzma and .xz files. | Compression |  \n| **yum** | 'Yellowdog Updater Modified'. A Red Hat based Package Manager. | Packages |\n| **zcat** | Displays contents of a compressed file to the command line. | Compression |\n| **zip** | Compresses/archives and packages files. PKZIP compatible. | Compression |\n  \n\u003chr /\u003e\n  \n## 2. \u003ca name=\"bash-keys\"\u003e[bash](https://www.gnu.org/software/bash/) Keyboard Shortcuts\u003c/a\u003e\n  \n| Shortcut | Purpose |  \n| --- | --- |  \n| `!!` | Runs the Previous Command |  \n| `CTRL + C` | Terminates a Command Process |  \n| `CTRL + L` | Clears the Terminal Screen |  \n| `CTRL + Z` | Stops (Suspends) a Command Process |\n  \n\u003chr /\u003e\n  \n## 3. \u003ca name=\"nano-keys\"\u003e[Nano](https://www.nano-editor.org/dist/latest/faq.html) Keyboard Shortcuts\u003c/a\u003e\n\n| Shortcut | Purpose | Category |\n| --- | --- | --- |  \n| `Ctrl + O` | Writes File with Specified Name | File Operations |\n| `Ctrl + R` | Inserts Contents of a File | File Operations |\n| `Ctrl + S` | Saves File | File Operations |\n| `Ctrl + X` | Exits Nano Editor | File Operations |\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n**TODO #1:** Add a text file for each command, each including use cases and options/arguments.  \n**TODO #2:** Add keyboard shortcuts lists for bash terminal, Nano, and vim.  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaseofthejungle%2Fbash-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaseofthejungle%2Fbash-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaseofthejungle%2Fbash-commands/lists"}