Home

Awesome

<p align="left"> <img src="https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=blue" height=21 width=80> <img src="https://badges.frapsoft.com/bash/v1/bash.png?v=103)](https://github.com/ellerbrock/open-source-badges"> <img src="https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white" height=22 width=110>

Ultimate List of Linux bash commands

Bash is the Unix command-line interface (CLI). Also called the terminal, the command line, or the shell. It's a command language that allows us to work with files on our computers in a way that's far more efficient and powerful than using a GUI (graphical user interface).

<details><summary><b>A to Z command list <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Books.webp" alt="Books" width="25" height="25" /></b></summary> <p>

Note 💡<br> Use Ctrl+f to search keywords in desktop browsers, for mobile go to menu > find in page.

<div align="center"> <h2>Table</h2>

ABCDEFGHIJKLMNOPQRSTUVWXYZ

</div> <h2> A</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">accept</td> <td class="tg-yw4l">Accept or Reject jobs to a destination, such as a printer.</td> </tr> <tr> <td class="tg-yw4l">access</td> <td class="tg-yw4l">Check a user’s RWX(read, write and execute) permission for a file.</td> </tr> <tr> <td class="tg-yw4l">accton</td> <td class="tg-yw4l"> Used to turn on or turn off the process for accounting or change info process accounting file.</td> </tr> <tr> <td class="tg-yw4l">aclocal</td> <td class="tg-yw4l">Used to automatically generate aclocal.m4 files from configure.in file.</td> </tr> <tr> <td class="tg-yw4l">aconnect</td> <td class="tg-yw4l">ALSA(Advanced Linux Sound Architecture) sequencer connection manager.</td> </tr> <tr> <td class="tg-yw4l">acpi</td> <td class="tg-yw4l">Show information about the Advanced Configuration and Power Interface.</td> </tr> <tr> <td class="tg-yw4l">acpi_available</td> <td class="tg-yw4l">Check if ACPI(Advanced Configuration and Power Interface) functionality exists on the system.</td> </tr> <tr> <td class="tg-yw4l">acpid</td> <td class="tg-yw4l">Informs user-space programs about ACPI events.</td> </tr> <tr> <td class="tg-yw4l">addr2line</td> <td class="tg-yw4l">Used to convert addresses into file names and line numbers.</td> </tr> <tr> <td class="tg-yw4l">addresses</td> <td class="tg-yw4l">Formats for internet mail addresses.</td> </tr> <tr> <td class="tg-yw4l">agetty</td> <td class="tg-yw4l">An alternative Linux Getty that manages physical or virtual terminals to allow multi-user access</td> </tr> <tr> <td class="tg-yw4l">alias</td> <td class="tg-yw4l">Create an alias, a shortcut that references a command.</td> </tr> <tr> <td class="tg-yw4l">alsactl</td> <td class="tg-yw4l">Access advanced controls for ALSA soundcard driver.</td> </tr> <tr> <td class="tg-yw4l">amidi</td> <td class="tg-yw4l">Perform read/write operation for ALSA RawMIDI ports.</td> </tr> <tr> <td class="tg-yw4l">amixer</td> <td class="tg-yw4l">Access CLI-based mixer for ALSA soundcard driver.</td> </tr> <tr> <td class="tg-yw4l">anacron</td> <td class="tg-yw4l">Used to run commands periodically.</td> </tr> <tr> <td class="tg-yw4l">aplay</td> <td class="tg-yw4l">Sound recorder and player for CLI.</td> </tr> <tr> <td class="tg-yw4l">aplaymidi</td> <td class="tg-yw4l">CLI utility used to play MIDI files.</td> </tr> <tr> <td class="tg-yw4l">apm</td> <td class="tg-yw4l">Show Advanced Power Management (APM) hardware info on older systems.</td> </tr> <tr> <td class="tg-yw4l">apmd</td> <td class="tg-yw4l">Used to handle events reported by APM BIOS drivers.</td> </tr> <tr> <td class="tg-yw4l">apropos</td> <td class="tg-yw4l">Shows the list of all man pages containing a specific keyword.</td> </tr> <tr> <td class="tg-yw4l">apt</td> <td class="tg-yw4l">Advanced Package Tool, a package management system for Debian and derivatives.</td> </tr> <tr> <td class="tg-yw4l">apt-get</td> <td class="tg-yw4l">Command-line utility to install/remove/update packages based on APT system.</td> </tr> <tr> <td class="tg-yw4l">aptitude</td> <td class="tg-yw4l">Another utility to add/remove/upgrade packages based on the APT system.</td> </tr> <tr> <td class="tg-yw4l">ar</td> <td class="tg-yw4l">A utility to create/modify/extract from archives.</td> </tr> <tr> <td class="tg-yw4l">arch</td> <td class="tg-yw4l">Display print machine hardware name.</td> </tr> <tr> <td class="tg-yw4l">arecord</td> <td class="tg-yw4l">Just like aplay, it’s a sound recorder and player for ALSA soundcard driver.</td> </tr> <tr> <td class="tg-yw4l">arecordmidi</td> <td class="tg-yw4l">Record standard MIDI files.</td> </tr> <tr> <td class="tg-yw4l">arp</td> <td class="tg-yw4l">Used to make changes to the system’s ARP cache.</td> </tr> <tr> <td class="tg-yw4l">as</td> <td class="tg-yw4l">A portable GNU assembler.</td> </tr> <tr> <td class="tg-yw4l">aspell</td> <td class="tg-yw4l">An interactive spell checker utility.</td> </tr> <tr> <td class="tg-yw4l">at</td> <td class="tg-yw4l">Used to schedule command execution at specified date &amp; time, reading commands from an input file.</td> </tr> <tr> <td class="tg-yw4l">atd</td> <td class="tg-yw4l">Used to execute jobs queued by the at command.</td> </tr> <tr> <td class="tg-yw4l">atq</td> <td class="tg-yw4l">List a user’s pending jobs for the at command.</td> </tr> <tr> <td class="tg-yw4l">atrm</td> <td class="tg-yw4l">Delete jobs queued by the at command.</td> </tr> <tr> <td class="tg-yw4l">audiosend</td> <td class="tg-yw4l">Used to send an audio recording as an email.</td> </tr> <tr> <td class="tg-yw4l">aumix</td> <td class="tg-yw4l">An audio mixer utility.</td> </tr> <tr> <td class="tg-yw4l">autoconf</td> <td class="tg-yw4l">Generate configuration scripts from a TEMPLATE-FILE and send the output to standard output.</td> </tr> <tr> <td class="tg-yw4l">autoheader</td> <td class="tg-yw4l">Create a template header for configure.</td> </tr> <tr> <td class="tg-yw4l">automake</td> <td class="tg-yw4l">Creates GNU standards-compliant Makefiles from template files.</td> </tr> <tr> <td class="tg-yw4l">autoreconf</td> <td class="tg-yw4l">Update generated configuration files.</td> </tr> <tr> <td class="tg-yw4l">autoscan</td> <td class="tg-yw4l">Generate a preliminary configure.in file.</td> </tr> <tr> <td class="tg-yw4l">autoupdate</td> <td class="tg-yw4l">Update a configure.in file to newer autoconf.</td> </tr> <tr> <td class="tg-yw4l">awk</td> <td class="tg-yw4l">A scripting language used for manipulating data and generating reports. Also used to find and replace text in a file(s).</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> B</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">badblocks</td> <td class="tg-yw4l">Search a disk partition for bad sectors.</td> </tr> <tr> <td class="tg-yw4l">banner</td> <td class="tg-yw4l">Used to print characters as a poster.</td> </tr> <tr> <td class="tg-yw4l">basename</td> <td class="tg-yw4l">Used to display filenames with directory or suffix.</td> </tr> <tr> <td class="tg-yw4l">bash</td> <td class="tg-yw4l">GNU Bourne-Again Shell.</td> </tr> <tr> <td class="tg-yw4l">batch</td> <td class="tg-yw4l">Used to run commands entered on a standard input.</td> </tr> <tr> <td class="tg-yw4l">bc</td> <td class="tg-yw4l">Access the GNU bc calculator utility.</td> </tr> <tr> <td class="tg-yw4l">bg</td> <td class="tg-yw4l">Send processes to the background.</td> </tr> <tr> <td class="tg-yw4l">biff</td> <td class="tg-yw4l">Notify about incoming mail and sender’s name on a system running comsat server.</td> </tr> <tr> <td class="tg-yw4l">bind</td> <td class="tg-yw4l">Used to attach a name to a socket.</td> </tr> <tr> <td class="tg-yw4l">bison</td> <td class="tg-yw4l">A GNU parser generator, compatible with yacc.</td> </tr> <tr> <td class="tg-yw4l">break</td> <td class="tg-yw4l">Used to exit from a loop (eg: for, while, select).</td> </tr> <tr> <td class="tg-yw4l">builtin</td> <td class="tg-yw4l">Used to run shell builtin commands, make custom functions for commands extending their functionality.</td> </tr> <tr> <td class="tg-yw4l">bzcmp</td> <td class="tg-yw4l">Used to call the cmp program forbzip2 compressed files.</td> </tr> <tr> <td class="tg-yw4l">bzdiff</td> <td class="tg-yw4l">Used to call the diff program for bzip2 compressed files.</td> </tr> <tr> <td class="tg-yw4l">bzgrep</td> <td class="tg-yw4l">Used to call grep for bzip2 compressed files.</td> </tr> <tr> <td class="tg-yw4l">bzip2</td> <td class="tg-yw4l">A block-sorting file compressor used to shrink given files.</td> </tr> <tr> <td class="tg-yw4l">bzless</td> <td class="tg-yw4l">Used to apply ‘less’ (show info one page at a time) to bzip2 compressed files.</td> </tr> <tr> <td class="tg-yw4l">bzmore</td> <td class="tg-yw4l">Used to apply ‘more’ (an inferior version of less) to bzip2 compressed files.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> C</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">cal</td> <td class="tg-yw4l">Show calendar.</td> </tr> <tr> <td class="tg-yw4l">cardctl</td> <td class="tg-yw4l">Used to control PCMCIA sockets and select configuration schemes.</td> </tr> <tr> <td class="tg-yw4l">cardmgr</td> <td class="tg-yw4l">Keeps an eye on the added/removes sockets for PCMCIA devices.</td> </tr> <tr> <td class="tg-yw4l">case</td> <td class="tg-yw4l">Execute a command conditionally by matching a pattern.</td> </tr> <tr> <td class="tg-yw4l">cat</td> <td class="tg-yw4l">Used to concatenate files and print them on the screen.</td> </tr> <tr> <td class="tg-yw4l">cc</td> <td class="tg-yw4l">GNU C and C++ compiler.</td> </tr> <tr> <td class="tg-yw4l">ccrypt</td> <td class="tg-yw4l">Used for encryption and decryption of data.</td> </tr> <tr> <td class="tg-yw4l">cd</td> <td class="tg-yw4l">Used to change directory.</td> </tr> <tr> <td class="tg-yw4l">cdda2wav</td> <td class="tg-yw4l">Used to rip a CD-ROM and make WAV file.</td> </tr> <tr> <td class="tg-yw4l">cdparanoia</td> <td class="tg-yw4l">Record audio from CD more reliably using data-verification algorithms.</td> </tr> <tr> <td class="tg-yw4l">cdrdao</td> <td class="tg-yw4l">Used to write all the content specified to a file to a CD all at once.</td> </tr> <tr> <td class="tg-yw4l">cdrecord</td> <td class="tg-yw4l">Used to record data or audio compact discs.</td> </tr> <tr> <td class="tg-yw4l">cfdisk</td> <td class="tg-yw4l">Show or change the disk partition table.</td> </tr> <tr> <td class="tg-yw4l">chage</td> <td class="tg-yw4l">Used to change user password information.</td> </tr> <tr> <td class="tg-yw4l">chattr</td> <td class="tg-yw4l">Used to change file attributes.</td> </tr> <tr> <td class="tg-yw4l">chdir</td> <td class="tg-yw4l">Used to change active working directory.</td> </tr> <tr> <td class="tg-yw4l">chfn</td> <td class="tg-yw4l">Used to change real user name and information.</td> </tr> <tr> <td class="tg-yw4l">chgrp</td> <td class="tg-yw4l">Used to change group ownership for file.</td> </tr> <tr> <td class="tg-yw4l">chkconfig</td> <td class="tg-yw4l">Manage execution of runlevel services.</td> </tr> <tr> <td class="tg-yw4l">chmod</td> <td class="tg-yw4l">Change access permission for a file(s).</td> </tr> <tr> <td class="tg-yw4l">chown</td> <td class="tg-yw4l">Change the owner or group for a file.</td> </tr> <tr> <td class="tg-yw4l">chpasswd</td> <td class="tg-yw4l">Update password in a batch.</td> </tr> <tr> <td class="tg-yw4l">chroot</td> <td class="tg-yw4l">Run a command with root directory.</td> </tr> <tr> <td class="tg-yw4l">chrt</td> <td class="tg-yw4l">Alter process attributed in real-time.</td> </tr> <tr> <td class="tg-yw4l">chsh</td> <td class="tg-yw4l">Switch login shell.</td> </tr> <tr> <td class="tg-yw4l">chvt</td> <td class="tg-yw4l">Change foreground virtual terminal.</td> </tr> <tr> <td class="tg-yw4l">cksum</td> <td class="tg-yw4l">Perform a CRC checksum for files.</td> </tr> <tr> <td class="tg-yw4l">clear</td> <td class="tg-yw4l">Used to clear the terminal window.</td> </tr> <tr> <td class="tg-yw4l">cmp</td> <td class="tg-yw4l">Compare two files (byte by byte).</td> </tr> <tr> <td class="tg-yw4l">col</td> <td class="tg-yw4l">Filter reverse (and half-reverse) line feeds from the input.</td> </tr> <tr> <td class="tg-yw4l">colcrt</td> <td class="tg-yw4l">Filter nroff output for CRT previewing.</td> </tr> <tr> <td class="tg-yw4l">colrm</td> <td class="tg-yw4l">Remove columns from the lines of a file.</td> </tr> <tr> <td class="tg-yw4l">column</td> <td class="tg-yw4l">A utility that formats its input into columns.</td> </tr> <tr> <td class="tg-yw4l">comm</td> <td class="tg-yw4l">Used to compare two sorted files line by line.</td> </tr> <tr> <td class="tg-yw4l">command</td> <td class="tg-yw4l">Used to execute a command with arguments ignoring shell function named command.</td> </tr> <tr> <td class="tg-yw4l">compress</td> <td class="tg-yw4l">Used to compress one or more file(s) and replacing the originals ones.</td> </tr> <tr> <td class="tg-yw4l">continue</td> <td class="tg-yw4l">Resume the next iteration of a loop.</td> </tr> <tr> <td class="tg-yw4l">cp</td> <td class="tg-yw4l">Copy contents of one file to another.</td> </tr> <tr> <td class="tg-yw4l">cpio</td> <td class="tg-yw4l">Copy files from and to archives.</td> </tr> <tr> <td class="tg-yw4l">cpp</td> <td class="tg-yw4l">GNU C language processor.</td> </tr> <tr> <td class="tg-yw4l">cron</td> <td class="tg-yw4l">A daemon to execute scheduled commands.</td> </tr> <tr> <td class="tg-yw4l">crond</td> <td class="tg-yw4l">Same work as cron.</td> </tr> <tr> <td class="tg-yw4l">crontab</td> <td class="tg-yw4l">Manage crontab files (containing schedules commands) for users.</td> </tr> <tr> <td class="tg-yw4l">csplit</td> <td class="tg-yw4l">Split a file into sections on the basis of context lines.</td> </tr> <tr> <td class="tg-yw4l">ctags</td> <td class="tg-yw4l">Make a list of functions and macro names defined in a programming source file.</td> </tr> <tr> <td class="tg-yw4l">cupsd</td> <td class="tg-yw4l">A scheduler for CUPS.</td> </tr> <tr> <td class="tg-yw4l">curl</td> <td class="tg-yw4l">Used to transfer data from or to a server using supported protocols.</td> </tr> <tr> <td class="tg-yw4l">cut</td> <td class="tg-yw4l">Used to remove sections from each line of a file(s).</td> </tr> <tr> <td class="tg-yw4l">cvs</td> <td class="tg-yw4l">Concurrent Versions System. Used to track file versions, allow storage/retrieval of previous versions, and enables multiple users to work on the same file.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> D</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">date</td> <td class="tg-yw4l">Show system date and time.</td> </tr> <tr> <td class="tg-yw4l">dc</td> <td class="tg-yw4l">Desk calculator utility.</td> </tr> <tr> <td class="tg-yw4l">dd</td> <td class="tg-yw4l">Used to convert and copy a file, create disk clone, write disk headers, etc.</td> </tr> <tr> <td class="tg-yw4l">ddrescue</td> <td class="tg-yw4l">Used to recover data from a crashed partition.</td> </tr> <tr> <td class="tg-yw4l">deallocvt</td> <td class="tg-yw4l">Deallocates kernel memory for unused virtual consoles.</td> </tr> <tr> <td class="tg-yw4l">debugfs</td> <td class="tg-yw4l">File system debugger for ext2/ext3/ext4</td> </tr> <tr> <td class="tg-yw4l">declare</td> <td class="tg-yw4l">Used to declare variables and assign attributes.</td> </tr> <tr> <td class="tg-yw4l">depmod</td> <td class="tg-yw4l">Generate modules.dep and map files.</td> </tr> <tr> <td class="tg-yw4l">devdump</td> <td class="tg-yw4l">Interactively displays the contents of device or file system ISO.</td> </tr> <tr> <td class="tg-yw4l">df</td> <td class="tg-yw4l">Show disk usage.</td> </tr> <tr> <td class="tg-yw4l">diff</td> <td class="tg-yw4l">Used to compare files line by line.</td> </tr> <tr> <td class="tg-yw4l">diff3</td> <td class="tg-yw4l">Compare three files line by line.</td> </tr> <tr> <td class="tg-yw4l">dig</td> <td class="tg-yw4l">Domain Information Groper, a DNS lookup utility.</td> </tr> <tr> <td class="tg-yw4l">dir</td> <td class="tg-yw4l">List the contents of a directory.</td> </tr> <tr> <td class="tg-yw4l">dircolors</td> <td class="tg-yw4l">Set colors for ‘ls’ by altering the LS_COLORS environment variable.</td> </tr> <tr> <td class="tg-yw4l">dirname</td> <td class="tg-yw4l">Display pathname after removing the last slash and characters thereafter.</td> </tr> <tr> <td class="tg-yw4l">dirs</td> <td class="tg-yw4l">Show the list of remembered directories.</td> </tr> <tr> <td class="tg-yw4l">disable</td> <td class="tg-yw4l">Restrict access to a printer.</td> </tr> <tr> <td class="tg-yw4l">dlpsh</td> <td class="tg-yw4l">Interactive Desktop Link Protocol (DLP) shell for PalmOS.</td> </tr> <tr> <td class="tg-yw4l">dmesg</td> <td class="tg-yw4l">Examine and control the kernel ring buffer.</td> </tr> <tr> <td class="tg-yw4l">dmidecode</td> <td class="tg-yw4l">Used when the user wants to retrieve system’s hardware related information such as Processor, RAM(DIMMs), BIOS detail, etc. of Linux system in a readable format.</td> </tr> <tr> <td class="tg-yw4l">dnsdomainname</td> <td class="tg-yw4l">Show the DNS domain name of the system.</td> </tr> <tr> <td class="tg-yw4l">dnssec-keygen</td> <td class="tg-yw4l">Generate encrypted Secure DNS keys for a given domain name.</td> </tr> <tr> <td class="tg-yw4l">dnssec-makekeyset</td> <td class="tg-yw4l">Produce domain key set from one or more DNS security keys generated by dnssec-keygen.</td> </tr> <tr> <td class="tg-yw4l">dnssec-signkey</td> <td class="tg-yw4l">Sign a secure DNS keyset with key signatures specified in the list of key-identifiers.</td> </tr> <tr> <td class="tg-yw4l">dnssec-signzone</td> <td class="tg-yw4l">Sign a secure DNS zonefile with the signatures in the specified list of key-identifiers.</td> </tr> <tr> <td class="tg-yw4l">doexec</td> <td class="tg-yw4l">Used to run an executable with an arbitrary argv list provided.</td> </tr> <tr> <td class="tg-yw4l">domainname</td> <td class="tg-yw4l">Show or set the name of current NIS (Network Information Services) domain.</td> </tr> <tr> <td class="tg-yw4l">dosfsck</td> <td class="tg-yw4l">Used to retrieve information or statistics form components of the system such as network connections, IO devices, or CPU, etc.</td> </tr> <tr> <td class="tg-yw4l">dpkg</td> <td class="tg-yw4l">Install, build, remove and manage debian software packages.</td> </tr> <tr> <td class="tg-yw4l">dstat</td> <td class="tg-yw4l">Check and repair MS-DOS file systems.</td> </tr> <tr> <td class="tg-yw4l">du</td> <td class="tg-yw4l">Show disk usage summary for a file(s).</td> </tr> <tr> <td class="tg-yw4l">dump</td> <td class="tg-yw4l">Backup utility for ext2/ext3 file systems.</td> </tr> <tr> <td class="tg-yw4l">dumpe2fs</td> <td class="tg-yw4l">Dump ext2/ext3/ext4 file systems.</td> </tr> <tr> <td class="tg-yw4l">dumpkeys</td> <td class="tg-yw4l">Show information about the keyboard driver’s current translation tables.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> E</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">e2fsck</td> <td class="tg-yw4l">Used to check ext2/ext3/ext4 file systems.</td> </tr> <tr> <td class="tg-yw4l">e2image</td> <td class="tg-yw4l">Store important ext2/ext3/ext4 filesystem metadata to a file.</td> </tr> <tr> <td class="tg-yw4l">e2label</td> <td class="tg-yw4l">Show or change the label on an ext2/ext3/ext4 filesystem.</td> </tr> <tr> <td class="tg-yw4l">echo</td> <td class="tg-yw4l">Send input string(s) to standard output i.e. display text on the screen.</td> </tr> <tr> <td class="tg-yw4l">ed</td> <td class="tg-yw4l">GNU Ed – a line-oriented text editor.</td> </tr> <tr> <td class="tg-yw4l">edquota</td> <td class="tg-yw4l">Used to edit filesystem quotas using a text editor, such as vi.</td> </tr> <tr> <td class="tg-yw4l">egrep</td> <td class="tg-yw4l">Search and display text matching a pattern.</td> </tr> <tr> <td class="tg-yw4l">eject</td> <td class="tg-yw4l">Eject removable media.</td> </tr> <tr> <td class="tg-yw4l">elvtune</td> <td class="tg-yw4l">Used to set latency in the elevator algorithm used to schedule I/O activities for specified block devices.</td> </tr> <tr> <td class="tg-yw4l">emacs</td> <td class="tg-yw4l">Emacs text editor command line utility.</td> </tr> <tr> <td class="tg-yw4l">enable</td> <td class="tg-yw4l">Used to enable/disable shell builtin commands.</td> </tr> <tr> <td class="tg-yw4l">env</td> <td class="tg-yw4l">Run a command in a modified environment. Show/set/delete environment variables.</td> </tr> <tr> <td class="tg-yw4l">envsubst</td> <td class="tg-yw4l">Substitute environment variable values in shell format strings.</td> </tr> <tr> <td class="tg-yw4l">esd</td> <td class="tg-yw4l">Start the Enlightenment Sound Daemon (EsounD or esd). Enables multiple applications to access the same audio device simultaneously.</td> </tr> <tr> <td class="tg-yw4l">esd-config</td> <td class="tg-yw4l">Manage EsounD configuration.</td> </tr> <tr> <td class="tg-yw4l">esdcat</td> <td class="tg-yw4l">Use EsounD to send audio data from a specified file.</td> </tr> <tr> <td class="tg-yw4l">esdctl</td> <td class="tg-yw4l">EsounD control program.</td> </tr> <tr> <td class="tg-yw4l">esddsp</td> <td class="tg-yw4l">Used to reroute non-esd audio data to esd and control all the audio using esd.</td> </tr> <tr> <td class="tg-yw4l">esdmon</td> <td class="tg-yw4l">Used to copy the sound being sent to a device. Also, send it to a secondary device.</td> </tr> <tr> <td class="tg-yw4l">esdplay</td> <td class="tg-yw4l">Use EsounD system to play a file.</td> </tr> <tr> <td class="tg-yw4l">esdrec</td> <td class="tg-yw4l">Use EsounD to record audio to a specified file.</td> </tr> <tr> <td class="tg-yw4l">esdsample</td> <td class="tg-yw4l">Sample audio using esd.</td> </tr> <tr> <td class="tg-yw4l">etags</td> <td class="tg-yw4l">Used to create a list of functions and macros from a programming source file. These etags are used by emacs. For vi, use ctags.</td> </tr> <tr> <td class="tg-yw4l">ethtool</td> <td class="tg-yw4l">Used to query and control network driver and hardware settings.</td> </tr> <tr> <td class="tg-yw4l">eval</td> <td class="tg-yw4l">Used to evaluate multiple commands or arguments are once.</td> </tr> <tr> <td class="tg-yw4l">ex</td> <td class="tg-yw4l">Interactive command</td> </tr> <tr> <td class="tg-yw4l">exec</td> <td class="tg-yw4l">An interactive line-based text editor.</td> </tr> <tr> <td class="tg-yw4l">exit</td> <td class="tg-yw4l">Exit from the terminal.</td> </tr> <tr> <td class="tg-yw4l">expand</td> <td class="tg-yw4l">Convert tabs into spaces in a given file and show the output.</td> </tr> <tr> <td class="tg-yw4l">expect</td> <td class="tg-yw4l">An extension to the Tcl script, it’s used to automate interaction with other applications based on their expected output.</td> </tr> <tr> <td class="tg-yw4l">export</td> <td class="tg-yw4l">Used to set an environment variable.</td> </tr> <tr> <td class="tg-yw4l">expr</td> <td class="tg-yw4l">Evaluate expressions and display them on standard output.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> F</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">factor</td> <td class="tg-yw4l">Display prime factors of specified integer numbers.</td> </tr> <tr> <td class="tg-yw4l">false</td> <td class="tg-yw4l">Do nothing, unsuccessfully. Exit with a status code indicating failure.</td> </tr> <tr> <td class="tg-yw4l">fc</td> <td class="tg-yw4l">Used to list, edit or re-execute the commands previously entered into an interactive shell.</td> </tr> <tr> <td class="tg-yw4l">fc-cache</td> <td class="tg-yw4l">Make font information cache after scanning the directories.</td> </tr> <tr> <td class="tg-yw4l">fc-list</td> <td class="tg-yw4l">Show the list of available fonts.</td> </tr> <tr> <td class="tg-yw4l">fdformat</td> <td class="tg-yw4l">Do a low-level format on a floppy disk.</td> </tr> <tr> <td class="tg-yw4l">fdisk</td> <td class="tg-yw4l">Make changes to the disk partition table.</td> </tr> <tr> <td class="tg-yw4l">fetchmail</td> <td class="tg-yw4l">Fetch mail from mail servers and forward it to the local mail delivery system.</td> </tr> <tr> <td class="tg-yw4l">fg</td> <td class="tg-yw4l">Used to send a job to the foreground.</td> </tr> <tr> <td class="tg-yw4l">fgconsole</td> <td class="tg-yw4l">Display the number of the current virtual console.</td> </tr> <tr> <td class="tg-yw4l">fgrep</td> <td class="tg-yw4l">Display lines from a file(s) that match a specified string. A variant of grep.</td> </tr> <tr> <td class="tg-yw4l">file</td> <td class="tg-yw4l">Determine file type for a file.</td> </tr> <tr> <td class="tg-yw4l">find</td> <td class="tg-yw4l">Do a file search in a directory hierarchy.</td> </tr> <tr> <td class="tg-yw4l">finger</td> <td class="tg-yw4l">Display user data including the information listed in <em>.plan</em>and <em>.project</em>in each user’s home directory.</td> </tr> <tr> <td class="tg-yw4l">fingerd</td> <td class="tg-yw4l">Provides a network interface for the finger program.</td> </tr> <tr> <td class="tg-yw4l">flex</td> <td class="tg-yw4l">Generate programs that perform pattern-matching on text.</td> </tr> <tr> <td class="tg-yw4l">fmt</td> <td class="tg-yw4l">Used to convert text to a specified width by filling lines and removing new lines, displaying the output.</td> </tr> <tr> <td class="tg-yw4l">fold</td> <td class="tg-yw4l">Wrap input line to fit in a specified width.</td> </tr> <tr> <td class="tg-yw4l">for</td> <td class="tg-yw4l">Expand words and run commands for each one in the resultant list.</td> </tr> <tr> <td class="tg-yw4l">formail</td> <td class="tg-yw4l">Used to filter standard input into mailbox format.</td> </tr> <tr> <td class="tg-yw4l">format</td> <td class="tg-yw4l">Used to format disks.</td> </tr> <tr> <td class="tg-yw4l">free</td> <td class="tg-yw4l">Show free and used system memory.</td> </tr> <tr> <td class="tg-yw4l">fsck</td> <td class="tg-yw4l">Check and repair a Linux file system</td> </tr> <tr> <td class="tg-yw4l">ftp</td> <td class="tg-yw4l">File transfer protocol user interface.</td> </tr> <tr> <td class="tg-yw4l">ftpd</td> <td class="tg-yw4l">FTP server process.</td> </tr> <tr> <td class="tg-yw4l">function</td> <td class="tg-yw4l">Used to define function macros.</td> </tr> <tr> <td class="tg-yw4l">Fun</td> <td class="tg-yw4l">Used to draw various type of patterns on the terminal.</td> </tr> <tr> <td class="tg-yw4l">fuser</td> <td class="tg-yw4l">Find and kill a process accessing a file.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> G</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">g++</td> <td class="tg-yw4l">Run the g++ compiler.</td> </tr> <tr> <td class="tg-yw4l">gawk</td> <td class="tg-yw4l">Used for pattern scanning and language processing. A GNU implementation of AWK language.</td> </tr> <tr> <td class="tg-yw4l">gcc</td> <td class="tg-yw4l">A C and C++ compiler by GNU.</td> </tr> <tr> <td class="tg-yw4l">gdb</td> <td class="tg-yw4l">A utility to debug programs and know about where it crashes.</td> </tr> <tr> <td class="tg-yw4l">getent</td> <td class="tg-yw4l">Shows entries from Name Service Switch Libraries for specified keys.</td> </tr> <tr> <td class="tg-yw4l">getkeycodes</td> <td class="tg-yw4l">Displays the kernel scancode-to-keycode mapping table.</td> </tr> <tr> <td class="tg-yw4l">getopts</td> <td class="tg-yw4l">A utility to parse positional parameters.</td> </tr> <tr> <td class="tg-yw4l">gpasswd</td> <td class="tg-yw4l">Allows an administrator to change group passwords.</td> </tr> <tr> <td class="tg-yw4l">gpg</td> <td class="tg-yw4l">Enables encryption and signing services as per the OpenPGP standard.</td> </tr> <tr> <td class="tg-yw4l">gpgsplit</td> <td class="tg-yw4l">Used to split an OpenPGP message into packets.</td> </tr> <tr> <td class="tg-yw4l">gpgv</td> <td class="tg-yw4l">Used to verify OpenPGP signatures.</td> </tr> <tr> <td class="tg-yw4l">gpm</td> <td class="tg-yw4l">It enables cut and paste functionality and a mouse server for the Linux console.</td> </tr> <tr> <td class="tg-yw4l">gprof</td> <td class="tg-yw4l">Shows call graph profile data.</td> </tr> <tr> <td class="tg-yw4l">grep</td> <td class="tg-yw4l">Searches input files for a given pattern and displays the relevant lines.</td> </tr> <tr> <td class="tg-yw4l">groff</td> <td class="tg-yw4l">Serves as the front-end of the groff document formatting system.</td> </tr> <tr> <td class="tg-yw4l">groffer</td> <td class="tg-yw4l">Displays groff files and man pages.</td> </tr> <tr> <td class="tg-yw4l">groupadd</td> <td class="tg-yw4l">Used to add a new user group.</td> </tr> <tr> <td class="tg-yw4l">groupdel</td> <td class="tg-yw4l">Used to remove a user group.</td> </tr> <tr> <td class="tg-yw4l">groupmod</td> <td class="tg-yw4l">Used to modify a group definition.</td> </tr> <tr> <td class="tg-yw4l">groups</td> <td class="tg-yw4l">Showthe group(s) to which a user belongs.</td> </tr> <tr> <td class="tg-yw4l">grpck</td> <td class="tg-yw4l">Verifies the integrity of group files.</td> </tr> <tr> <td class="tg-yw4l">grpconv</td> <td class="tg-yw4l">Creates agshadow file from a group or an already existing gshadow.</td> </tr> <tr> <td class="tg-yw4l">gs</td> <td class="tg-yw4l">Invokes Ghostscript, and interpreter and previewer for Adobe’s PostScript and PDF languages.</td> </tr> <tr> <td class="tg-yw4l">gunzip</td> <td class="tg-yw4l">A utility to compress/expand files.</td> </tr> <tr> <td class="tg-yw4l">gzexe</td> <td class="tg-yw4l">Used compress executable files in place and have them automatically uncompress and run at a later stage.</td> </tr> <tr> <td class="tg-yw4l">gzip</td> <td class="tg-yw4l">A utility to compress/expand files.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> H</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">halt</td> <td class="tg-yw4l">Command used to half the machine.</td> </tr> <tr> <td class="tg-yw4l">hash</td> <td class="tg-yw4l">Shows the path for the commands executed in the shell.</td> </tr> <tr> <td class="tg-yw4l">hdparm</td> <td class="tg-yw4l">Show/configure parameters for SATA/IDE devices.</td> </tr> <tr> <td class="tg-yw4l">head</td> <td class="tg-yw4l">Shows first 10 lines from each specified file.</td> </tr> <tr> <td class="tg-yw4l">help</td> <td class="tg-yw4l">Display’s help for a built-in command.</td> </tr> <tr> <td class="tg-yw4l">hexdump</td> <td class="tg-yw4l">Shows specified file output in hexadecimal, octal, decimal, or ASCII format.</td> </tr> <tr> <td class="tg-yw4l">history</td> <td class="tg-yw4l">Shows the command history.</td> </tr> <tr> <td class="tg-yw4l">host</td> <td class="tg-yw4l">A utility to perform DNS lookups.</td> </tr> <tr> <td class="tg-yw4l">hostid</td> <td class="tg-yw4l">Shows host’s numeric ID in hexadecimal format.</td> </tr> <tr> <td class="tg-yw4l">hostname</td> <td class="tg-yw4l">Display/set the hostname of the system.</td> </tr> <tr> <td class="tg-yw4l">hostnamectl</td> <td class="tg-yw4l">Provides a proper API used to control Linux system hostname and change its related settings.</td> </tr> <tr> <td class="tg-yw4l">htdigest</td> <td class="tg-yw4l">Manage the user authentication file used by the Apache web server.</td> </tr> <tr> <td class="tg-yw4l">htop</td> <td class="tg-yw4l">An interactive process viewer for the command line.</td> </tr> <tr> <td class="tg-yw4l">hwclock</td> <td class="tg-yw4l">Show or configure the system’s hardware clock.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> I</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">iconv</td> <td class="tg-yw4l">Convert text file from one encoding to another.</td> </tr> <tr> <td class="tg-yw4l">id</td> <td class="tg-yw4l">Show user and group information for a specified user.</td> </tr> <tr> <td class="tg-yw4l">if</td> <td class="tg-yw4l">Execute a command conditionally.</td> </tr> <tr> <td class="tg-yw4l">ifconfig</td> <td class="tg-yw4l">Used to configure network interfaces.</td> </tr> <tr> <td class="tg-yw4l">ifdown</td> <td class="tg-yw4l">Stops a network interface.</td> </tr> <tr> <td class="tg-yw4l">iftop</td> <td class="tg-yw4l">It is a network analyzing tool used by system administrators to view the bandwidth related stats.</td> </tr> <tr> <td class="tg-yw4l">ifup</td> <td class="tg-yw4l">Starts a network interface.</td> </tr> <tr> <td class="tg-yw4l">imapd</td> <td class="tg-yw4l">An IMAP (Interactive Mail Access Protocol) server daemon.</td> </tr> <tr> <td class="tg-yw4l">import</td> <td class="tg-yw4l">Capture an X server screen and saves it as an image.</td> </tr> <tr> <td class="tg-yw4l">inetd</td> <td class="tg-yw4l">Extended internet services daemon, it starts the programs that provide internet services.</td> </tr> <tr> <td class="tg-yw4l">info</td> <td class="tg-yw4l">Used to read the documentation in Info format.</td> </tr> <tr> <td class="tg-yw4l">init</td> <td class="tg-yw4l">Systemd system and service manager.</td> </tr> <tr> <td class="tg-yw4l">insmod</td> <td class="tg-yw4l">A program that inserts a module into the Linux kernel.</td> </tr> <tr> <td class="tg-yw4l">install</td> <td class="tg-yw4l">Used to copy files to specified locations and set attributions during the install process.</td> </tr> <tr> <td class="tg-yw4l">iostat</td> <td class="tg-yw4l">Shows statistics for CPU, I/O devices, partitions, network filesystems.</td> </tr> <tr> <td class="tg-yw4l">iotop</td> <td class="tg-yw4l">Used to display and monitor the disk IO usage details and even gets a table of existing IO utilization by the process.</td> </tr> <tr> <td class="tg-yw4l">ip</td> <td class="tg-yw4l">Display/manipulate routing, devices, policy, routing and tunnels.</td> </tr> <tr> <td class="tg-yw4l">ipcrm</td> <td class="tg-yw4l">Used to remove System V interprocess communication (IPC) objects and associated data structures.</td> </tr> <tr> <td class="tg-yw4l">ipcs</td> <td class="tg-yw4l">Show information on IPC facilities for which calling process has read access.</td> </tr> <tr> <td class="tg-yw4l">iptables</td> <td class="tg-yw4l">Administration tool for IPv4 packet filtering and NAT.</td> </tr> <tr> <td class="tg-yw4l">iptables-restore</td> <td class="tg-yw4l">Used to restore IP tables from data specified in the input or a file.</td> </tr> <tr> <td class="tg-yw4l">iptables-save</td> <td class="tg-yw4l">Used to dump IP table contents to standard output.</td> </tr> <tr> <td class="tg-yw4l">iwconfig</td> <td class="tg-yw4l">Used to display the parameters, and the wireless statistics which are extracted from /proc/net/wireless.</td> </tr> <tr> <td class="tg-yw4l">isodump</td> <td class="tg-yw4l">A utility that shows the content iso9660 images to verify the integrity of directory contents.</td> </tr> <tr> <td class="tg-yw4l">isoinfo</td> <td class="tg-yw4l">A utility to perform directory like listings of iso9660 images.</td> </tr> <tr> <td class="tg-yw4l">isosize</td> <td class="tg-yw4l">Show the length of an iso9660 filesystem contained in a specified file.</td> </tr> <tr> <td class="tg-yw4l">isovfy</td> <td class="tg-yw4l">Verifies the integrity of an iso9660 image.</td> </tr> <tr> <td class="tg-yw4l">ispell</td> <td class="tg-yw4l">A CLI-based spell-check utility.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> J</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">jobs</td> <td class="tg-yw4l">Show the list of active jobs and their status.</td> </tr> <tr> <td class="tg-yw4l">join</td> <td class="tg-yw4l">For each pair of input lines, join them using a command field and display on standard output.</td> </tr> </tbody> <td class="tg-yw4l">journalctl</td> <td class="tg-yw4l">Used to view systemd, kernal and journal logs.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> K</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">kbd_mode</td> <td class="tg-yw4l">Set a keyboard mode. Without arguments, shows the current keyboard mode.</td> </tr> <tr> <td class="tg-yw4l">kbdrate</td> <td class="tg-yw4l">Reset keyboard repeat rate and delay time.</td> </tr> <tr> <td class="tg-yw4l">kill</td> <td class="tg-yw4l">Send a kill (termination) signal to one more processes.</td> </tr> <tr> <td class="tg-yw4l">killall</td> <td class="tg-yw4l">Kills a process(es) running a specified command.</td> </tr> <tr> <td class="tg-yw4l">killall5</td> <td class="tg-yw4l">A SystemV killall command. Kills all the processes excluding the ones which it depends on.</td> </tr> <tr> <td class="tg-yw4l">klogd</td> <td class="tg-yw4l">Control and prioritize the kernel messages to be displayed on the console, and log them through syslogd.</td> </tr> <tr> <td class="tg-yw4l">kudzu</td> <td class="tg-yw4l">Used to detect new and enhanced hardware by comparing it with existing database. Only for RHEL and derivatives.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> L</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">last</td> <td class="tg-yw4l">Shows a list of recent logins on the system by fetching data from <em>/var/log/wtmp</em> file.</td> </tr> <tr> <td class="tg-yw4l">lastb</td> <td class="tg-yw4l">Shows the list of bad login attempts by fetching data from <em>/var/log/btmp</em>file.</td> </tr> <tr> <td class="tg-yw4l">lastlog</td> <td class="tg-yw4l">Displays information about the most recent login of all users or a specified user.</td> </tr> <tr> <td class="tg-yw4l">ld</td> <td class="tg-yw4l">The Unix linker, it combines archives and object files. It then puts them into one output file, resolving external references.</td> </tr> <tr> <td class="tg-yw4l">ldconfig</td> <td class="tg-yw4l">Configure dynamic linker run-time bindings.</td> </tr> <tr> <td class="tg-yw4l">ldd</td> <td class="tg-yw4l">Shows shared object dependencies.</td> </tr> <tr> <td class="tg-yw4l">less</td> <td class="tg-yw4l">Displays contents of a fileone page at a time. It’s advanced than <em>more</em> command.</td> </tr> <tr> <td class="tg-yw4l">lesskey</td> <td class="tg-yw4l">Used to specify key bindings for less command.</td> </tr> <tr> <td class="tg-yw4l">let</td> <td class="tg-yw4l">Used to perform integer artithmetic on shell variables.</td> </tr> <tr> <td class="tg-yw4l">lftp</td> <td class="tg-yw4l">An FTP utility with extra features.</td> </tr> <tr> <td class="tg-yw4l">lftpget</td> <td class="tg-yw4l">Uses lftop to retrieve HTTP, FTP, and other protocol URLs supported by lftp.</td> </tr> <tr> <td class="tg-yw4l">link</td> <td class="tg-yw4l">Create links between two files. Similar to ln command.</td> </tr> <tr> <td class="tg-yw4l">ln</td> <td class="tg-yw4l">Create links between files. Links can be hard (two names for the same file) or soft (a shortcut of the first file).</td> </tr> <tr> <td class="tg-yw4l">loadkeys</td> <td class="tg-yw4l">Load keyboard translation tables.</td> </tr> <tr> <td class="tg-yw4l">local</td> <td class="tg-yw4l">Used to create function variables.</td> </tr> <tr> <td class="tg-yw4l">locale</td> <td class="tg-yw4l">Shows information about current or all locales.</td> </tr> <tr> <td class="tg-yw4l">locate</td> <td class="tg-yw4l">Used to find files by their name.</td> </tr> <tr> <td class="tg-yw4l">lockfile</td> <td class="tg-yw4l">Create semaphore file(s) which can be used to limit access to a file.</td> </tr> <tr> <td class="tg-yw4l">logger</td> <td class="tg-yw4l">Make entries in the system log.</td> </tr> <tr> <td class="tg-yw4l">login</td> <td class="tg-yw4l">Create a new session on the system.</td> </tr> <tr> <td class="tg-yw4l">logname</td> <td class="tg-yw4l">Shows the login name of the current user.</td> </tr> <tr> <td class="tg-yw4l">logout</td> <td class="tg-yw4l">Performs the logout operation by making changes to the utmp and wtmp files.</td> </tr> <tr> <td class="tg-yw4l">logrotate</td> <td class="tg-yw4l">Used for automatic rotation, compression, removal, and mailing of system log files.</td> </tr> <tr> <td class="tg-yw4l">look</td> <td class="tg-yw4l">Shows any lines in a file containing a given string in the beginning.</td> </tr> <tr> <td class="tg-yw4l">losetup</td> <td class="tg-yw4l">Set up and control loop devices.</td> </tr> <tr> <td class="tg-yw4l">lpadmin</td> <td class="tg-yw4l">Used to configure printer and class queues provided by CUPS (Common UNIX Printing System).</td> </tr> <tr> <td class="tg-yw4l">lpc</td> <td class="tg-yw4l">Line printer control program, it provides limited control over CUPS printer and class queues.</td> </tr> <tr> <td class="tg-yw4l">lpinfo</td> <td class="tg-yw4l">Shows the list of available devices and drivers known to the CUPS server.</td> </tr> <tr> <td class="tg-yw4l">lpmove</td> <td class="tg-yw4l">Move on or more printing jobs to a new destination.</td> </tr> <tr> <td class="tg-yw4l">lpq</td> <td class="tg-yw4l">Shows current print queue status for a specified printer.</td> </tr> <tr> <td class="tg-yw4l">lpr</td> <td class="tg-yw4l">Used to submit files for printing.</td> </tr> <tr> <td class="tg-yw4l">lprint</td> <td class="tg-yw4l">Used to print a file.</td> </tr> <tr> <td class="tg-yw4l">lprintd</td> <td class="tg-yw4l">Used to abort a print job.</td> </tr> <tr> <td class="tg-yw4l">lprintq</td> <td class="tg-yw4l">List the print queue.</td> </tr> <tr> <td class="tg-yw4l">lprm</td> <td class="tg-yw4l">Cancel print jobs.</td> </tr> <tr> <td class="tg-yw4l">lpstat</td> <td class="tg-yw4l">Displays status information about current classes, jobs, and printers.</td> </tr> <tr> <td class="tg-yw4l">ls</td> <td class="tg-yw4l">Shows the list of files in the current directory.</td> </tr> <tr> <td class="tg-yw4l">lsattr</td> <td class="tg-yw4l">Shows file attributes on a Linux ext2 file system.</td> </tr> <tr> <td class="tg-yw4l">lsblk</td> <td class="tg-yw4l">Lists information about all available or the specified block devices.</td> </tr> <tr> <td class="tg-yw4l">lshw</td> <td class="tg-yw4l">Used to generate the detailed information of the system’s hardware configuration from various files in the /proc directory.</td> </tr> <tr> <td class="tg-yw4l">lsmod</td> <td class="tg-yw4l">Show the status of modules in the Linux kernel.</td> </tr> <tr> <td class="tg-yw4l">lsof</td> <td class="tg-yw4l">List open files.</td> </tr> <tr> <td class="tg-yw4l">lspci</td> <td class="tg-yw4l">List all PCI devices.</td> </tr> <tr> <td class="tg-yw4l">lsusb</td> <td class="tg-yw4l">List USB devices.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> M</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">m4</td> <td class="tg-yw4l">Macro processor.</td> </tr> <tr> <td class="tg-yw4l">mail</td> <td class="tg-yw4l">Utility to compose, receive, send, forward, and reply to emails.</td> </tr> <tr> <td class="tg-yw4l">mailq</td> <td class="tg-yw4l">Shows to list all emails queued for delivery (sendmail queue).</td> </tr> <tr> <td class="tg-yw4l">mailstats</td> <td class="tg-yw4l">Shows current mail statistics.</td> </tr> <tr> <td class="tg-yw4l">mailto</td> <td class="tg-yw4l">Used to send mail with multimedia content in MIME format.</td> </tr> <tr> <td class="tg-yw4l">make</td> <td class="tg-yw4l">Utility to maintain groups of programs, recompile them if needed.</td> </tr> <tr> <td class="tg-yw4l">makedbm</td> <td class="tg-yw4l">Creates an NIS (Network Information Services) database map.</td> </tr> <tr> <td class="tg-yw4l">makemap</td> <td class="tg-yw4l">Creates database maps used by the keyed map lookups in sendmail.</td> </tr> <tr> <td class="tg-yw4l">man</td> <td class="tg-yw4l">Shows manual pages for Linux commands.</td> </tr> <tr> <td class="tg-yw4l">manpath</td> <td class="tg-yw4l">Determine search path for manual pages.</td> </tr> <tr> <td class="tg-yw4l">mattrib</td> <td class="tg-yw4l">Used to change MS-DOS file attribute flags.</td> </tr> <tr> <td class="tg-yw4l">mbadblocks</td> <td class="tg-yw4l">Checks MD-DOS filesystems for bad blocks.</td> </tr> <tr> <td class="tg-yw4l">mcat</td> <td class="tg-yw4l">Dump raw disk image.</td> </tr> <tr> <td class="tg-yw4l">mcd</td> <td class="tg-yw4l">Used to change MS-DOS directory.</td> </tr> <tr> <td class="tg-yw4l">mcopy</td> <td class="tg-yw4l">Used to copy MS-DOS files from or to Unix.</td> </tr> <tr> <td class="tg-yw4l">md5sum</td> <td class="tg-yw4l">Used to check MD5 checksum for a file.</td> </tr> <tr> <td class="tg-yw4l">mdel, mdeltree</td> <td class="tg-yw4l">Used to delete MS-DOS file. mdeltree recursively deletes MS-DOS directory and its contents.</td> </tr> <tr> <td class="tg-yw4l">mdir</td> <td class="tg-yw4l">Used to display an MS-DOS directory.</td> </tr> <tr> <td class="tg-yw4l">mdu</td> <td class="tg-yw4l">Used to display the amount of space occupied by an MS-DOS directory.</td> </tr> <tr> <td class="tg-yw4l">merge</td> <td class="tg-yw4l">Three-way file merge. Includes all changes from file2 and file3 to file1.</td> </tr> <tr> <td class="tg-yw4l">mesg</td> <td class="tg-yw4l">Allow/disallow osends to sedn write messages to your terminal.</td> </tr> <tr> <td class="tg-yw4l">metamail</td> <td class="tg-yw4l">For sending and showing rich text or multimedia email using MIME typing metadata.</td> </tr> <tr> <td class="tg-yw4l">metasend</td> <td class="tg-yw4l">An interface for sending non-text mail.</td> </tr> <tr> <td class="tg-yw4l">mformat</td> <td class="tg-yw4l">Used to add an MS-DOS filesystem to a low-level formatted floppy disk.</td> </tr> <tr> <td class="tg-yw4l">mimencode</td> <td class="tg-yw4l">Translate to/from MIME multimedia mail encoding formats.</td> </tr> <tr> <td class="tg-yw4l">minfo</td> <td class="tg-yw4l">Display parameters of an MS-DOS filesystem.</td> </tr> <tr> <td class="tg-yw4l">mkdir</td> <td class="tg-yw4l">Used to create directories.</td> </tr> <tr> <td class="tg-yw4l">mkdosfs</td> <td class="tg-yw4l">Used to create an MS-DOS filesystem under Linux.</td> </tr> <tr> <td class="tg-yw4l">mke2fs</td> <td class="tg-yw4l">Used create an ext2/ext3/ext4 filesystem.</td> </tr> <tr> <td class="tg-yw4l">mkfifo</td> <td class="tg-yw4l">Used to create named pipes (FIFOs) with the given names.</td> </tr> <tr> <td class="tg-yw4l">mkfs</td> <td class="tg-yw4l">Used to build a Linux filesystem on a hard disk partition.</td> </tr> <tr> <td class="tg-yw4l">mkfs.ext3</td> <td class="tg-yw4l">Same as mke2fs, create an ext3 Linux filesystem.</td> </tr> <tr> <td class="tg-yw4l">mkisofs</td> <td class="tg-yw4l">Used to create an ISO9660/JOLIET/HFS hybrid filesystem.</td> </tr> <tr> <td class="tg-yw4l">mklost+found</td> <td class="tg-yw4l">Create a lost+found directory on a mounted ext2 filesystem.</td> </tr> <tr> <td class="tg-yw4l">mkmanifest</td> <td class="tg-yw4l">Makes alist of file names and their DOS 8.3 equivalent.</td> </tr> <tr> <td class="tg-yw4l">mknod</td> <td class="tg-yw4l">Create a FIFO, block (buffered) special file, character (unbuffered) special file with the specified name.</td> </tr> <tr> <td class="tg-yw4l">mkraid</td> <td class="tg-yw4l">Used to setup RAID device arrays.</td> </tr> <tr> <td class="tg-yw4l">mkswap</td> <td class="tg-yw4l">Set up a Linux swap area.</td> </tr> <tr> <td class="tg-yw4l">mktemp</td> <td class="tg-yw4l">Create a temporary file or directory.</td> </tr> <tr> <td class="tg-yw4l">mlabel</td> <td class="tg-yw4l">Make an MD-DOS volume label.</td> </tr> <tr> <td class="tg-yw4l">mmd</td> <td class="tg-yw4l">Make an MS-DOS subdirectory.</td> </tr> <tr> <td class="tg-yw4l">mmount</td> <td class="tg-yw4l">Mount an MS-DOS disk.</td> </tr> <tr> <td class="tg-yw4l">mmove</td> <td class="tg-yw4l">Move or rename an MS-DOS file or subdirectory.</td> </tr> <tr> <td class="tg-yw4l">mmv</td> <td class="tg-yw4l">Mass move and rename files.</td> </tr> <tr> <td class="tg-yw4l">modinfo</td> <td class="tg-yw4l">Show information about a Linux kernel module.</td> </tr> <tr> <td class="tg-yw4l">modprobe</td> <td class="tg-yw4l">Add or remove modules from the Linux kernel.</td> </tr> <tr> <td class="tg-yw4l">more</td> <td class="tg-yw4l">Display content of a file page-by-page.</td> </tr> <tr> <td class="tg-yw4l">most</td> <td class="tg-yw4l">Browse or page through a text file.</td> </tr> <tr> <td class="tg-yw4l">mount</td> <td class="tg-yw4l">Mount a filesystem.</td> </tr> <tr> <td class="tg-yw4l">mountd</td> <td class="tg-yw4l">NFS mount daemon.</td> </tr> <tr> <td class="tg-yw4l">mpartition</td> <td class="tg-yw4l">Used to report processor related statistics.</td> </tr> <tr> <td class="tg-yw4l">mpstat</td> <td class="tg-yw4l">Partition an MS-DOS disk.</td> </tr> <tr> <td class="tg-yw4l">mpg123</td> <td class="tg-yw4l">Command-line mp3 player.</td> </tr> <tr> <td class="tg-yw4l">mpg321</td> <td class="tg-yw4l">Similar to mpg123.</td> </tr> <tr> <td class="tg-yw4l">mrd</td> <td class="tg-yw4l">Remove an MS-DOS subdirectory.</td> </tr> <tr> <td class="tg-yw4l">mren</td> <td class="tg-yw4l">Rename an existing MS-DOS file.</td> </tr> <tr> <td class="tg-yw4l">mshowfat</td> <td class="tg-yw4l">Show FTA clusters allocated to a file.</td> </tr> <tr> <td class="tg-yw4l">mt</td> <td class="tg-yw4l">Control magnetic tape drive operation.</td> </tr> <tr> <td class="tg-yw4l">mtools</td> <td class="tg-yw4l">Utilities to access MS-DOS disks.</td> </tr> <tr> <td class="tg-yw4l">mtoolstest</td> <td class="tg-yw4l">Tests and displays the mtools configuration files.</td> </tr> <tr> <td class="tg-yw4l">mtr</td> <td class="tg-yw4l">A network diagnostic tool.</td> </tr> <tr> <td class="tg-yw4l">mtype</td> <td class="tg-yw4l">Display contents of an MS-DOS file.</td> </tr> <tr> <td class="tg-yw4l">mv</td> <td class="tg-yw4l">Move/rename files or directories.</td> </tr> <tr> <td class="tg-yw4l">mzip</td> <td class="tg-yw4l">Change protection mode and eject disk on Zip/Jaz drive.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> N</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">named</td> <td class="tg-yw4l">Internet domain name server.</td> </tr> <tr> <td class="tg-yw4l">namei</td> <td class="tg-yw4l">Follow a pathname until a terminal point is found.</td> </tr> <tr> <td class="tg-yw4l">nameif</td> <td class="tg-yw4l">Name network interfaces based on MAC addresses.</td> </tr> <tr> <td class="tg-yw4l">nc</td> <td class="tg-yw4l">Netcat utility. Arbitrary TCP and UDP connections and listens.</td> </tr> <tr> <td class="tg-yw4l">netstat</td> <td class="tg-yw4l">Show network information.</td> </tr> <tr> <td class="tg-yw4l">newaliases</td> <td class="tg-yw4l">Rebuilds mail alias database.</td> </tr> <tr> <td class="tg-yw4l">newgrp</td> <td class="tg-yw4l">Log-in to a new group.</td> </tr> <tr> <td class="tg-yw4l">newusers</td> <td class="tg-yw4l">Update/create new users in batch.</td> </tr> <tr> <td class="tg-yw4l">nfsd</td> <td class="tg-yw4l">Special filesystem for controlling Linux NFS server.</td> </tr> <tr> <td class="tg-yw4l">nfsstat</td> <td class="tg-yw4l">List NFS statistics.</td> </tr> <tr> <td class="tg-yw4l">nice</td> <td class="tg-yw4l">Run a program with modified scheduling priority.</td> </tr> <tr> <td class="tg-yw4l">nl</td> <td class="tg-yw4l">Show numbered line while displaying the contents of a file.</td> </tr> <tr> <td class="tg-yw4l">nm</td> <td class="tg-yw4l">List symbols from object files.</td> </tr> <tr> <td class="tg-yw4l">nohup</td> <td class="tg-yw4l">Run a command immune to hangups.</td> </tr> <tr> <td class="tg-yw4l">notify-send</td> <td class="tg-yw4l">A program to send desktop notifications.</td> </tr> <tr> <td class="tg-yw4l">nslookup</td> <td class="tg-yw4l">Used performs DNS queries. Read this article for more info.</td> </tr> <tr> <td class="tg-yw4l">nsupdate</td> <td class="tg-yw4l">Dynamic DNS update utility.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> O</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">objcopy</td> <td class="tg-yw4l">Copy and translate object files.</td> </tr> <tr> <td class="tg-yw4l">objdump</td> <td class="tg-yw4l">Display information from object files.</td> </tr> <tr> <td class="tg-yw4l">od</td> <td class="tg-yw4l">Dump files in octal and other formats.</td> </tr> <tr> <td class="tg-yw4l">op</td> <td class="tg-yw4l">Operator access, allows system administrators to grant users access to certain root operations that require superuser privileges.</td> </tr> <tr> <td class="tg-yw4l">open</td> <td class="tg-yw4l">Open a file using its default application.</td> </tr> <tr> <td class="tg-yw4l">openvt</td> <td class="tg-yw4l">Start a program on a new virtual terminal (VT).</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> P</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">passwd</td> <td class="tg-yw4l">Change user password.</td> </tr> <tr> <td class="tg-yw4l">paste</td> <td class="tg-yw4l">Merge lines of files. Write to standard output, TAB-separated lines consisting of sequentially corresponding lines from each file.</td> </tr> <tr> <td class="tg-yw4l">patch</td> <td class="tg-yw4l">Apply a patchfile (containing differences listing by diff program) to an original file.</td> </tr> <tr> <td class="tg-yw4l">pathchk</td> <td class="tg-yw4l">Check if file names are valid or portable.</td> </tr> <tr> <td class="tg-yw4l">perl</td> <td class="tg-yw4l">Perl 5 language interpreter.</td> </tr> <tr> <td class="tg-yw4l">pgrep</td> <td class="tg-yw4l">List process IDs matching the specified criteria among all the running processes.</td> </tr> <tr> <td class="tg-yw4l">pidof</td> <td class="tg-yw4l">Find process ID of a running program.</td> </tr> <tr> <td class="tg-yw4l">ping</td> <td class="tg-yw4l">Send ICMP ECHO_REQUEST to network hosts.</td> </tr> <tr> <td class="tg-yw4l">pinky</td> <td class="tg-yw4l">Lightweight finger.</td> </tr> <tr> <td class="tg-yw4l">pkill</td> <td class="tg-yw4l">Send kill signal to processes based on name and other attributes.</td> </tr> <tr> <td class="tg-yw4l">pmap</td> <td class="tg-yw4l">Report memory map of a process.</td> </tr> <tr> <td class="tg-yw4l">popd</td> <td class="tg-yw4l">Removes directory on the head of the directory stack and takes you to the new directory on the head.</td> </tr> <tr> <td class="tg-yw4l">portmap</td> <td class="tg-yw4l">Converts RPC program numbers to IP port numbers.</td> </tr> <tr> <td class="tg-yw4l">poweroff</td> <td class="tg-yw4l">Shuts down the machine.</td> </tr> <tr> <td class="tg-yw4l">pppd</td> <td class="tg-yw4l">Point-to-point protocol daemon.</td> </tr> <tr> <td class="tg-yw4l">pr</td> <td class="tg-yw4l">Convert (column or paginate) text files for printing.</td> </tr> <tr> <td class="tg-yw4l">praliases</td> <td class="tg-yw4l">Prints the current system mail aliases.</td> </tr> <tr> <td class="tg-yw4l">printcap</td> <td class="tg-yw4l">Printer capability database.</td> </tr> <tr> <td class="tg-yw4l">printenv</td> <td class="tg-yw4l">Show values of all or specified environment variables.</td> </tr> <tr> <td class="tg-yw4l">printf</td> <td class="tg-yw4l">Show arguments formatted according to a specified format.</td> </tr> <tr> <td class="tg-yw4l">ps</td> <td class="tg-yw4l">Report a snapshot of the current processes.</td> </tr> <tr> <td class="tg-yw4l">ptx</td> <td class="tg-yw4l">Produce a permuted index of file contents.</td> </tr> <tr> <td class="tg-yw4l">pushd</td> <td class="tg-yw4l">Appends a given directory name to the head of the stack and then cd to the given directory.</td> </tr> <tr> <td class="tg-yw4l">pv</td> <td class="tg-yw4l">Monitor progress of data through a pipe.</td> </tr> <tr> <td class="tg-yw4l">pwck</td> <td class="tg-yw4l">Verify integrity of password files.</td> </tr> <tr> <td class="tg-yw4l">pwconv</td> <td class="tg-yw4l">Creates shadow from passwd and an optionally existing shadow.</td> </tr> <tr> <td class="tg-yw4l">pwd</td> <td class="tg-yw4l">Show current directory.</td> </tr> <tr> <td class="tg-yw4l">python</td> <td class="tg-yw4l">Computer programming language often used to build websites and software, automate tasks, and conduct data analysis.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> Q</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">quota</td> <td class="tg-yw4l">Shows disk usage, and space limits for a user or group. Without arguments, only shows user quotas.</td> </tr> <tr> <td class="tg-yw4l">quotacheck</td> <td class="tg-yw4l">Used to scan a file system for disk usage.</td> </tr> <tr> <td class="tg-yw4l">quotactl</td> <td class="tg-yw4l">Make changes to disk quotas.</td> </tr> <tr> <td class="tg-yw4l">quotaoff</td> <td class="tg-yw4l">Enable enforcement of filesystem quotas.</td> </tr> <tr> <td class="tg-yw4l">quotaon</td> <td class="tg-yw4l">Disable enforcement of filesystem quotas.</td> </tr> <tr> <td class="tg-yw4l">quotastats</td> <td class="tg-yw4l">Shows the report of quota system statistics gathered from the kernel.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> R</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">raidstart</td> <td class="tg-yw4l">Start/stop RAID devices.</td> </tr> <tr> <td class="tg-yw4l">ram</td> <td class="tg-yw4l">RAM disk device used to access the RAM disk in raw mode.</td> </tr> <tr> <td class="tg-yw4l">ramsize</td> <td class="tg-yw4l">Show usage information for the RAM disk.</td> </tr> <tr> <td class="tg-yw4l">ranlib</td> <td class="tg-yw4l">Generate index to the contents of an archive and store it in the archive.</td> </tr> <tr> <td class="tg-yw4l">rar</td> <td class="tg-yw4l">Create and manage RAR file in Linux.</td> </tr> <tr> <td class="tg-yw4l">rarpd</td> <td class="tg-yw4l">Respond to Reverse Address Resolution Protocol (RARP) requests.</td> </tr> <tr> <td class="tg-yw4l">rcp</td> <td class="tg-yw4l">Remote copy command to copy files between remote computers.</td> </tr> <tr> <td class="tg-yw4l">rdate</td> <td class="tg-yw4l">Set system date and time by fetching information from a remote machine.</td> </tr> <tr> <td class="tg-yw4l">rdev</td> <td class="tg-yw4l">Set or query RAM disk size, image root device, or video mode.</td> </tr> <tr> <td class="tg-yw4l">rdist</td> <td class="tg-yw4l">Remote file distribution client, maintains identical file copies over multiple hosts.</td> </tr> <tr> <td class="tg-yw4l">rdistd</td> <td class="tg-yw4l">Start the rdist server.</td> </tr> <tr> <td class="tg-yw4l">read</td> <td class="tg-yw4l">Read from a file descriptor.</td> </tr> <tr> <td class="tg-yw4l">readarray</td> <td class="tg-yw4l">Read lines from a file into an array variable.</td> </tr> <tr> <td class="tg-yw4l">readcd</td> <td class="tg-yw4l">Read/write compact disks.</td> </tr> <tr> <td class="tg-yw4l">readelf</td> <td class="tg-yw4l">Shows information about ELF (Executable and Linkable format) files.</td> </tr> <tr> <td class="tg-yw4l">readlink</td> <td class="tg-yw4l">Display value of a symbolic link or canonical file name.</td> </tr> <tr> <td class="tg-yw4l">readonly</td> <td class="tg-yw4l">Mark functions and variables as read-only.</td> </tr> <tr> <td class="tg-yw4l">reboot</td> <td class="tg-yw4l">Restart the machine.</td> </tr> <tr> <td class="tg-yw4l">reject</td> <td class="tg-yw4l">Accept/reject print jobs sent to a specified destination.</td> </tr> <tr> <td class="tg-yw4l">remsync</td> <td class="tg-yw4l">Synchronize remote files over email.</td> </tr> <tr> <td class="tg-yw4l">rename</td> <td class="tg-yw4l">Rename one or more files.</td> </tr> <tr> <td class="tg-yw4l">renice</td> <td class="tg-yw4l">Change priority of active processes.</td> </tr> <tr> <td class="tg-yw4l">repquota</td> <td class="tg-yw4l">Report disk usage and quotas for a specified filesystem.</td> </tr> <tr> <td class="tg-yw4l">reset</td> <td class="tg-yw4l">Reinitialize the terminal.</td> </tr> <tr> <td class="tg-yw4l">resize2fs</td> <td class="tg-yw4l">Used to resize ext2/ext3/ext4 file systems.</td> </tr> <tr> <td class="tg-yw4l">restore</td> <td class="tg-yw4l">Restore files from a backup created using dump.</td> </tr> <tr> <td class="tg-yw4l">return</td> <td class="tg-yw4l">Exit a shell function.</td> </tr> <tr> <td class="tg-yw4l">rev</td> <td class="tg-yw4l">Show contents of a file, reversing the order of characters in every line.</td> </tr> <tr> <td class="tg-yw4l">rexec</td> <td class="tg-yw4l">Remote execution client for exec server.</td> </tr> <tr> <td class="tg-yw4l">rexecd</td> <td class="tg-yw4l">Remote execution server.</td> </tr> <tr> <td class="tg-yw4l">richtext</td> <td class="tg-yw4l">View “richtext” on an ACSII terminal.</td> </tr> <tr> <td class="tg-yw4l">rlogin</td> <td class="tg-yw4l">Used to connect a local host system with a remote host.</td> </tr> <tr> <td class="tg-yw4l">rlogind</td> <td class="tg-yw4l">Acts as the server for rlogin.It facilitates remote login, and authentication based on privileged port numbers from trusted hosts.</td> </tr> <tr> <td class="tg-yw4l">rm</td> <td class="tg-yw4l">Removes specified files and directories (not by default).</td> </tr> <tr> <td class="tg-yw4l">rmail</td> <td class="tg-yw4l">Handle remote mail received via uucp.</td> </tr> <tr> <td class="tg-yw4l">rmdir</td> <td class="tg-yw4l">Used to remove empty directories.</td> </tr> <tr> <td class="tg-yw4l">rmmod</td> <td class="tg-yw4l">A program to remove modules from Linux kernel.</td> </tr> <tr> <td class="tg-yw4l">rndc</td> <td class="tg-yw4l">Name server control utility. Send command to a BIND DNS server over a TCP connection.</td> </tr> <tr> <td class="tg-yw4l">rootflags</td> <td class="tg-yw4l">Show/set flags for the kernel image.</td> </tr> <tr> <td class="tg-yw4l">route</td> <td class="tg-yw4l">Show/change IP routing table.</td> </tr> <tr> <td class="tg-yw4l">routed</td> <td class="tg-yw4l">A daemon, invoked at boot time, to manage internet routing tables.</td> </tr> <tr> <td class="tg-yw4l">rpcgen</td> <td class="tg-yw4l">An RPC protocol compiler. Parse a file written in the RPC language.</td> </tr> <tr> <td class="tg-yw4l">rpcinfo</td> <td class="tg-yw4l">Shows RPC information. Makes an RPC call to an RPC server and reports the findings.</td> </tr> <tr> <td class="tg-yw4l">rpm</td> <td class="tg-yw4l">A package manager for Linux distributions. Originally developed for RedHat Linux.</td> </tr> <tr> <td class="tg-yw4l">rsh</td> <td class="tg-yw4l">Remote shell. Connects to a specified host and executes commands.</td> </tr> <tr> <td class="tg-yw4l">rshd</td> <td class="tg-yw4l">A daemon that acts as a server for rsh and rcp commands.</td> </tr> <tr> <td class="tg-yw4l">rsync</td> <td class="tg-yw4l">A versitile to for copying files remotely and locally.</td> </tr> <tr> <td class="tg-yw4l">runlevel</td> <td class="tg-yw4l">Shows previous and current SysV runlevel.</td> </tr> <tr> <td class="tg-yw4l">rup</td> <td class="tg-yw4l">Remote status display. Shows current system status for all or specified hosts on the local network.</td> </tr> <tr> <td class="tg-yw4l">ruptime</td> <td class="tg-yw4l">Shows uptime and login details of the machines on the local network.</td> </tr> <tr> <td class="tg-yw4l">rusers</td> <td class="tg-yw4l">Shows the list of the users logged-in to the host or on all machines on the local network.</td> </tr> <tr> <td class="tg-yw4l">rusersd</td> <td class="tg-yw4l">The rsuerd daemon acts as a server that responds to the queries from rsuers command.</td> </tr> <tr> <td class="tg-yw4l">rwall</td> <td class="tg-yw4l">Sends messages to all users on the local network.</td> </tr> <tr> <td class="tg-yw4l">rwho</td> <td class="tg-yw4l">Reports who is logged-in to the hosts on the local network.</td> </tr> <tr> <td class="tg-yw4l">rwhod</td> <td class="tg-yw4l">Acts as a server for rwho and ruptime commands.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> S</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">sane-find-scanner</td> <td class="tg-yw4l">Find SCSI and USB scanner and determine their device files.</td> </tr> <tr> <td class="tg-yw4l">sar</td> <td class="tg-yw4l">Used to monitor Linux system’s resources like CPU usage, Memory utilization, I/O devices consumption, etc..</td> </tr> <tr> <td class="tg-yw4l">scanadf</td> <td class="tg-yw4l">Retrieve multiple images from a scanner equipped with an automatic document feeder (ADF).</td> </tr> <tr> <td class="tg-yw4l">scanimage</td> <td class="tg-yw4l">Read images from image acquisition devices (scanner or camera) and display on standard output in PNM (Portable aNyMap) format.</td> </tr> <tr> <td class="tg-yw4l">scp</td> <td class="tg-yw4l">Copy files between hosts on a network securely using SSH.</td> </tr> <tr> <td class="tg-yw4l">screen</td> <td class="tg-yw4l">A window manager that enables multiple pseudo-terminals with the help of ANSI/VT100 terminal emulation.</td> </tr> <tr> <td class="tg-yw4l">script</td> <td class="tg-yw4l">Used to make a typescript of everything displayed on the screen during a terminal session.</td> </tr> <tr> <td class="tg-yw4l">scriptreplay</td> <td class="tg-yw4l">Used to replay a typescript/terminal_activity stored in the log file that was recorded by the script command.</td> </tr> <tr> <td class="tg-yw4l">sdiff</td> <td class="tg-yw4l">Shows two files side-by-side and highlights the differences.</td> </tr> <tr> <td class="tg-yw4l">sed</td> <td class="tg-yw4l">Stream editor for filtering and transforming text (from a file or a pipe input).</td> </tr> <tr> <td class="tg-yw4l">select</td> <td class="tg-yw4l">Synchronous I/O multiplexing.</td> </tr> <tr> <td class="tg-yw4l">sendmail</td> <td class="tg-yw4l">It’s a mail router or an MTA (Mail Transfer Agent). sendmail support can send a mail to one or more recipients using necessary protocols.</td> </tr> <tr> <td class="tg-yw4l">sensors</td> <td class="tg-yw4l">Shows the current readings of all sensor chips.</td> </tr> <tr> <td class="tg-yw4l">seq</td> <td class="tg-yw4l">Displays an incremental sequence of numbers from first to last.</td> </tr> <tr> <td class="tg-yw4l">service</td> <td class="tg-yw4l">This command is used to manage system services.</td> </tr> <tr> <td class="tg-yw4l">set</td> <td class="tg-yw4l">Used to manipulate shell variables and functions.</td> </tr> <tr> <td class="tg-yw4l">setfdprm</td> <td class="tg-yw4l">Sets floppy disk parameters as provided by the user.</td> </tr> <tr> <td class="tg-yw4l">setkeycodes</td> <td class="tg-yw4l">Load kernel scancode-to-keycode mapping table entries.</td> </tr> <tr> <td class="tg-yw4l">setleds</td> <td class="tg-yw4l">Show/change LED light settings of the keyboard.</td> </tr> <tr> <td class="tg-yw4l">setmetamode</td> <td class="tg-yw4l">Define keyboard meta key handling. Without arguments, shows current meta key mode.</td> </tr> <tr> <td class="tg-yw4l">setquota</td> <td class="tg-yw4l">Set disk quotas for users and groups.</td> </tr> <tr> <td class="tg-yw4l">setsid</td> <td class="tg-yw4l">Run a program in a new session.</td> </tr> <tr> <td class="tg-yw4l">setterm</td> <td class="tg-yw4l">Set terminal attributes.</td> </tr> <tr> <td class="tg-yw4l">sftp</td> <td class="tg-yw4l">Secure File Transfer program.</td> </tr> <tr> <td class="tg-yw4l">sh</td> <td class="tg-yw4l">Command interpreter (shell) utility.</td> </tr> <tr> <td class="tg-yw4l">sha1sum</td> <td class="tg-yw4l">Compute and check 160-bit SHA1 checksum to verify file integrity.</td> </tr> <tr> <td class="tg-yw4l">shift</td> <td class="tg-yw4l">Shift positional parameters.</td> </tr> <tr> <td class="tg-yw4l">shopt</td> <td class="tg-yw4l">Shell options.</td> </tr> <tr> <td class="tg-yw4l">showkey</td> <td class="tg-yw4l">Examines codes sent by the keyboard displays them in printable form.</td> </tr> <tr> <td class="tg-yw4l">showmount</td> <td class="tg-yw4l">Shows information about NFS server mount on the host.</td> </tr> <tr> <td class="tg-yw4l">shred</td> <td class="tg-yw4l">Overwrite a file to hide its content (optionally delete it), making it harder to recover it.</td> </tr> <tr> <td class="tg-yw4l">shutdown</td> <td class="tg-yw4l">Power-off the machine.</td> </tr> <tr> <td class="tg-yw4l">size</td> <td class="tg-yw4l">Lists section size and the total size of a specified file.</td> </tr> <tr> <td class="tg-yw4l">skill</td> <td class="tg-yw4l">Send a signal to processes.</td> </tr> <tr> <td class="tg-yw4l">slabtop</td> <td class="tg-yw4l">Show kernel slab cache information in real-time.</td> </tr> <tr> <td class="tg-yw4l">slattach</td> <td class="tg-yw4l">Attack a network interface to a serial line.</td> </tr> <tr> <td class="tg-yw4l">sleep</td> <td class="tg-yw4l">Suspend execution for a specified amount of time (in seconds).</td> </tr> <tr> <td class="tg-yw4l">slocate</td> <td class="tg-yw4l">Display matches by searching filename databases. Takes ownership and file permission into consideration.</td> </tr> <tr> <td class="tg-yw4l">snice</td> <td class="tg-yw4l">Reset priority for processes.</td> </tr> <tr> <td class="tg-yw4l">sort</td> <td class="tg-yw4l">Sort lines of text files.</td> </tr> <tr> <td class="tg-yw4l">source</td> <td class="tg-yw4l">Run commands from a specified file.</td> </tr> <tr> <td class="tg-yw4l">split</td> <td class="tg-yw4l">Split a file into pieces of fixed size.</td> </tr> <tr> <td class="tg-yw4l">ss</td> <td class="tg-yw4l">Display socket statistics, similar to netstat.</td> </tr> <tr> <td class="tg-yw4l">ssh</td> <td class="tg-yw4l">An SSH client for logging in to a remote machine. It provides encrypted communication between the hosts.</td> </tr> <tr> <td class="tg-yw4l">ssh-add</td> <td class="tg-yw4l">Adds private key identities to the authentication agent.</td> </tr> <tr> <td class="tg-yw4l">ssh-agent</td> <td class="tg-yw4l">It holds private keys used for public key authentication.</td> </tr> <tr> <td class="tg-yw4l">ssh-keygen</td> <td class="tg-yw4l">It generates, manages, converts authentication keys for ssh.</td> </tr> <tr> <td class="tg-yw4l">ssh-keyscan</td> <td class="tg-yw4l">Gather ssh public keys.</td> </tr> <tr> <td class="tg-yw4l">sshd</td> <td class="tg-yw4l">Server for the ssh program.</td> </tr> <tr> <td class="tg-yw4l">stat</td> <td class="tg-yw4l">Display file or filesystem status.</td> </tr> <tr> <td class="tg-yw4l">statd</td> <td class="tg-yw4l">A daemon that listens for reboot notifications from other hosts, and manages the list of hosts to be notified when the local system reboots.</td> </tr> <tr> <td class="tg-yw4l">strace</td> <td class="tg-yw4l">Trace system calls and signals.</td> </tr> <tr> <td class="tg-yw4l">strfile</td> <td class="tg-yw4l">Create a random access file for storing strings.</td> </tr> <tr> <td class="tg-yw4l">strings</td> <td class="tg-yw4l">Search a specified file and prints any printable strings with at least four characters and followed by an unprintable character.</td> </tr> <tr> <td class="tg-yw4l">strip</td> <td class="tg-yw4l">Discard symbols from object files.</td> </tr> <tr> <td class="tg-yw4l">stty</td> <td class="tg-yw4l">Change and print terminal line settings.</td> </tr> <tr> <td class="tg-yw4l">su</td> <td class="tg-yw4l">Change user ID or become superuser.</td> </tr> <tr> <td class="tg-yw4l">sudo</td> <td class="tg-yw4l">Execute a command as superuser.</td> </tr> <tr> <td class="tg-yw4l">sum</td> <td class="tg-yw4l">Checksum and count the block in a file.</td> </tr> <tr> <td class="tg-yw4l">suspend</td> <td class="tg-yw4l">Suspend the execution of the current shell.</td> </tr> <tr> <td class="tg-yw4l">swapoff</td> <td class="tg-yw4l">Disable devices for paging and swapping.</td> </tr> <tr> <td class="tg-yw4l">swapon</td> <td class="tg-yw4l">Enable devices for paging and swapping.</td> </tr> <tr> <td class="tg-yw4l">symlink</td> <td class="tg-yw4l">Create a symbolic link to a file.</td> </tr> <tr> <td class="tg-yw4l">sync</td> <td class="tg-yw4l">Synchronize cached writes to persistent storage.</td> </tr> <tr> <td class="tg-yw4l">sysctl</td> <td class="tg-yw4l">Configure kernel parameters at runtime.</td> </tr> <tr> <td class="tg-yw4l">sysklogd</td> <td class="tg-yw4l">Linux system logging utilities. Provides syslogd and klogd functionalities.</td> </tr> <tr> <td class="tg-yw4l">syslogd</td> <td class="tg-yw4l">Read and log system messages to the system console and log files.</td> </tr> <tr> <td class="tg-yw4l">systemctl</td> <td class="tg-yw4l">This command can be used to start, stop, and check the status of system services.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> T</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">tac</td> <td class="tg-yw4l">Concatenate and print files in reverse order. Opposite of cat command.</td> </tr> <tr> <td class="tg-yw4l">tail</td> <td class="tg-yw4l">Show the last 10 lines of each specified file(s).</td> </tr> <tr> <td class="tg-yw4l">tailf</td> <td class="tg-yw4l">Follow the growth of a log file. (Deprecated command)</td> </tr> <tr> <td class="tg-yw4l">talk</td> <td class="tg-yw4l">A two-way screen-oriented communication utility that allows two user to exchange messages simultaneously.</td> </tr> <tr> <td class="tg-yw4l">talkd</td> <td class="tg-yw4l">A remote user communication server for <em>talk</em>.</td> </tr> <tr> <td class="tg-yw4l">tar</td> <td class="tg-yw4l">GNU version of the tar archiving utility. Used to store and extract multiple files from a single archive.</td> </tr> <tr> <td class="tg-yw4l">taskset</td> <td class="tg-yw4l">Set/retrieve a process’s CPU affinity.</td> </tr> <tr> <td class="tg-yw4l">tcpd</td> <td class="tg-yw4l">Access control utility for internet services.</td> </tr> <tr> <td class="tg-yw4l">tcpdump</td> <td class="tg-yw4l">Dump traffic on network. Displays a description of the contents of packets on a network interface that match the boolean expression.</td> </tr> <tr> <td class="tg-yw4l">tcpslice</td> <td class="tg-yw4l">Extract pieces of tcpdump files or merge them.</td> </tr> <tr> <td class="tg-yw4l">tee</td> <td class="tg-yw4l">Read from standard input and write to standard output and files.</td> </tr> <tr> <td class="tg-yw4l">telinit</td> <td class="tg-yw4l">Change SysV runlevel.</td> </tr> <tr> <td class="tg-yw4l">telnet</td> <td class="tg-yw4l">Telnet protocol user interface. Used to interact with another host using telnet.</td> </tr> <tr> <td class="tg-yw4l">telnetd</td> <td class="tg-yw4l">A server for the telnet protocol.</td> </tr> <tr> <td class="tg-yw4l">test</td> <td class="tg-yw4l">Check file type and compare values.</td> </tr> <tr> <td class="tg-yw4l">tftp</td> <td class="tg-yw4l">User interface to the internet TFTP (Trivial File Transfer Protocol).</td> </tr> <tr> <td class="tg-yw4l">tftpd</td> <td class="tg-yw4l">TFTP server.</td> </tr> <tr> <td class="tg-yw4l">time</td> <td class="tg-yw4l">Run programs and summarize system resource usage.</td> </tr> <tr> <td class="tg-yw4l">timeout</td> <td class="tg-yw4l">Execute a command with a time limit.</td> </tr> <tr> <td class="tg-yw4l">times</td> <td class="tg-yw4l">Shows accumulated user and system times for the shell and it’s child processes.</td> </tr> <tr> <td class="tg-yw4l">tload</td> <td class="tg-yw4l">Shows a graph of the current system load average to the specified tty.</td> </tr> <tr> <td class="tg-yw4l">tmpwatch</td> <td class="tg-yw4l">Recursively remove files and directories which haven’t been accessed for the specified period of time.</td> </tr> <tr> <td class="tg-yw4l">top</td> <td class="tg-yw4l">Displays real-time view of processes running on the system.</td> </tr> <tr> <td class="tg-yw4l">touch</td> <td class="tg-yw4l">Change file access and modification times.</td> </tr> <tr> <td class="tg-yw4l">tput</td> <td class="tg-yw4l">Modify terminal-dependent capabilities, color, etc.</td> </tr> <tr> <td class="tg-yw4l">tr</td> <td class="tg-yw4l">Translate, squeeze, or delete characters from standard input and display on standard output.</td> </tr> <tr> <td class="tg-yw4l">tracepath</td> <td class="tg-yw4l">Traces path to a network host discovering MTU (Maximum Transmission Unit) along this path.</td> </tr> <tr> <td class="tg-yw4l">traceroute</td> <td class="tg-yw4l">Traces the route taken by the packets to reach the network host.</td> </tr> <tr> <td class="tg-yw4l">trap</td> <td class="tg-yw4l">Trap function responds to hardware signals. It defines and creates handlers to run when the shell receives signals.</td> </tr> <tr> <td class="tg-yw4l">tree</td> <td class="tg-yw4l">A recursive directory listing program that produces a depth-indented listing of files.</td> </tr> <tr> <td class="tg-yw4l">troff</td> <td class="tg-yw4l">The troff processor of the groff text formatting system.</td> </tr> <tr> <td class="tg-yw4l">TRUE</td> <td class="tg-yw4l">Exit with a status code indicating success.</td> </tr> <tr> <td class="tg-yw4l">tset</td> <td class="tg-yw4l">Initialize terminal.</td> </tr> <tr> <td class="tg-yw4l">tsort</td> <td class="tg-yw4l">Perform topological sort.</td> </tr> <tr> <td class="tg-yw4l">tty</td> <td class="tg-yw4l">Display the filename of the terminal connected to standard input.</td> </tr> <tr> <td class="tg-yw4l">tune2fs</td> <td class="tg-yw4l">Adjust tuneable filesystem parameters on ext2/ext3/ext4 filesystems.</td> </tr> <tr> <td class="tg-yw4l">tunelp</td> <td class="tg-yw4l">Set various parameters for the line printer devices.</td> </tr> <tr> <td class="tg-yw4l">type</td> <td class="tg-yw4l">Write a description for a command type.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> U</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">ul</td> <td class="tg-yw4l">Underline text.</td> </tr> <tr> <td class="tg-yw4l">ulimit</td> <td class="tg-yw4l">Get and set user limits for the calling process.</td> </tr> <tr> <td class="tg-yw4l">umask</td> <td class="tg-yw4l">Set file mode creation mask.</td> </tr> <tr> <td class="tg-yw4l">umount</td> <td class="tg-yw4l">Unmount specified file systems.</td> </tr> <tr> <td class="tg-yw4l">unalias</td> <td class="tg-yw4l">Remove alias definitions for specified alias names.</td> </tr> <tr> <td class="tg-yw4l">uname</td> <td class="tg-yw4l">Show system information.</td> </tr> <tr> <td class="tg-yw4l">uncompress</td> <td class="tg-yw4l">Uncompress the files compressed with the compress command.</td> </tr> <tr> <td class="tg-yw4l">unexpand</td> <td class="tg-yw4l">Convert spaces to tabs for a specified file.</td> </tr> <tr> <td class="tg-yw4l">unicode_start</td> <td class="tg-yw4l">Put keyboard and console in Unicode mode.</td> </tr> <tr> <td class="tg-yw4l">unicode_stop</td> <td class="tg-yw4l">Revert keyboard and console from Unicode mode.</td> </tr> <tr> <td class="tg-yw4l">uniq</td> <td class="tg-yw4l">Report or omit repeating lines.</td> </tr> <tr> <td class="tg-yw4l">units</td> <td class="tg-yw4l">Convert units from one scalar to another.</td> </tr> <tr> <td class="tg-yw4l">unix2dos</td> <td class="tg-yw4l">Converts a Unix text file to DOS format.</td> </tr> <tr> <td class="tg-yw4l">unrar</td> <td class="tg-yw4l">Extract files from a RAR archive.</td> </tr> <tr> <td class="tg-yw4l">unset</td> <td class="tg-yw4l">Remove variable or function names.</td> </tr> <tr> <td class="tg-yw4l">unshar</td> <td class="tg-yw4l">Unpack shell archive scripts.</td> </tr> <tr> <td class="tg-yw4l">until</td> <td class="tg-yw4l">Execute command until a given condition is true.</td> </tr> <tr> <td class="tg-yw4l">uptime</td> <td class="tg-yw4l">Tell how long the system has been running.</td> </tr> <tr> <td class="tg-yw4l">useradd</td> <td class="tg-yw4l">Create a new user or update default user information.</td> </tr> <tr> <td class="tg-yw4l">userdel</td> <td class="tg-yw4l">Delete a user account and related files.</td> </tr> <tr> <td class="tg-yw4l">usermod</td> <td class="tg-yw4l">Modify a user account.</td> </tr> <tr> <td class="tg-yw4l">username</td> <td class="tg-yw4l">It provides a set of commands to fetch username and its configurations from the Linux host.</td> </tr> <tr> <td class="tg-yw4l">users</td> <td class="tg-yw4l">Show the list of active users on the machine.</td> </tr> <tr> <td class="tg-yw4l">usleep</td> <td class="tg-yw4l">Suspend execution for microsecond intervals.</td> </tr> <tr> <td class="tg-yw4l">uudecode</td> <td class="tg-yw4l">Decode a binary file.</td> </tr> <tr> <td class="tg-yw4l">uuencode</td> <td class="tg-yw4l">Encode a binary file.</td> </tr> <tr> <td class="tg-yw4l">uuidgen</td> <td class="tg-yw4l">Created a new UUID (Universally Unique Identifier) table.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> V</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">vdir</td> <td class="tg-yw4l">Same as <strong>ls -l -b</strong>. Verbosely list directory contents.</td> </tr> <tr> <td class="tg-yw4l">vi</td> <td class="tg-yw4l">A text editor utility.</td> </tr> <tr> <td class="tg-yw4l">vidmode</td> <td class="tg-yw4l">Set the video mode for a kernel image. Displays current mode value without arguments. Alternative: rdev -v</td> </tr> <tr> <td class="tg-yw4l">vim</td> <td class="tg-yw4l">Vi Improved, a text-based editor which is a successor to vi.</td> </tr> <tr> <td class="tg-yw4l">vmstat</td> <td class="tg-yw4l">Shows information about processes, memory, paging, block IO, traps, disks, and CPU activity.</td> </tr> <tr> <td class="tg-yw4l">vnstat</td> <td class="tg-yw4l">Used by system administrators in order to monitor network parameters such as bandwidth consumption or maybe some traffic flowing in or out.</td> </tr> <tr> <td class="tg-yw4l">volname</td> <td class="tg-yw4l">Returns volume name for a device formatted with an ISO-9660 filesystem. For example, CD-ROM.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> W</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">w</td> <td class="tg-yw4l">Show who is logged-on and what they’re doing.</td> </tr> <tr> <td class="tg-yw4l">wait</td> <td class="tg-yw4l">Waits for a specified process ID(s) to terminate and returns the termination status.</td> </tr> <tr> <td class="tg-yw4l">wall</td> <td class="tg-yw4l">Display a message on the terminals all the users who are currently logged-in.</td> </tr> <tr> <td class="tg-yw4l">warnquota</td> <td class="tg-yw4l">Send mail to the users who’ve exceeded their disk quota soft limit.</td> </tr> <tr> <td class="tg-yw4l">watch</td> <td class="tg-yw4l">Runs commands repeatedly until interrupted and shows their output and errors.</td> </tr> <tr> <td class="tg-yw4l">wc</td> <td class="tg-yw4l">Print newline, word, and byte count for each of the specified files.</td> </tr> <tr> <td class="tg-yw4l">wget</td> <td class="tg-yw4l">A non-interactive file download utility.</td> </tr> <tr> <td class="tg-yw4l">whatis</td> <td class="tg-yw4l">Display one line manual page descriptions.</td> </tr> <tr> <td class="tg-yw4l">whereis</td> <td class="tg-yw4l">Locate the binary, source, and man page files for a command.</td> </tr> <tr> <td class="tg-yw4l">which</td> <td class="tg-yw4l">For a given command, lists the pathnames for the files which would be executed when the command runs.</td> </tr> <tr> <td class="tg-yw4l">while</td> <td class="tg-yw4l">Conditionally execute commands (while loop).</td> </tr> <tr> <td class="tg-yw4l">who</td> <td class="tg-yw4l">Shows who is logged on.</td> </tr> <tr> <td class="tg-yw4l">whoami</td> <td class="tg-yw4l">Displays the username tied to the current effective user ID.</td> </tr> <tr> <td class="tg-yw4l">whois</td> <td class="tg-yw4l">Looks for an object in a WHOIS database</td> </tr> <tr> <td class="tg-yw4l">write</td> <td class="tg-yw4l">Display a message on other user’s terminal.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> X</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">xargs</td> <td class="tg-yw4l">Runs a command using initial arguments and then reads remaining arguments from standard input.</td> </tr> <tr> <td class="tg-yw4l">xdg-open</td> <td class="tg-yw4l">Used to open a file or URL in an application preferred by the user.</td> </tr> <tr> <td class="tg-yw4l">xinetd</td> <td class="tg-yw4l">Extended internet services daemon. Works similar to inetd.</td> </tr> <tr> <td class="tg-yw4l">xz</td> <td class="tg-yw4l">Compress/ Decompress .xz and .lzma files.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> Y</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">yacc</td> <td class="tg-yw4l">Yet Another Compiler Compiler, a GNU Project parser generator.</td> </tr> <tr> <td class="tg-yw4l">yes</td> <td class="tg-yw4l">Repeatedly output a line with a specified string(s) until killed.</td> </tr> <tr> <td class="tg-yw4l">ypbind</td> <td class="tg-yw4l">A daemon that helps client processes to connect to an NIS server.</td> </tr> <tr> <td class="tg-yw4l">ypcat</td> <td class="tg-yw4l">Shows the NIS map (or database) for the specified MapName parameter.</td> </tr> <tr> <td class="tg-yw4l">ypinit</td> <td class="tg-yw4l">Sets up NIS maps on an NIS server.</td> </tr> <tr> <td class="tg-yw4l">ypmatch</td> <td class="tg-yw4l">Shows values for specified keys from an NIS map.</td> </tr> <tr> <td class="tg-yw4l">yppasswd</td> <td class="tg-yw4l">Change NIS login password.</td> </tr> <tr> <td class="tg-yw4l">yppasswdd</td> <td class="tg-yw4l">Acts as a server for the yppasswd command. Receives and executes requests.</td> </tr> <tr> <td class="tg-yw4l">yppoll</td> <td class="tg-yw4l">Shows the ID number or version of NIS map currently used on the NIS server.</td> </tr> <tr> <td class="tg-yw4l">yppush</td> <td class="tg-yw4l">Forces slave NIS servers to copy updated NIS maps.</td> </tr> <tr> <td class="tg-yw4l">ypserv</td> <td class="tg-yw4l">A daemon activated at system startup. It looks for information in local NIS maps.</td> </tr> <tr> <td class="tg-yw4l">ypset</td> <td class="tg-yw4l">Point a client (running ypbind) to a specific server (running ypserv).</td> </tr> <tr> <td class="tg-yw4l">yptest</td> <td class="tg-yw4l">Calls various functions to check the configuration of NIS services.</td> </tr> <tr> <td class="tg-yw4l">ypwhich</td> <td class="tg-yw4l">Shows the hostname for NIS server or master server for a given map.</td> </tr> <tr> <td class="tg-yw4l">ypxfr</td> <td class="tg-yw4l">Transfers NIS server map from server to a local host.</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

