Răsfoiți Sursa

HTML OUTPUT

parv.ashwani 9 luni în urmă
părinte
comite
a474299d3f
1 a modificat fișierele cu 388 adăugiri și 0 ștergeri
  1. 388 0
      index.html

+ 388 - 0
index.html

@@ -0,0 +1,388 @@
+<h1 id="byebyemouse">🐭 Bye Bye Mouse</h1>
+<p><marquee>
+Because real power users don’t double-click—they type :)
+</marquee></p>
+<p>Escape the tyranny of the GUI one command at a time! This repo is your golden ticket to slick shell tricks, terminal wizardry, and keyboard-fueled productivity. Unplug that mouse and watch your workflow sprint.
+</br></p>
+<h2 id="quicklinks">Quick Links</h2>
+<ol>
+<li><a href="#copy-a-file">copy a file</a></li>
+<li><a href="#duplicate-a-file">duplicate a file</a></li>
+<li><a href="#copy-a-directory">copy a directory</a></li>
+<li><a href="#duplicate-a-directory">duplicate a directory</a></li>
+<li><a href="#move-a-file">move a file</a></li>
+<li><a href="#rename-a-file">rename a file</a></li>
+<li><a href="#move-a-directory">move a directory</a></li>
+<li><a href="#rename-a-directory">rename a directory</a></li>
+<li><a href="#merge-directories">merge directories</a></li>
+<li><a href="#create-a-new-file">create a new file</a></li>
+<li><a href="#create-a-new-directory">create a new directory</a></li>
+<li><a href="#show-filedirectory-size">show file/directory size</a></li>
+<li><a href="#show-filedirectory-info">show file/directory info</a></li>
+<li><a href="#open-a-file-with-the-default-program">open a file with the default program</a></li>
+<li><a href="#open-a-file-in-any-application">open a file in any application</a></li>
+<li><a href="#zip-a-directory">zip a directory</a></li>
+<li><a href="#unzip-a-directory">unzip a directory</a></li>
+<li><a href="#peek-files-in-a-zip-file">peek files in a zip file</a></li>
+<li><a href="#remove-a-file">remove a file</a></li>
+<li><a href="#remove-a-directory">remove a directory</a></li>
+<li><a href="#remove-all-files-of-certain-criteria">remove all files of certain criteria</a></li>
+<li><a href="#list-directory-contents">list directory contents</a></li>
+<li><a href="#tree-view-a-directory-and-its-subdirectories">tree view a directory and its subdirectories</a></li>
+<li><a href="#find-a-stale-file">find a stale file</a></li>
+<li><a href="#show-a-calendar">show a calendar</a></li>
+<li><a href="#find-a-future-date">find a future date</a></li>
+<li><a href="#use-a-calculator">use a calculator</a></li>
+<li><a href="#force-quit-a-program">force quit a program</a></li>
+<li><a href="#check-server-response">check server response</a></li>
+<li><a href="#view-content-of-a-file">view content of a file</a></li>
+<li><a href="#search-for-a-text-in-a-file">search for a text in a file</a></li>
+<li><a href="#search-in-all-files-in-current-working-directory-quickly-entire-disk-in-less-than-15-minutes">search in all files in current working directory, quickly (entire disk in less than 15 minutes)</a></li>
+<li><a href="#view-an-image">view an image</a></li>
+<li><a href="#show-disk-size">show disk size</a></li>
+<li><a href="#check-cpu-usage-processes-and-ram">check cpu usage, processes and RAM</a></li>
+<li><a href="#know-whether-your-computer-is-under-load-and-whether-its-due-to-memory-or-cpu">know whether your computer is under load, and whether it's due to memory or CPU</a></li>
+<li><a href="#poweroff-or-reboot-your-computer">poweroff or reboot your computer</a></li>
+<li><a href="#locate-usb-drives">locate USB drives</a></li>
+<li><a href="#unmount-usb-drives">unmount USB drives</a></li>
+<li><a href="#format-usb-drives">format USB drives</a></li>
+<li><a href="#check-usb-format">check USB format</a></li>
+<li><a href="#run-command-on-all-files-of-a-directory">run command on all files of a directory</a></li>
+<li><a href="#check-network-connectivity-to-a-remote-address-and-port">check network connectivity to a remote address and port</a></li>
+<li><a href="#check-dns-config-of-a-domain">check DNS config of a domain</a></li>
+<li><a href="#check-the-ownership-and-registration-of-a-domain">check the ownership and registration of a domain</a></li>
+</ol>
+<!-- 1. [Quick tips](#quick-tips) -->
+<ol>
+<li><a href="#hotkeys">Hotkeys</a></li>
+<li><a href="#i-cant-remember-these-cryptic-commands">I can't remember these cryptic commands</a></li>
+</ol>
+<h2 id="copyafile">copy a file</h2>
+<p><strong>STOP DRAG AND DROPPING A FILE, OR CMD/CTRL + C, CMD/CTRL + V A FILE</strong> :-1:</p>
+<p>Copy <code>readme.txt</code> to the <code>documents</code> directory</p>
+<pre><code class="shell language-shell">$ cp readme.txt documents/
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="duplicateafile">duplicate a file</h2>
+<p><strong>STOP RIGHT CLICKING AND DUPLICATE A FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ cp readme.txt readme.bak.txt
+</code></pre>
+<p>More advanced:</p>
+<pre><code class="shell language-shell">$ cp readme{,.bak}.txt
+# Note: learn how the {} works with touch foo{1,2,3}.txt and see what happens.
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="copyadirectory">copy a directory</h2>
+<p><strong>STOP DRAG AND DROPPING A DIRECTORY, OR CMD/CTRL + C, CMD/CTRL + V A DIRECTORY</strong> :-1:</p>
+<p>Copy <code>myMusic</code> directory to the <code>myMedia</code> directory</p>
+<pre><code class="shell language-shell">$ cp -a myMusic myMedia/
+# or
+$ cp -a myMusic/ myMedia/myMusic/
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="duplicateadirectory">duplicate a directory</h2>
+<p><strong>STOP RIGHT CLICKING AND DUPLICATE A DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ cp -a myMusic/ myMedia/
+# or if `myMedia` folder doesn't exist
+$ cp -a myMusic myMedia/
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="moveafile">move a file</h2>
+<p><strong>STOP DRAG AND DROPPING A FILE, OR CMD/CTRL + X, CMD/CTRL + V A FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ mv readme.txt documents/
+</code></pre>
+<p><strong>Always</strong> use a trailing slash when moving files, <a href="http://unix.stackexchange.com/a/50533">for this reason</a>.</p>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="renameafile">rename a file</h2>
+<p><strong>STOP RIGHT CLICKING AND RENAME A FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ mv readme.txt README.md
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="moveadirectory">move a directory</h2>
+<p><strong>STOP DRAG AND DROPPING A DIRECTORY, OR CMD/CTRL + X, CMD/CTRL + V A DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ mv myMedia myMusic/
+# or
+$ mv myMedia/ myMusic/myMedia
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="renameadirectory">rename a directory</h2>
+<p><strong>STOP RIGHT CLICKING AND RENAME A DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ mv myMedia/ myMusic/
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="mergedirectories">merge directories</h2>
+<p><strong>STOP DRAG AND DROPPING TO MERGE DIRECTORIES</strong> :-1:</p>
+<pre><code class="shell language-shell">$ rsync -a /images/ /images2/    # note: may over-write files with the same name, so be careful!
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="createanewfile">create a new file</h2>
+<p><strong>STOP RIGHT CLICKING AND CREATE A NEW FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ touch 'new file'    # updates the file's access and modification timestamp if it already exists
+# or
+$ &gt; 'new file'        # note: erases the content if it already exists
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="createanewdirectory">create a new directory</h2>
+<p><strong>STOP RIGHT CLICKING AND CREATE A NEW DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ mkdir 'untitled folder'
+# or
+$ mkdir -p 'path/may/not/exist/untitled folder'
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="showfiledirectorysize">show file/directory size</h2>
+<p><strong>STOP RIGHT CLICKING AND SHOW FILE/directory INFO</strong> :-1:</p>
+<pre><code class="shell language-shell">$ du -sh node_modules/
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="showfiledirectoryinfo">show file/directory info</h2>
+<p><strong>STOP RIGHT CLICKING AND SHOW FILE/DIRECTORY INFO</strong> :-1:</p>
+<pre><code class="shell language-shell">$ stat -x readme.md   # on macOS
+$ stat readme.md      # on Linux
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="openafilewiththedefaultprogram">open a file with the default program</h2>
+<p><strong>STOP DOUBLE CLICKING ON A FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ xdg-open file   # on Linux
+$ open file       # on MacOS
+$ start file      # on Windows
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="openafileinanyapplication">open a file in any application</h2>
+<p><strong>STOP RIGHT CLICKING AND OPEN WITH</strong> :-1:</p>
+<pre><code class="shell language-shell">$ open -a appName file
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="zipadirectory">zip a directory</h2>
+<p><strong>STOP RIGHT CLICKING AND COMPRESS DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ zip -r archive_name.zip folder_to_compress
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="unzipadirectory">unzip a directory</h2>
+<p><strong>STOP RIGHT CLICKING AND UNCOMPRESS DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ unzip archive_name.zip
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="decompressfilesofanyformat">decompress files of any format</h2>
+<p><strong>STOP RIGHT CLICKING AND UNCOMPRESS DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ unar archive_name.zip
+$ unar archive_name.7z
+$ unar archive_name.rar
+$ unar archive_name.ISO
+$ unar archive_name.tar.gz
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="peekfilesinazipfile">peek files in a zip file</h2>
+<p><strong>STOP USING WinRAR</strong> :-1:</p>
+<pre><code class="shell language-shell">$ zipinfo archive_name.zip
+# or
+$ unzip -l archive_name.zip
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="peekfilesinacompressfileofanyformat">peek files in a compress file of any format</h2>
+<p><strong>STOP USING WinRAR</strong> :-1:</p>
+<pre><code class="shell language-shell">$ lsar -l archive_name.zip
+$ lsar -l archive_name.7z
+$ lsar -l archive_name.ISO
+$ lsar -l archive_name.rar
+$ lsar -l archive_name.tar.gz
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="removeafile">remove a file</h2>
+<p><strong>STOP RIGHT CLICKING AND DELETE A FILE PERMANENTLY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ rm my_useless_file
+</code></pre>
+<p><strong>IMPORTANT</strong>: The <code>rm</code> command deletes <code>my_useless_file</code> permanently, which is equivalent to move <code>my_useless_file</code> to Recycle Bin and hit Empty Recycle Bin.</p>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="removeadirectory">remove a directory</h2>
+<p><strong>STOP RIGHT CLICKING AND DELETE A DIRECTORY PERMANENTLY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ rm -r my_useless_folder
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="removeallfilesofcertaincriteria">remove all files of certain criteria</h2>
+<pre><code class="shell language-shell">$ find . -name "*.bak" -type f -delete
+</code></pre>
+<p><strong>IMPORTANT</strong>: run <code>find . -name "*.bak" -type f</code> first to see exactly which files you will remove.</p>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="listdirectorycontents">list directory contents</h2>
+<p><strong>STOP OPENING YOUR FINDER OR FILE EXPLORER</strong> :-1:</p>
+<pre><code class="shell language-shell">$ ls my_folder        # Simple
+$ ls -la my_folder    # -l: show in list format. -a: show all files, including hidden. -la combines those options.
+$ ls -ltrha my_folder # -r: reverse output. -t: sort by time (modified). -h: output human-readable sizes.
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="treeviewadirectoryanditssubdirectories">tree view a directory and its subdirectories</h2>
+<p><strong>STOP OPENING YOUR FINDER OR FILE EXPLORER</strong> :-1:</p>
+<pre><code class="shell language-shell">$ tree                                                        # on Linux
+$ find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'      # on MacOS
+# Note: install homebrew (https://brew.sh) to be able to use (some) Linux utilities such as tree.
+# brew install tree
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="findastalefile">find a stale file</h2>
+<p><strong>STOP USING YOUR FILE EXPLORER TO FIND A FILE</strong> :-1:</p>
+<p>Find all files modified more than 5 days ago</p>
+<pre><code class="shell language-shell">$ find my_folder -mtime +5
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="showacalendar">show a calendar</h2>
+<p><strong>STOP LOOKING UP WHAT THIS MONTH LOOKS LIKE BY CALENDAR WIDGETS</strong> :-1:</p>
+<p>Display a text calendar</p>
+<pre><code class="shell language-shell">$ cal
+</code></pre>
+<p>Display selected month and year calendar</p>
+<pre><code class="shell language-shell">$ cal 11 2018
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="findafuturedate">find a future date</h2>
+<p><strong>STOP USING WEBAPPS TO CALCULATE FUTURE DATES</strong> :-1:</p>
+<p>What is today's date?</p>
+<pre><code class="shell language-shell">$ date +%m/%d/%Y
+</code></pre>
+<p>What about a week from now?</p>
+<pre><code class="shell language-shell">$ date -d "+7 days"                                           # on Linux
+$ date -j -v+7d                                               # on MacOS
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="useacalculator">use a calculator</h2>
+<p><strong>STOP USING CALCULATOR WIDGET</strong> :-1:</p>
+<pre><code class="shell language-shell">$ bc -l
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="forcequitaprogram">force quit a program</h2>
+<p><strong>STOP CTRL + ALT + DELETE and choose the program to kill</strong> :-1:</p>
+<pre><code class="shell language-shell">$ killall -9 program_name
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="checkserverresponse">check server response</h2>
+<p><strong>STOP OPENING A BROWSER</strong> :-1:</p>
+<pre><code class="shell language-shell">$ curl -i rbtreevi.web.app
+# curl's -i (--include) option includes HTTP response headers in its output.
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="viewcontentofafile">view content of a file</h2>
+<p><strong>STOP DOUBLE CLICKING A FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ cat apps/settings.py
+# if the file is too big to fit on one page, you can use a 'pager' (less) which shows you one page at a time.
+$ less apps/settings.py
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="searchforatextinafile">search for a text in a file</h2>
+<p><strong>STOP CMD/CTRL + F IN A FILE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ grep -i "Query" file.txt
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="searchinallfilesincurrentworkingdirectoryquicklyentirediskinlessthan15minutes">search in all files in current working directory, quickly (entire disk in less than 15 minutes)</h2>
+<p><strong>STOP CMD/CTRL + F IN A DIRECTORY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ ripgrep -i "Query"
+# brew install ripgrep
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="viewanimage">view an image</h2>
+<p><strong>STOP USING PREVIEW</strong> :-1:</p>
+<pre><code class="shell language-shell">$ imgcat image.png
+# Note: requires iTerm2 terminal.
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="showdisksize">show disk size</h2>
+<p><strong>STOP RIGHT CLICKING DISK ICON OR OPENING DISK UTILITY</strong> :-1:</p>
+<pre><code class="shell language-shell">$ df -h
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="checkcpuusageprocessesandram">check cpu usage, processes and RAM</h2>
+<p><strong>STOP OPENING YOUR ACTIVITY MONITOR OR TASK MANAGER</strong> :-1:</p>
+<pre><code class="shell language-shell">$ top
+</code></pre>
+<p>if you want some more details:</p>
+<pre><code class="shell language-shell">$ htop
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="knowwhetheryourcomputerisunderloadandwhetheritsduetomemoryorcpu">know whether your computer is under load, and whether it's due to memory or CPU</h2>
+<pre><code class="shell language-shell">$ glances
+# brew install glances
+# pip install --user 'glances[all]'
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="powerofforrebootyourcomputer">poweroff or reboot your computer</h2>
+<p>This can be useful when you're patching a server that is accessed via SSH and you don't have a GUI.</p>
+<pre><code class="shell language-shell"># poweroff
+$ sudo shutdown -h now
+# reboot
+$ sudo shutdown -r now
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="locateusbdrives">locate USB drives</h2>
+<pre><code class="shell language-shell">$ df
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="unmountusbdrives">unmount USB drives</h2>
+<pre><code class="shell language-shell">$ sudo umount /dev/sdb1
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="formatusbdrives">format USB drives</h2>
+<pre><code class="shell language-shell"># FAT32
+$ sudo mkfs.vfat /dev/sdb1
+# NTFS
+$ sudo mkfs.ntfs /dev/sdb1
+# exFAT
+$ sudo mkfs.exfat /dev/sdb1
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="checkusbformat">check USB format</h2>
+<pre><code class="shell language-shell">$ sudo fsck /dev/sdb1
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="runcommandonallfilesofadirectory">run command on all files of a directory</h2>
+<p><strong>STOP CLICKING THE FILES ONE BY ONE</strong> :-1:</p>
+<pre><code class="shell language-shell">$ for FILE in *; do echo $FILE; done
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="checknetworkconnectivitytoaremoteaddressandport">check network connectivity to a remote address and port</h2>
+<p><strong>STOP USING NETWORK UTILITY</strong></p>
+<pre><code class="shell language-shell">$ nc -vz www.google.com 443
+$ nc -vz 1.1.1.1 53
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="checkdnsconfigofadomain">check DNS config of a domain</h2>
+<p><strong>STOP USING NETWORK UTILITY</strong></p>
+<pre><code class="shell language-shell">$ dig www.google.com
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="checktheownershipandregistrationofadomain">check the ownership and registration of a domain</h2>
+<p><strong>STOP USING NETWORK UTILITY AND THE WEBSITE OF DOMAIN REGISTRATION PROVIDERS</strong></p>
+<pre><code class="shell language-shell">$ whois www.google.com
+</code></pre>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>
+<!-- ## Quick tips
+
+![CLI tips](./cli_tips.jpg)
+
+[Go to table of contents 🔼](#quick-links) -->
+<h2 id="hotkeys">Hotkeys</h2>
+<p>| Hotkey | Description |
+|----------|-------------|
+| <kbd>Ctrl</kbd>+<kbd>A</kbd> | Go to the beginning of the line you are currently typing on |
+| <kbd>Ctrl</kbd>+<kbd>E</kbd> | Go to the end of the line you are currently typing on |
+| <kbd>Ctrl</kbd>+<kbd>L</kbd> | Clears the Screen, similar to the clear command |
+| <kbd>Ctrl</kbd>+<kbd>U</kbd> | Clears the line before the cursor position. If you are at the end of the line, clears the entire line. |
+| <kbd>Ctrl</kbd>+<kbd>H</kbd> | Same as backspace |
+| <kbd>Ctrl</kbd>+<kbd>R</kbd> | Lets you search through previously used commands |
+| <kbd>Ctrl</kbd>+<kbd>C</kbd> | Kill whatever you are running |
+| <kbd>Ctrl</kbd>+<kbd>D</kbd> | Exit the current shell |
+| <kbd>Ctrl</kbd>+<kbd>Z</kbd> | Puts whatever you are running into a suspended background process. fg restores it. |
+| <kbd>Ctrl</kbd>+<kbd>W</kbd> | Delete the word before the cursor |
+| <kbd>Ctrl</kbd>+<kbd>K</kbd> | Clear the line after the cursor |
+| <kbd>Ctrl</kbd>+<kbd>T</kbd> | Swap the last two characters before the cursor |
+| <kbd>Ctrl</kbd>+<kbd>F</kbd> | Move cursor forward one character |
+| <kbd>Ctrl</kbd>+<kbd>B</kbd> | Move cursor backward one character |
+| <kbd>Esc</kbd>+<kbd>T</kbd> | Swap the last two words before the cursor |
+| <kbd>Alt</kbd>+<kbd>T</kbd> | Same as <kbd>Esc</kbd> + <kbd>T</kbd> |
+| <kbd>Alt</kbd>+<kbd>F</kbd> | Move cursor forward one word on the current line |
+| <kbd>Alt</kbd>+<kbd>B</kbd> | Move cursor backward one word on the current line |
+| <kbd>Esc</kbd>+<kbd>F</kbd> | Same as <kbd>Alt</kbd> + <kbd>F</kbd> |
+| <kbd>Esc</kbd>+<kbd>B</kbd> | Same as <kbd>Alt</kbd> + <kbd>B</kbd> |
+| <kbd>Alt</kbd>+<kbd>.</kbd> | Paste the last word of the most recently command |
+| <kbd>Tab</kbd> | Auto-complete files and directory names |
+<a href="#quick-links">Go to table of contents 🔼</a></p>
+<h2 id="icantrememberthesecrypticcommands">I can't remember these cryptic commands</h2>
+<p>You can always google or <code>man</code> the commands you are not familiar with. Or, checkout <a href="https://github.com/tldr-pages/tldr">tldr</a>, a collection of simplified and community-driven man pages.</p>
+<p><a href="#quick-links">Go to table of contents 🔼</a></p>