<h2> Z</h2> <table class="tg"> <tbody> <tr> <th class="tg-yw4l">Command</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">zcat</td> <td class="tg-yw4l">Used to compress/uncompress files. Similar to gzip</td> </tr> <tr> <td class="tg-yw4l">zcmp</td> <td class="tg-yw4l">Compare compressed files.</td> </tr> <tr> <td class="tg-yw4l">zdiff</td> <td class="tg-yw4l">Compare compressed files line by line.</td> </tr> <tr> <td class="tg-yw4l">zdump</td> <td class="tg-yw4l">Displays time for the timezone mentioned.</td> </tr> <tr> <td class="tg-yw4l">zforce</td> <td class="tg-yw4l">Adds .gz extension to all gzipped files.</td> </tr> <tr> <td class="tg-yw4l">zgrep</td> <td class="tg-yw4l">Performs grep on compressed files.</td> </tr> <tr> <td class="tg-yw4l">zic</td> <td class="tg-yw4l">Creates time conversion information files using the specified input files.</td> </tr> <tr> <td class="tg-yw4l">zip</td> <td class="tg-yw4l">A file compression and packaging utility.</td> </tr> <tr> <td class="tg-yw4l">zless</td> <td class="tg-yw4l">Displays information of a compressed file (using less command) on the terminal one screen at a time.</td> </tr> <tr> <td class="tg-yw4l">zmore</td> <td class="tg-yw4l">Displays output of a compressed file (using more command) on the terminal one page at a time.</td> </tr> <tr> <td class="tg-yw4l">znew</td> <td class="tg-yw4l">Recompress .z files to .gz. files.</td> </tr> </tbody> </table> <p align="right"> Credits: <a href="https://fossbytes.com"><b>fossbytes</b></a> & <a href="https://www.geeksforgeeks.org"><b>geeksforgeeks</b></a></p>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ


</p> </details> <details><summary><b>Quick cheatsheet <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Memo.webp" alt="Memo" width="25" height="25" /></b></summary> <p>

Note 💡<br>

Contents

Command Information

man chmod                   # Display page manual of a command
man -f|--whatis chmod       # Display short description about a command
man -k|--apropos permission # Display all related commands from a specific keyword

chmod --help                # Display usage options of a command

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Command History

history                                # View all previous commands
history | grep foo                     # View the commands using a specific word
history | grep -E|--extended-regexp -i|--ignore-case 'foo1|foo2|foo3' # View the commands using more than 1 specific word(case sensitive)
history | head -n|--lines 3            # View the first 3 executed commands
history 3                              # View the last 3 executed commands
history -d 99                          # Clear a command from a specific line 
history -c                             # Clears all history commands
!!                                     # Run the last command executed

touch foo.sh                           # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<┐
chmod +x !$                            # !$ is the last argument of the last command i.e. foo.sh <<<<┘

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Navigating Directories

pwd                       # Print current directory path
ls                        # List directories
ls -a|--all               # List directories including hidden
ls -l                     # List directories in long form
ls -l -h|--human-readable # List directories in long form with human readable sizes
ls -t                     # List directories by modification time, newest first
stat foo.txt              # List size, created and modified timestamps for a file
stat foo                  # List size, created and modified timestamps for a directory
tree                      # List directory and file tree
tree -a                   # List directory and file tree including hidden
tree -d                   # List directory tree

cd foo                    # Go to foo sub-directory
cd                        # Go to home directory
cd ~                      # Go to home directory
cd -                      # Go to the previously chosen directory
pushd foo                 # Go to foo sub-directory and add previous directory to stack
popd                      # Go back to directory in stack saved by `pushd`

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Creating Directories

mkdir foo                        # Create a directory
mkdir foo bar                    # Create multiple directories
mkdir -p|--parents foo/bar       # Create nested directory
mkdir -p|--parents {foo,bar}/baz # Create multiple nested directories

mktemp -d|--directory            # Create a temporary directory

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Moving Directories

cp -R|--recursive foo bar                              # Copy directory
mv foo bar                                             # Move directory

rsync -z|--compress -v|--verbose /foo /bar             # Copy directory, overwrites destination
rsync --ignore-existing -a|--archive -z|--compress -v|--verbose /foo /bar # Copy directory, without overwriting destination
rsync -avz /foo username@hostname:/bar                 # Copy local directory to remote directory
rsync -avz username@hostname:/foo /bar                 # Copy remote directory to local directory

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Deleting Directories

rmdir foo                        # Delete non-empty directory
rm -r|--recursive foo            # Delete directory including contents
rm -r|--recursive -f|--force foo # Delete directory including contents, ignore nonexistent files and never prompt

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Creating Files

touch foo.txt          # Create file or update existing files modified timestamp
touch foo.txt bar.txt  # Create multiple files
touch {foo,bar}.txt    # Create multiple files
touch test{1..3}       # Create test1, test2 and test3 files
touch test{a..c}       # Create testa, testb and testc files

mktemp                 # Create a temporary file

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Standard Output, Standard Error and Standard Input

echo "foo" > bar.txt       # Overwrite file with content
echo "foo" >> bar.txt      # Append to file with content

ls exists 1> stdout.txt    # Redirect the standard output to a file
ls noexist 2> stderror.txt # Redirect the standard error output to a file
ls > out.txt 2>&1          # Redirect standard output and error to a file
ls > /dev/null             # Discard standard output and error

read foo                   # Read from standard input and write to the variable foo

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Moving Files

cp foo.txt bar.txt                                 # Copy file
mv foo.txt bar.txt                                 # Move file

rsync -z|--compress -v|--verbose /foo.txt /bar     # Copy file quickly if not changed
rsync -z|--compress -v|--verbose /foo.txt /bar.txt # Copy and rename file quickly if not changed

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Deleting Files

rm foo.txt            # Delete file
rm -f|--force foo.txt # Delete file, ignore nonexistent files and never prompt

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Reading Files

cat foo.txt              # Print all contents
less foo.txt             # Print some contents at a time (g - go to top of file, SHIFT+g, go to bottom of file, /foo to search for 'foo')
head foo.txt             # Print top 10 lines of file
tail foo.txt             # Print bottom 10 lines of file
tail -f|--follow foo.txt # Print bottom 10 lines of file updating with new data
open foo.txt             # Open file in the default editor
wc foo.txt               # List number of lines words and characters in the file

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Sorting Files

sort foo.txt                                  # Sort file (ascending order) 
sort -r|--reverse foo.txt                     # Sort file (descending order) 
sort -n|--numeric-sort foo.txt                # Sort numbers instead of strings 
sort -t|--field-separator: -k 3n /foo/foo.txt # Sort by the third column of a file

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

File Permissions

#PermissionrwxBinary
7read, write and executerwx111
6read and writerw-110
5read and executer-x101
4read onlyr--100
3write and execute-wx011
2write only-w-010
1execute only--x001
0none---000

For a directory, execute means you can enter a directory.

UserGroupOthersDescription
644User can read and write, everyone else can read (Default file permissions)
755User can read, write and execute, everyone else can read and execute (Default directory permissions)
ls -l /foo.sh            # List file permissions
chmod +100 foo.sh        # Add 1 to the user permission
chmod -100 foo.sh        # Subtract 1 from the user permission
chmod u+x foo.sh         # Give the user execute permission
chmod g+x foo.sh         # Give the group execute permission
chmod u-x,g-x foo.sh     # Take away the user and group execute permission
chmod u+x,g+x,o+x foo.sh # Give everybody execute permission
chmod a+x foo.sh         # Give everybody execute permission
chmod +x foo.sh          # Give everybody execute permission

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Finding Files

Find binary files for a command.

type -a wget                              # Display all locations of executable
which -a wget                             # Display all locations of executables 
whereis wget                              # Find the binary, source, and manual page files

locate uses an index and is fast.

updatedb                                   # Update the index

locate foo.txt                             # Find a file
locate --ignore-case                       # Find a file and ignore case
locate f*.txt                              # Find a text file starting with 'f'

find doesn't use an index and is slow.

find /path -name foo.txt                   # Find a file
find /path -iname foo.txt                  # Find a file with case insensitive search
find /path -name "*.txt"                   # Find all text files
find /path -name foo.txt -delete           # Find a file and delete it
find /path -name "*.png" -exec pngquant {} # Find all .png files and execute pngquant on it
find /path -type f -name foo.txt           # Find a file
find /path -type d -name foo               # Find a directory
find /path -type l -name foo.txt           # Find a symbolic link
find /path -type f -mtime +30              # Find files that haven't been modified in 30 days
find /path -type f -mtime +30 -delete      # Delete files that haven't been modified in 30 days

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Find in Files

grep 'foo' /bar.txt                         # Search for 'foo' in file 'bar.txt'
grep 'foo' /bar -r|--recursive              # Search for 'foo' in directory 'bar'
grep 'foo' /bar -R|--dereference-recursive  # Search for 'foo' in directory 'bar' and follow symbolic links
grep 'foo' /bar -l|--files-with-matches     # Show only files that match
grep 'foo' /bar -L|--files-without-match    # Show only files that don't match
grep 'Foo' /bar -i|--ignore-case            # Case insensitive search
grep 'foo' /bar -x|--line-regexp            # Match the entire line
grep 'foo' /bar -C|--context 1              # Add N line of context above and below each search result
grep 'foo' /bar -v|--invert-match           # Show only lines that don't match
grep 'foo' /bar -c|--count                  # Count the number lines that match
grep 'foo' /bar -n|--line-number            # Add line numbers
grep 'foo' /bar --colour                    # Add colour to output
grep 'foo\|bar' /baz -R                     # Search for 'foo' or 'bar' in directory 'baz'
grep --extended-regexp|-E 'foo|bar' /baz -R # Use regular expressions
grep -E 'foo|bar' /baz -R                   # Use regular expressions

Replace in Files

sed 's/fox/bear/g' foo.txt                          # Replace fox with bear in foo.txt and output to console
sed 's/fox/bear/gi' foo.txt                         # Replace fox (case insensitive) with bear in foo.txt and output to console
sed 's/red fox/blue bear/g' foo.txt                 # Replace red with blue and fox with bear in foo.txt and output to console
sed 's/fox/bear/g' foo.txt > bar.txt                # Replace fox with bear in foo.txt and save in bar.txt
sed -i|--in-place 's/fox/bear/g' foo.txt            # Replace fox with bear and overwrite foo.txt
sed -i|--in-place '/red fox/i\blue bear' foo.txt    # Insert blue bear before red fox and overwrite foo.txt
sed -i|--in-place '/red fox/a\blue bear' foo.txt    # Insert blue bear after red fox and overwrite foo.txt
sed -i|--in-place '10s/find/replace/' foo.txt       # Replace the 10th line of the file 
sed -i|--in-place '10,20s/find/replace/' foo.txt    # Replace in the file 10-20 lines 

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

File Editor

nano                              # Open a new file in nano
nano foo.txt                      # Open a specific file
nano -m|--mouse foo.txt           # Enable the use of the mouse
nano -l|--linenumbers foo.txt     # Show line numbers in front of the text
nano +line,10 foo.txt             # Open file positioning the cursor at the specified line and column
nano -B|--backup foo.txt          # Create a backup file (`foo~`) when saving edits

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Symbolic Links

ln -s|--symbolic foo bar            # Create a link 'bar' to the 'foo' folder
ln -s|--symbolic -f|--force foo bar # Overwrite an existing symbolic link 'bar'
ls -l                               # Show where symbolic links are pointing

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Compressing Files

zip

Compresses one or more files into *.zip files.

zip foo.zip /bar.txt                # Compress bar.txt into foo.zip
zip foo.zip /bar.txt /baz.txt       # Compress bar.txt and baz.txt into foo.zip
zip foo.zip /{bar,baz}.txt          # Compress bar.txt and baz.txt into foo.zip
zip -r|--recurse-paths foo.zip /bar # Compress directory bar into foo.zip

gzip

Compresses a single file into *.gz files.

gzip /bar.txt foo.gz           # Compress bar.txt into foo.gz and then delete bar.txt
gzip -k|--keep /bar.txt foo.gz # Compress bar.txt into foo.gz

tar -c

Compresses (optionally) and combines one or more files into a single *.tar, *.tar.gz, *.tpz or *.tgz file.

tar -c|--create -z|--gzip -f|--file=foo.tgz /bar.txt /baz.txt # Compress bar.txt and baz.txt into foo.tgz
tar -c|--create -z|--gzip -f|--file=foo.tgz /{bar,baz}.txt    # Compress bar.txt and baz.txt into foo.tgz
tar -c|--create -z|--gzip -f|--file=foo.tgz /bar              # Compress directory bar into foo.tgz

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Decompressing Files

unzip

unzip foo.zip          # Unzip foo.zip into current directory

gunzip

gunzip foo.gz           # Unzip foo.gz into current directory and delete foo.gz
gunzip -k|--keep foo.gz # Unzip foo.gz into current directory

tar -x

tar -x|--extract -z|--gzip -f|--file=foo.tar.gz # Un-compress foo.tar.gz into current directory
tar -x|--extract -f|--file=foo.tar              # Un-combine foo.tar into current directory

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Packages

apt update                          # Refreshes repository index
apt search wget                     # Search for a package
apt show wget                       # List information about the wget package
apt list --all-versions wget        # List all versions of the package
apt install wget                    # Install the latest version of the wget package
apt install wget=1.2.3              # Install a specific version of the wget package
apt remove wget                     # Removes the wget package
apt upgrade                         # Upgrades all upgradable packages
apt clean                           # Clears out the local repository of downloaded package files

dpkg -i|--install package_name.deb  # Install deb file
dpkg -P package_name.deb            # Remove a deb file installion (including configuration files)
rpm -i|--install package_name.rpm   # Install a rpm file installion
rpm -e package_name.rpm             # Remove rpm file installion (including dependencies)

Install package source code

tar zxvf sourcecode.tar.gz
cd sourcecode
./configure
make
make install

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Disk Usage

df                     # List disks, size, used and available space
df -h|--human-readable # List disks, size, used and available space in a human readable format

du                     # List current directory, subdirectories and file sizes
du /foo/bar            # List specified directory, subdirectories and file sizes
du -h|--human-readable # List current directory, subdirectories and file sizes in a human readable format
du -d|--max-depth      # List current directory, subdirectories and file sizes within the max depth
du -d 0                # List current directory size

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Memory Usage

free                   # Show memory usage
free -h|--human        # Show human readable memory usage
free -h|--human --si   # Show human readable memory usage in power of 1000 instead of 1024
free -s|--seconds 5    # Show memory usage and update continuously every five seconds

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Shutdown and Reboot

shutdown                     # Shutdown in 1 minute
shutdown now                 # Immediately shut down
shutdown +5                  # Shutdown in 5 minutes

shutdown -r|--reboot         # Reboot in 1 minute
shutdown -r|--reboot now     # Immediately reboot
shutdown -r|--reboot +5      # Reboot in 5 minutes
shutdown -c                  # Cancel a shutdown or reboot

reboot                       # Reboot now
reboot -f                    # Force a reboot

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Identifying Processes

top                    # List all processes interactively
htop                   # List all processes interactively
ps ax                  # List all processes
pidof foo              # Return the PID of all foo processes

CTRL+Z                 # Suspend a process running in the foreground
bg                     # Resume a suspended process and run in the background
fg                     # Bring the last background process to the foreground
fg 1                   # Bring the background process with the PID to the foreground

sleep 30 &             # Sleep for 30 seconds and move the process into the background
jobs                   # List all background jobs
jobs -p                # List all background jobs with their PID

lsof                   # List all open files and the process using them
lsof -itcp:4000        # Return the process listening on port 4000

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Process Priority

Process priorities go from -20 (highest) to 19 (lowest).

nice -n -20 foo        # Change process priority by name
renice 20 PID          # Change process priority by PID
ps -o ni PID           # Return the process priority of PID

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Killing Processes

CTRL+C                 # Kill a process running in the foreground
kill PID               # Shut down process by PID gracefully. Sends TERM signal.
kill -9 PID            # Force shut down of process by PID. Sends SIGKILL signal.
pkill foo              # Shut down process by name gracefully. Sends TERM signal.
pkill -9 foo           # force shut down process by name. Sends SIGKILL signal.
killall foo            # Kill all process with the specified name gracefully.

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Date & Time

date                            # Print the date and time
date --iso-8601                 # Print the ISO8601 date
date --iso-8601=ns              # Print the ISO8601 date and time

date -s "02 DEC 2020 12:02:02"  # Manually change date and time
dpkg-reconfigure tzdata         # Change date/timezone

uptime                          # Print how long the system has been running
time tree                       # Print amount of time to tree takes to execute

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Scheduled Tasks

   *      *         *         *           *
Minute, Hour, Day of month, Month, Day of the week
crontab -l                 # List cron tab
crontab -e                 # Edit cron tab in a file editor
crontab /path/crontab      # Load cron tab from a file
crontab -l > /path/crontab # Save cron tab to a file

* * * * * foo              # Run foo every minute
*/15 * * * * foo           # Run foo every 15 minutes
0 * * * * foo              # Run foo every hour
15 6 * * * foo             # Run foo daily at 6:15 AM
44 4 * * 5 foo             # Run foo every Friday at 4:44 AM
0 0 1 * * foo              # Run foo at midnight on the first of the month
0 0 1 1 * foo              # Run foo at midnight on the first of the year

at -l                      # List scheduled tasks
at -c 1                    # Show task with ID 1
at -r 1                    # Remove task with ID 1
at now + 2 minutes         # Create a task in a file editor to execute in 2 minutes
at 12:34 PM next month     # Create a task in a file editor to execute at 12:34 PM next month
at tomorrow                # Create a task in a file editor to execute tomorrow

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

User Management

sudo su                                            # Switch to root user
sudo foo                                           # Execute commands(has permission denied) as the root user
sudo nano /foo/foo.txt                             # Open directories and files(is not writable) as the root user
su username                                        # Switch to a different user

passwd                                             # To change the password of a user
adduser username                                   # To add a new user
userdel username                                   # To remove user
userdel -r|--remove username                       # To remove user with home directory and mail spool
usermod -a|--append -G|--groups GROUPNAME USERNAME # To add a user to a group
deluser USER GROUPNAME                             # To remove a user from a group

last                                               # Display information of all the users logged in
last username                                      # Display information of a particular user
w                                                  # Display who is online

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

HTTP Requests

curl https://example.com                               # Return response body
curl -i|--include https://example.com                  # Include status code and HTTP headers
curl -L|--location https://example.com                 # Follow redirects
curl -O|--remote-name foo.txt https://example.com      # Output to a text file
curl -H|--header "User-Agent: Foo" https://example.com # Add a HTTP header
curl -X|--request POST -H "Content-Type: application/json" -d|--data '{"foo":"bar"}' https://example.com # POST JSON
curl -X POST -H --data-urlencode foo="bar" http://example.com  # POST URL Form Encoded

wget https://example.com/file.txt                              # Download a file to the current directory
wget -O|--output-document foo.txt https://example.com/file.txt # Output to a file with the specified name

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Network Troubleshooting

ifconfig                     # Display all network card and interface information 
ifconfig -a                  # Display information of all network cards (including those that are not started at boot) 
ifconfig eth0                # Display specific device information 
ifconfig eth0 up             # Turn on the network card
ifconfig eth0 down           # Turn off the network card
ifconfig eth0 192.168.120.56 # Configure IP address for network card

curl ifconfig.me             # Obtain external IP address

ping example.com             # Send multiple ping requests using the ICMP protocol
ping -c 10 -i 5 example.com  # Make 10 attempts, 5 seconds apart

ip addr                      # List IP addresses on the system
ip route show                # Show IP addresses to router
 
netstat -i|--interfaces      # List all network interfaces and in/out usage
netstat -l|--listening       # List all open ports

traceroute example.com       # List all servers the network traffic goes through

mtr -w|--report-wide example.com                                    # Continually list all servers the network traffic goes through
mtr -r|--report -w|--report-wide -c|--report-cycles 100 example.com # Output a report that lists network traffic 100 times

nmap 0.0.0.0                 # Scan for the 1000 most common open ports on localhost
nmap 0.0.0.0 -p1-65535       # Scan for open ports on localhost between 1 and 65535
nmap 192.168.4.3             # Scan for the 1000 most common open ports on a remote IP address
nmap -sP 192.168.1.1/24      # Discover all machines on the network by ping'ing them

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

DNS

dig example.com                 # Show query information of domain A records
dig -4 example.com              # Show IPv4 A records
dig -6 example.com              # Show IPv6 AAA records
dig example.com @nameserver     # Show query of a specific nameserver
dig example.com -p 123          # Show query of a specific port number

cat /etc/resolv.conf            # Nameservers file
cat /etc/systemd/resolved.conf  # DNS resolver config file

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Hardware

lsusb                  # List USB devices
lspci                  # List PCI hardware
lshw                   # List all hardware

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

System Information

uname -s                  # Print kernel name
uname -r                  # Print kernel release
uname -m                  # Print Architecture
uname -o                  # Print Operating System
uname -a                  # Print all Systen info  

lsb_release -a            # Print distribution-specific information
dpkg --print-architecture # Print-architecture by name
 
cat /proc/cpuinfo         # Show cpu info
cat /proc/meminfo         # Show memory info

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Terminal Multiplexers

Start multiple terminal sessions. Active sessions persist reboots. tmux is more modern than screen.

tmux             # Start a new session (CTRL-b + d to detach)
tmux ls          # List all sessions
tmux attach -t 0 # Reattach to a session

screen           # Start a new session (CTRL-a + d to detach)
screen -S foo    # Start a new named session
screen -ls       # List all sessions
screen -R 31166  # Reattach to a session

exit             # Exit a session
reset            # Reset the terminal(when binary and the terminal state is messed up)

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Secure Shell Protocol (SSH)

ssh hostname                 # Connect to hostname using your current user name over the default SSH port 22
ssh -i foo.pem hostname      # Connect to hostname using the identity file
ssh user@hostname            # Connect to hostname using the user over the default SSH port 22
ssh user@hostname -p 8765    # Connect to hostname using the user over a custom port
ssh ssh://user@hostname:8765 # Connect to hostname using the user over a custom port

Set default user and port in ~/.ssh/config, so you can just enter the name next time:

$ cat ~/.ssh/config
Host name
  User foo
  Hostname 127.0.0.1
  Port 8765
$ ssh name

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Secure Copy

scp foo.txt ubuntu@hostname:/home/ubuntu                    # Copy foo.txt into the specified remote directory
scp ubuntu@hostname:/home/ubuntu/foo.txt /C:\Users\Admin    # Copy foo.txt from the specified remote directory

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Bash Profile

# Always run ls after cd
function cd {
  builtin cd "$@" && ls
}

# Prompt user before overwriting any files
alias cp='cp --interactive'
alias mv='mv --interactive'
alias rm='rm --interactive'

# Always show disk usage in a human readable format
alias df='df -h'
alias du='du -h'

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ

Bash Script

Variables

#!/bin/bash

foo=123                # Initialize variable foo with 123
declare -i foo=123     # Initialize an integer foo with 123
declare -r foo=123     # Initialize readonly variable foo with 123
echo $foo              # Print variable foo
echo ${foo}_'bar'      # Print variable foo followed by _bar
echo ${foo:-'default'} # Print variable foo if it exists otherwise print default

export foo             # Make foo available to child processes
unset foo              # Make foo unavailable to child processes and current session

Environment Variables

#!/bin/bash

set            # List all environment variables
echo $PATH     # Print PATH environment variable
export FOO=Bar # Set an environment variable

Functions

#!/bin/bash

greet() {
  local world="World"
  echo "$1 $world"
  return "$1 $world"
}
greet "Hello"
greeting=$(greet "Hello")

Exit Codes

#!/bin/bash

exit 0   # Exit the script successfully
exit 1   # Exit the script unsuccessfully
echo $?  # Print the last exit code

Conditional Statements

Boolean Operators

Numeric Operators

String Operators

If Statements

#!/bin/bash

[[
if [[$foo = 'bar']]; then
  echo 'one'
elif [[$foo = 'bar']] || [[$foo = 'baz']]; then
  echo 'two'
elif [[$foo = 'ban']] && [[$USER = 'bat']]; then
  echo 'three'
else
  echo 'four'
fi
]]

Inline If Statements

#!/bin/bash

[[ $USER = 'rehan' ]] && echo 'yes' || echo 'no'

While Loops

#!/bin/bash

[
declare -i counter
counter=10
while [$counter -gt 2]; do
  echo The counter is $counter
  counter=counter-1
done
]

For Loops

#!/bin/bash

for i in {0..10..2}
  do
    echo "Index: $i"
  done

for filename in file1 file2 file3
  do
    echo "Content: " >> $filename
  done

for filename in *;
  do
    echo "Content: " >> $filename
  done

Case Statements

#!/bin/bash

echo "What's the weather like tomorrow?"
read weather

case $weather in
  sunny | warm ) echo "Nice weather: " $weather
  ;;
  cloudy | cool ) echo "Not bad weather: " $weather
  ;;
  rainy | cold ) echo "Terrible weather: " $weather
  ;;
  * ) echo "Don't understand"
  ;;
esac
<p align=right> Inspired by <a href="https://github.com/RehanSaeed/Bash-Cheat-Sheet">RehanSaeed/Bash-Cheat-Sheet</a></p>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴄᴏɴᴛᴇɴᴛꜱ


</p> </details> <details><summary><b>Special characters <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Open%20Book.webp" alt="Open Book" width="25" height="25" /></b></summary> <p>

Linux Special Characters

Note 💡<br> This symbol "└─>" represents an alternative meaning of some characters.

<table class="tg"> <tbody> <tr> <th class="tg-yw4l">Char.</th> <th class="tg-yw4l">Description</th> </tr> <tr> <td class="tg-yw4l">~</td> <td class="tg-yw4l">Home directory [tilde]. The path to a user's home directory location.</td> </tr> <tr> <td class="tg-yw4l">-</td> <td class="tg-yw4l">Last directory [hyphen]. Go to the previously chosen directory.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Option flag for a command or filter.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Arithmetic operator. Minus of arithmetic operations.</td> </tr> <tr> <td class="tg-yw4l">/</td> <td class="tg-yw4l">Root directory [forward slash]. The path to root directory location.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Filename path separator.</td> </tr> <tr> <td class="tg-yw4l">\</td> <td class="tg-yw4l">Escape [backslash]. A quoting mechanism for single characters. It preserves the literal value of the next character that follows, with the exception of newline. </td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Arithmetic operator. Divider of arithmetic operations.</td> </tr> <tr> <td class="tg-yw4l">|</td> <td class="tg-yw4l">Pipe. This is a method of chaining commands together. Connects the <a href="https://www.google.com/search?q=What+is+an+output+command+in+linux+%3F&client=firefox-b-1-d&sca_esv=f2188c427bbface5&sca_upv=1&biw=1600&bih=733&sxsrf=AM9HkKk2mrH69ExcrN_rFQsqE_gEyomw-A%3A1703595497238&ei=6c2KZeyaDpr8wbkPrs6P0Aw&ved=0ahUKEwiss9Djk62DAxUafjABHS7nA8oQ4dUDCBA&uact=5&oq=What+is+an+output+command+in+linux+%3F&gs_lp=Egxnd3Mtd2l6LXNlcnAiJFdoYXQgaXMgYW4gb3V0cHV0IGNvbW1hbmQgaW4gbGludXggPzIEECMYJ0i3DlDfBVjfBXABeAGQAQCYAbEBoAGxAaoBAzAuMbgBA8gBAPgBAcICChAAGEcY1gQYsAPiAwQYACBBiAYBkAYI&sclient=gws-wiz-serp" target="_blank"><b>output (stdout)</b></a> of command1 to the <a href="https://www.google.com/search?q=what+is+an+input+command+in+linux+%3F&client=firefox-b-1-d&sca_esv=f2188c427bbface5&sca_upv=1&biw=1600&bih=733&sxsrf=AM9HkKlWpe5HFcG_bCtCc80V7cdGZ8AFuQ%3A1703595749415&ei=5c6KZZ6DGcuqwbkPmOa44AY&oq=What+is+an+input+command+in+%3F&gs_lp=Egxnd3Mtd2l6LXNlcnAiHVdoYXQgaXMgYW4gaW5wdXQgY29tbWFuZCBpbiA_KgIIADIEECMYJ0iTCVDfAljfAnACeAGQAQCYAaoBoAGqAaoBAzAuMbgBAcgBAPgBAcICChAAGEcY1gQYsAPiAwQYACBBiAYBkAYI&sclient=gws-wiz-serp" target="_blank"><b>input (stdin)</b></a> of command2. Each command reads the previous command’s output.</td> </tr> <tr> <td class="tg-yw4l">|&</td> <td class="tg-yw4l">This operator connects the output (stdout) and error (stderr) of command1 to the input (stdin) of command2.</td> </tr> <tr> <td class="tg-yw4l">||</td> <td class="tg-yw4l">The OR operator is used to chain commands. It will execute the first command then stop if successful, if not, it will proceed pass failed commands until one is successful and stop.</tr> <tr> <td class="tg-yw4l">&&</td> <td class="tg-yw4l">The AND operator is used to chain commands. It will execute commands only if the first command is successful and proceed until one fails.</td> </tr> <tr> <td class="tg-yw4l">;</td> <td class="tg-yw4l">Command separator [semicolon]. Used to separate multiple commands and output all successful and failed ones.</td> </tr> <tr> <td class="tg-yw4l">&</td> <td class="tg-yw4l">Run job in background [and]. A command followed by an & will run in the background.</td> </tr> <tr> <td class="tg-yw4l"> >, >>, <</td> <td class="tg-yw4l">Redirect a command's standard output (stdout) or input (stdin) into a file.</td> </tr> <tr> <td class="tg-yw4l">&>, >&</td> <td class="tg-yw4l">Redirects a command's both standard output (stdout) and error (stderr) into a file.</td> </tr> <tr> <td class="tg-yw4l"><&-</td> <td class="tg-yw4l">Close standard input (stdin) to prevent showing from a file.</td> </tr> <tr> <td class="tg-yw4l">>&-</td> <td class="tg-yw4l">Close standard output (stdout) to prevent showing from a file.</td> </tr> <tr> <td class="tg-yw4l">>|</td> <td class="tg-yw4l">Force redirection (even if the <a href="https://www.google.com/search?q=what+is+noclobber+bash+meaning+%3F&client=firefox-b-d&sxsrf=ALiCzsYjxhOR8rNOMWPfYf5DFKIqA_f7SA%3A1667859549077&ei=XYRpY4uiBMLhxgGuwoP4Cw&ved=0ahUKEwjLxNT_jJ37AhXCsDEKHS7hAL8Q4dUDCA4&uact=5&oq=what+is+noclobber+bash+meaning+%3F&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIHCCMQsAMQJzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwAzIKCAAQRxDWBBCwA0oECE0YAUoECEEYAEoECEYYAFAAWABg0gFoAXABeACAAQCIAQCSAQCYAQDIAQnAAQE&sclient=gws-wiz-serp"><b>noclobber</b></a> option is set). This will forcibly overwrite an existing file. </tr> <tr> <td class="tg-yw4l">"</td> <td class="tg-yw4l">Partial quoting [double quotes]. Protects the text inside them from being split into multiple words or arguments, yet allow substitutions to occur, meaning most other special characters is usually prevented.</td> <tr> <td class="tg-yw4l">.</td> <td class="tg-yw4l">Source command [period]. To evaluate commands in the current execution context. This is a bash builtin.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">"As a component of a filename. When working with filenames, a leading dot is the prefix of a "hidden" file, a file that an ls will not normally show. </td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Character match. When matching characters, as part of a regular expression, a "dot" matches a single character.</td> </tr> <tr> <td class="tg-yw4l">'</td> <td class="tg-yw4l">Full quoting [single quotes]. Protects the text inside them so that it has a literal meaning. This is a stronger form of quoting than double quotes.</td> </tr> <tr> <td class="tg-yw4l">`</td> <td class="tg-yw4l">Command substitution [backquotes]. Assign the output of a shell command to a variable.</td> </tr> <tr> <td class="tg-yw4l">#</td> <td class="tg-yw4l">Comment [number sign]. Lines in files beginning with a # (with the exception of #!) are comments and will not be executed.</td> </tr> <tr> <td class="tg-yw4l">!</td> <td class="tg-yw4l">Reverse (or negate) [exclamation]. The ! operator inverts the exit status of the command to which it is applied. It also inverts the meaning of a test operator.</td> </tr> <tr> <td class="tg-yw4l">*</td> <td class="tg-yw4l">Wild card [asterisk]. The * character serves as a "wild card" for filename expansion in <a href="https://www.google.com/search?q=What+is+globbing+in+shell%3F&client=firefox-b-d&sxsrf=ALiCzsYC9z8Ynyd5KFHYK7jo2SDHxrCuxg%3A1667844117587&ei=FUhpY77DI46ykvQPlPO_8A8&ved=0ahUKEwj-oa3B05z7AhUOmYQIHZT5D_4Q4dUDCA4&uact=5&oq=What+is+globbing+in+shell%3F&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIICAAQFhAeEA8yBQgAEIYDMgUIABCGAzIFCAAQhgMyBQgAEIYDOgQIABBHSgQITRgBSgQIQRgASgQIRhgAUPdAWPdAYJ9DaABwA3gAgAGdAYgBnQGSAQMwLjGYAQCgAQKgAQHIAQjAAQE&sclient=gws-wiz-serp"><b>globbing</b></a>. By itself, it matches every filename in a given directory. </td> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Arithmetic operator. Multiplier of arithmetic operations.</td> </tr> <tr> <td class="tg-yw4l">?</td> <td class="tg-yw4l">Wild card [question mark]. The ? character serves as a single-character "wild card" for filename expansion in globbing, as well as representing one character in an extended regular expression.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Test operator. Within certain expressions, the ? indicates a test for a condition.</td> </tr> <tr> <td class="tg-yw4l">{ }</td> <td class="tg-yw4l">Inline group [curly brackets]. Commands inside the curly braces are treated as if they were one command.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Placeholder for output text.</td> </tr> <tr> <td class="tg-yw4l">( )</td> <td class="tg-yw4l"><a href="https://www.google.com/search?q=what+is+linux+Subshell+%3F&client=firefox-b-d&biw=1440&bih=660&sxsrf=ALiCzsanH7oWuGhBf-7bIH_SmJhmw9gGxg%3A1667750422612&ei=FtpnY5KDJdeCwbkP3eejiAc&ved=0ahUKEwiS5o289pn7AhVXQTABHd3zCHEQ4dUDCA4&uact=5&oq=what+is+linux+Subshell+%3F&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIECCMQJzoKCAAQRxDWBBCwA0oECE0YAUoECEEYAEoECEYYAFCyBliyBmC7B2gCcAF4AIABcYgBcZIBAzAuMZgBAKABAcgBCMABAQ&sclient=gws-wiz-serp"><b>Subshell</b></a> group [parentheses]. Commands within are executed in a subshell (a new process) Used much like a sandbox, if a command causes side effects (like changing variables), it will have no effect on the current shell.</td> </tr> <tr> <td class="tg-yw4l">[ ]</td> <td class="tg-yw4l">Test expression [brackets]. It is part of the shell builtin test.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Array element. Brackets set off the numbering of each element.</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">Range of characters. As part of a regular expression, brackets delineate a range of characters to match.</td> </tr> <tr> <td class="tg-yw4l">[[ ]]</td> <td class="tg-yw4l">Test/Evaluate [double brackets] a condition expression to determine whether true or false. It is more flexible than the single-bracket [ ] test. </td> <tr> <td class="tg-yw4l">(( ))</td> <td class="tg-yw4l">Arithmetic expression [double parentheses]. Characters such as +, -, *, and / are mathematical operators used for calculations.</td> </tr> <tr> <td class="tg-yw4l">~+</td> <td class="tg-yw4l">Current working directory.</td> </tr> <tr> <td class="tg-yw4l">~-</td> <td class="tg-yw4l">Previous working directory.</td> </tr> <tr> <td class="tg-yw4l">:</td> <td class="tg-yw4l">Null command [colon]. This is the shell equivalent of a "NOP" (no op, a do-nothing operation). It may be considered a synonym for the shell builtin true.</td> </tr> <tr> <td class="tg-yw4l">;;</td> <td class="tg-yw4l">Terminator [double semicolon]. Only used in case constructs to indicate the end of an alternative.</td> </tr> <tr> <td class="tg-yw4l">" "</td> <td class="tg-yw4l">Whitespace. This is a tab, newline, vertical tab, form feed, carriage return, or space. Bash uses whitespace to determine where words begin and end.</td> </tr> <tr> <td class="tg-yw4l">,, ,</td> <td class="tg-yw4l">Lowercase conversion in parameter substitution.</td> </tr> <tr> <td class="tg-yw4l">^, ^^</td> <td class="tg-yw4l">Uppercase conversion in parameter substitution.</td> </tr> <tr> <td class="tg-yw4l">$</td> <td class="tg-yw4l">Variable substitution. A $ prefixing a variable name indicates the value the variable holds</td> </tr> <tr> <td class="tg-yw4l">└─></td> <td class="tg-yw4l">End-of-line. In a regular expression, a "$" addresses the end of a line of text.</td> </tr> <tr> <td class="tg-yw4l">$*</td> <td class="tg-yw4l">All the arguments are seen as a single word.</td> </tr> <tr> <td class="tg-yw4l">!!</td> <td class="tg-yw4l">The previous command.</td> </tr> <tr> <td class="tg-yw4l">!$</td> <td class="tg-yw4l">The last argument to the previous command.</td> </tr> <tr> <td class="tg-yw4l">!*</td> <td class="tg-yw4l">All the arguments from the previous command.</td> </tr> <tr> <td class="tg-yw4l">$?</td> <td class="tg-yw4l">The exit status of the last command executed.</td> </tr> <tr> <td class="tg-yw4l">$#</td> <td class="tg-yw4l">The number of arguments supplied to a script.</td> </tr> <tr> <td class="tg-yw4l">$$</td> <td class="tg-yw4l">The process number of the current shell. For shell scripts, this is the process ID under which they are executing.</td> </tr> <tr> <td class="tg-yw4l">$!</td> <td class="tg-yw4l">The process number of the last background command.</td> </tr> <tr> <td class="tg-yw4l">$_</td> <td class="tg-yw4l">Special variable set to final argument of previous command executed.</td> </tr> <tr> <td class="tg-yw4l">$-</td> <td class="tg-yw4l">Expands to the current option flags as specified upon invocation, by the set builtin command, or those set by the shell itself (such as the -i option). </td> <tr> <td class="tg-yw4l">$0</td> <td class="tg-yw4l">Used to reference the name of the current shell or current shell script.</td> </tr> <tr> <td class="tg-yw4l">$n</td> <td class="tg-yw4l">These variables correspond to the arguments with which a script was invoked. Here n is a positive decimal number corresponding to the position of an argument (the first argument is $1, the second argument is $2, and so on).</td> </tr> </tbody> </table>

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ


</p> </details> <details><b><summary>Keyboard controls <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Keyboard.webp" alt="Keyboard" width="25" height="25" /></b></summary> <p>

Linux Keyboard Shortcuts

KeyFunction
Cursor Movement
Ctrl+BMove cursor backward one character position
Ctrl+FMove cursor forward one character position
Alt+FMove cursor one word forward in line
Alt+BMove cursor one word backward in line
Ctrl+AMove cursor to beginning of text in line
Ctrl+EMove cursor to end of text in line
Text Editing
Ctrl+DErase character forward from cursor left to right
Ctrl+HErase character backward from cursor right to left
Alt+DErase the next word from cursor left to right
Ctrl+WErase backwards to first non-alphanumeric character or empty space
Ctrl+UErase a line of input from cursor right to left
Ctrl+KErase a line of input from cursor left to right
Alt+RRevert any changes to a previously executed command that's being edited
Alt+.Fetch and paste the last word at end of a command from previous commands
Ctrl+TReverse the position of the character the cursor is on with the previous character
Alt+TReverse the position of the word the cursor is in with the previous word
Alt+UCapitalize every character from cursor left to right to the end of one word
Alt+LUncapitalize every character from cursor left to right to the end of one word
Ctrl+YPaste (yank) text cut by Ctrl+U, Ctrl+K, or Ctrl+W
Ctrl+_Undo last change
Command History
Ctrl+PFetch previous command from history list
Ctrl+NFetch next command from history list
Ctrl+RReverse search commands from history list
Process Control
Ctrl+CBreak/Terminate a foreground job
Ctrl+ZSuspend a foreground job
Ctrl+SSuspend output to screen
Ctrl+QResume output to screen
Terminal Control
Ctrl+LClear screen contents (command-line needs to be empty)
Ctrl+DLog out from a shell (similar to exit) or send EOF
Ctrl+OAccept the current line for execution and fetch the next command
Ctrl+X (twice)Toggle cursor between current position and beginning of the line
Text Editing (Terminal)
Ctrl+Shift+CCopy
Ctrl+Shift+VPaste
Shift+InsertPaste (alternative)

<i>Some of these shortcuts may vary depending on your terminal and system.</i>

Nano (text editor)

KeyFunction
Movement
Ctrl+YScroll page up
Ctrl+VScroll page down
Alt+\Go to the beginning of the file
Alt+/Go to the end of the file
Editing
Ctrl+HDelete the character before the cursor
Ctrl+DDelete the character under the cursor
Alt+BackspaceDelete the word to the left
Ctrl+DelDelete the word to the right
Alt+DelDelete the current line
Alt+^Copy selected text to the cut buffer
Ctrl+KCut selected text to the cut buffer
Ctrl+UPaste text from the cut buffer (clipboard)
Alt+AStart text selection (can be used with Ctrl+K to cut specific text)
Ctrl+JJustify (wrap) the current paragraph
Undo and Redo
Alt+UUndo the last action
Alt+ERedo the last undone action
Search and Replace
Ctrl+QStart backward search (press again to repeat)
Ctrl+WStart forward search (press Alt+W to search for the same term again)
Ctrl+\Replace a string or regular expression
File Operations
Ctrl+RInsert a file at the current cursor position
Ctrl+OWrite changes to the file ("Save as")
Ctrl+SSave the current file
Ctrl+XExit Nano (prompts to save changes if needed)
Miscellaneous
Alt+3Comment/uncomment the line/region
Ctrl+GShow help for all available commands
Ctrl+TOpen the spell checker

Vim (text editor)

KeyFunction
Movement
hMove left
jMove down
kMove up
lMove right
wMove forward to the beginning of the next word
bMove backward to the beginning of the previous word
eMove to the end of the current word
0 (zero)Move to the beginning of the line
$Move to the end of the line
ggGo to the first line of the document
GGo to the last line of the document
:{number}Go to a specific line number
Ctrl+fPage down
Ctrl+bPage up
%Move to matching parenthesis or bracket
^Move to the first non-blank character of the line
HMove to the top of the screen
MMove to the middle of the screen
LMove to the bottom of the screen
*Search forward for the word under the cursor
#Search backward for the word under the cursor
Editing
iInsert before the cursor
IInsert at the beginning of the line
aAppend after the cursor
AAppend at the end of the line
oOpen a new line below the current line
OOpen a new line above the current line
rReplace a single character
REnter replace mode
xDelete the character under the cursor
XDelete the character before the cursor
ddDelete the current line
DDelete from the cursor to the end of the line
yyYank (copy) the current line
pPaste after the cursor
PPaste before the cursor
uUndo the last action
Ctrl+rRedo the last undone action
Visual Mode
vEnter visual mode (character selection)
VEnter visual line mode
Ctrl+vEnter visual block mode
Text Objects
ciwChange the inner word
diwDelete the inner word
yawYank (copy) the entire word
ci"Change text inside double quotes
di(Delete text inside parentheses
Search and Replace
/patternSearch forward for 'pattern'
?patternSearch backward for 'pattern'
nRepeat the search in the same direction
NRepeat the search in the opposite direction
:%s/old/new/gReplace all occurrences of 'old' with 'new' in the file
:%s/old/new/gcReplace all occurrences of 'old' with 'new' with confirmation
File Operations
:wWrite (save) the file
:w filenameWrite to a specific filename
:qQuit Vim
:q!Quit without saving changes
:wqWrite and quit
:xWrite and quit (same as wq)
Multiple Files
:e filenameEdit a file in a new buffer
:bnext or :bnGo to the next buffer
:bprev or :bpGo to the previous buffer
:bdDelete a buffer (close the file)
:sp filenameOpen a file in a new buffer and split the window horizontally
:vsp filenameOpen a file in a new buffer and split the window vertically
Ctrl+wsSplit the window horizontally
Ctrl+wvSplit the window vertically
Ctrl+wwSwitch between windows
Ctrl+wqQuit the current window
Macros
qaRecord macro in register 'a'
qStop recording macro
@aRun macro from register 'a'
@@Rerun the last executed macro
Marking and Jumping
m{a-z}Set a mark with a letter (a-z) in the current position
'aJump to the line with mark 'a'
`aJump to the exact position with mark 'a'
:marksList all the marks
Ctrl+oJump to the previous location
Ctrl+iJump to the next location
Tabs
:tabnewOpen a new tab
gt or :tabnextGo to the next tab
gT or :tabprevGo to the previous tab
:tabcloseClose the current tab
:tabsList all open tabs
Miscellaneous
.Repeat the last command
ZZWrite the current file (if modified) and quit
ZQQuit without checking for changes
Ctrl+gShow the file name and status
g Ctrl+gShow the cursor position (line, column, and character)

⬆ ʀᴇᴛᴜʀɴ ᴛᴏ ᴛᴏᴩ

</p> </details>
<details><summary><b>Cheat Sheet for quick references of commands and codes</b> <img src="https://user-images.githubusercontent.com/18756975/201534292-3b617041-77a8-4e2f-8683-641d0b8d7f57.PNG" width=15px height=20px></summary>

cheat.sh<br> image<br>

<div align="center"> <details><summary><b>Cheat sheets sources</b></summary> <p>
Cheat sheetsRepositoryC/U*StarsCreation Date
UNIX/Linux, programmingcheat.sheetsMay 1, 2017
UNIX/Linux commandstldr-pages/tldrDec 8, 2013
UNIX/Linux commandschrisallenlane/cheatJul 28, 2013
Programming languagesadambard/learnxinyminutes-docsJun 23, 2013
Goa8m/go-lang-cheat-sheetFeb 9, 2014
Perlpkrumnis/perl1line.txtNov 4, 2011
Programming languagesStackOverflow14MN/A
</p> </details> </div>

Usage (Online)

Terminal :

curl cht.sh/keyword
# or
curl cheat.sh/keyword

Browser :

https://cht.sh/keyword<br> or<br> https://cheat.sh/keyword

Offline usage <a href="https://github.com/chubin/cheat.sh#installation">install</a> cheat script manually<br>

Install globally(all users) :

curl -s https://cht.sh/:cht.sh | sudo tee /usr/local/bin/cht.sh && sudo chmod +x /usr/local/bin/cht.sh

Run :

cht.sh keyword

Note - More info on usage :

https://cht.sh/:help

</p> </details>
<details><summary><b>More bash resources</b> <img src="https://user-images.githubusercontent.com/18756975/203332636-6012a214-21d9-423a-b20e-09beed4d9a25.png" width=15px height=20px></summary>
RepositoryDescription
Bash/Shell Scripting Tutorials and Guides
introduction-to-bash-scriptingFree Introduction to Bash Scripting eBook.
shell-scripting-tutorialA complete beginner's guide to learning shell scripting from scratch, with videos, practice scenarios, and project ideas.
100-shell-script-examplesA collection of shell scripts found on the internet.
simple-bash-scriptsA collection of simple Bash scripts.
shell-examplesLittle Bash shell scripting examples.
Shell Cheat SheetA detailed and organized shell scripting cheat sheet for quick reference.
bash-utilsA collection of hand-crafted bash scripts for various common tasks.
Bash-SnippetsA collection of small bash scripts for heavy terminal users.
DevOps Bash ToolsA comprehensive collection of 1000+ DevOps bash scripts for AWS, GCP, Kubernetes, Docker, CI/CD, databases, and more.
Bash BoosterA modular bash framework that simplifies the process of writing bash scripts.
pure-bash-bibleA collection of pure bash snippets for common tasks like string manipulation, file handling, etc., with no external dependencies.
Curated Lists of Bash/Shell Resources
awesome-bashA curated list of delightful Bash scripts and resources.
awesome-shellA curated list of awesome Shell frameworks, libraries, and software.
awesome-shellA list of awesome shell tools and resources, including libraries and scripts for enhancing the command-line experience.
awesome-cli-appsA curated list of command line apps.
cli-appsA curated list of (mainly) CLI/TUI applications with source data organized into CSV files.
awesome-cliA curated list of awesome resources for building immersive CLI experiences.
awesome-cliA simple command line tool to give you a fancy command line interface to dive into Awesome lists.
AI-Enhanced Command Line Tools
shell_gptA command-line productivity tool powered by AI large language models like GPT-4.
aiderAI pair programming in your terminal.
warpWarp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
plandexAI driven development in your terminal. Designed for large, real-world tasks.
Other Fun and Useful Shell Tools
awesome-ttygamesUnix ASCII games.
terminals-are-sexyA curated list of Terminal frameworks, plugins, and resources for CLI lovers.
</p> </details>