{"id":21877,"date":"2017-04-06T07:25:18","date_gmt":"2017-04-06T12:25:18","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=21877"},"modified":"2022-06-03T03:42:14","modified_gmt":"2022-06-03T08:42:14","slug":"how-to-create-bash-aliases","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/","title":{"rendered":"How to Create Bash Aliases"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-24760\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg\" alt=\"How to Create Bash Aliases\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>In this tutorial, we will show you how to create bash aliases on a Linux VPS running Ubuntu 16.04 as an operating system. In general, a Bash alias is simply a keyboard shortcut, an abbreviation, a means of avoiding typing a long command line command sequence. Follow the tutorial below and you should be able to create bash aliases in few minutes.<br \/>\n<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69eae9647dffc\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69eae9647dffc\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#1-Create-a-Bash-Alias\" >1. Create a Bash Alias<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#2-create-aliases-permanently\" >2. create aliases permanently<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#3-List-All-Files\" >3. List All Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#4-Download-Ubuntu-OS-Package\" >4. Download Ubuntu OS Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#5-Upgrade-OS-Packages\" >5. Upgrade OS Packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#6-Active-Processes-Info\" >6. Active Processes Info<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#7-Find-Memory-Hungry-Processes\" >7. Find Memory-Hungry Processes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#8-Restart-Server\" >8. Restart Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#9-Change-the-Default-Output-of-the-%E2%80%98df-Command\" >9. Change the Default Output of the &#8216;df&#8217; Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#10-Change-the-Default-Output-of-the-%E2%80%98ping-Command\" >10. Change the Default Output of the &#8216;ping&#8217; Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#11-Remove-Alias\" >11. Remove Alias<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#12-Unset-all-aliases\" >12. Unset all aliases<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Create-a-Bash-Alias\"><\/span>1. Create a Bash Alias<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Creating and using bash aliases is very useful. Aliases can be defined directly on the command line, or in .bash_profile, or you can specify user-defined aliases to the ~\/.bashrc file. The syntax of creating a bash alias is the following:<\/p>\n<pre>alias name='unix command \/with some options\/parameters'<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-create-aliases-permanently\"><\/span>2. create aliases permanently<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to create aliases permanently, edit the ~.bashrc file, add the aliases at the end of the file and save it.<\/p>\n<p>The changes in .bashrc would be active after you log out and log back in, or you can use the following command to source the file and enable newly created aliases instantly:<\/p>\n<pre>source ~\/.bashrc<\/pre>\n<h3>Alias examples<\/h3>\n<h2><span class=\"ez-toc-section\" id=\"3-List-All-Files\"><\/span>3. List All Files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To list all files, including hidden files (i.e. starting with .), using a long listing format and append indicator (one of *\/=&gt;@|) to entries, set the following alias:<\/p>\n<pre>alias lh='ls -alF |less'<\/pre>\n<pre># lh\r\ndrwxr-xr-x  23 root root     4096 Apr  2 10:19 .\/\r\ndrwxr-xr-x  23 root root     4096 Apr  2 10:19 ..\/\r\ndrwxr-xr-x   2 root root     4096 Mar  4 10:54 bin\/\r\ndrwxr-xr-x   2 root root     4096 Oct  4  2012 boot\/\r\ndrwxr-xr-x   6 root  500     1960 Apr  2 10:14 dev\/\r\ndrwxr-xr-x 115 root root     4096 Apr  4 03:31 etc\/\r\ndrwxr-xr-x   2 root root     4096 Jan 27  2013 home\/\r\ndrwxr-xr-x  15 root root     4096 Mar  4 10:54 lib\/\r\ndrwxr-xr-x   2 root root     4096 Mar 28 12:18 lib64\/\r\ndrwxr-xr-x   2 root root     4096 Oct  4  2012 media\/\r\ndrwxr-xr-x   2 root root     4096 Apr 24  2016 mnt\/\r\ndrwxr-xr-x   2 root root     4096 Oct  4  2012 opt\/\r\ndr-xr-xr-x 101 root root        0 Apr  2 10:08 proc\/\r\ndrwx------   7 root root     4096 Apr  2 10:20 root\/\r\ndrwxr-xr-x  25 root root      780 Apr  4 09:37 run\/\r\ndrwxr-xr-x   2 root root     4096 Apr  2 10:13 sbin\/\r\ndrwxr-xr-x   2 root root     4096 Oct  4  2012 srv\/\r\ndrwxr-xr-x   7 root root        0 Apr  2 10:08 sys\/\r\ndrwxrwxrwt   9 root root     4096 Apr  4 18:05 tmp\/\r\ndrwxr-xr-x  10 root root     4096 Oct  4  2012 usr\/\r\ndrwxr-xr-x  12 root root     4096 Oct  3  2013 var\/\r\n(END)<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Download-Ubuntu-OS-Package\"><\/span>4. Download Ubuntu OS Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Download Ubuntu OS package information from configured repositories via sources.list:<\/p>\n<pre>alias agu='sudo apt-get update'<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Upgrade-OS-Packages\"><\/span>5. Upgrade OS Packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Upgrade OS packages currently installed on your <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 16.04 VPS<\/a> from all configured repositories:<\/p>\n<pre>alias agg='sudo apt-get upgrade'<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Active-Processes-Info\"><\/span>6. Active Processes Info<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Display information about the active processes in a custom full wide format listing:<\/p>\n<pre>alias psw=\"ps auwwwwxf |less\"\r\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\r\nroot         1  0.0  0.3  37648  3880 ?        Ss   Apr02   0:01 init -z\r\nroot         2  0.0  0.0      0     0 ?        S    Apr02   0:00 [kthreadd\/1308]\r\nroot         3  0.0  0.0      0     0 ?        S    Apr02   0:00  \\_ [khelper\/1308]\r\nroot        47  0.0  0.3  42176  3992 ?        Ss   Apr02   0:01 \/lib\/systemd\/systemd-journald\r\nroot        50  0.0  0.1  41664  1452 ?        Ss   Apr02   0:00 \/lib\/systemd\/systemd-udevd\r\nroot       209  0.0  0.1  47572  1624 ?        Ss   Apr02   0:00 \/sbin\/rpcbind -f -w\r\nroot       212  0.0  0.1  28492  1480 ?        Ss   Apr02   0:00 \/lib\/systemd\/systemd-logind\r\nroot       213  0.0  0.1  26012  1288 ?        Ss   Apr02   0:00 \/usr\/sbin\/cron -f\r\nsyslog     215  0.0  0.1 262488  1824 ?        Ssl  Apr02   0:00 \/usr\/sbin\/rsyslogd -n\r\nmessage+   216  0.0  0.1  42852  1840 ?        Ss   Apr02   0:00 \/usr\/bin\/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation\r\nroot       258  0.0  0.2  65464  2492 ?        Ss   Apr02   0:00 \/usr\/sbin\/sshd -D\r\nbind       259  0.0  1.7 287416 18620 ?        Ssl  Apr02   0:00 \/usr\/sbin\/named -f -u bind\r\nmysql      284  0.0 12.1 1355252 127012 ?      Ssl  Apr02   1:33 \/usr\/sbin\/mysqld\r\nroot       297  0.0  0.1  18100  1084 ?        Ss   Apr02   0:00 \/usr\/sbin\/dovecot\r\ndovecot    307  0.0  0.0   9464   704 ?        S    Apr02   0:00  \\_ dovecot\/anvil\r\nroot       308  0.0  0.0   9596   932 ?        S    Apr02   0:00  \\_ dovecot\/log\r\nroot       349  0.0  0.2 100188  2284 ?        Ss   Apr02   0:00 \/usr\/sbin\/saslauthd -a pam -c -m \/var\/run\/saslauthd -n 2\r\nroot       359  0.0  0.2 100188  2272 ?        S    Apr02   0:00  \\_ \/usr\/sbin\/saslauthd -a pam -c -m \/var\/run\/saslauthd -n 2\r\nroot       364  0.0  0.0  12788   852 tty2     Ss+  Apr02   0:00 \/sbin\/agetty --noclear tty2 linux\r\nroot       365  0.0  0.0  12788   856 tty1     Ss+  Apr02   0:00 \/sbin\/agetty --noclear --keep-baud console 115200 38400 9600 vt220\r\nroot       378  0.0  0.0  15000   832 ?        Ss   Apr02   0:00 \/usr\/sbin\/xinetd -pidfile \/run\/xinetd.pid -stayalive -inetd_compat -inetd_ipv6\r\nroot       407  0.0  0.4 108080  4664 ?        Ss   Apr02   0:08 sendmail: MTA: accepting connections\r\nroot       416  0.0  1.8 336564 19064 ?        Ss   Apr02   0:04 \/usr\/sbin\/apache2 -k start\r\nwww-data 23498  0.0  0.7 337108  7528 ?        S    00:28   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 23499  0.0  0.7 337116  7460 ?        S    00:28   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 23500  0.0  0.7 337088  7488 ?        S    00:28   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 23501  0.0  0.7 337036  7572 ?        S    00:28   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 23502  0.0  0.7 337112  7640 ?        S    00:28   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 24170  0.0  0.7 337116  7528 ?        S    01:23   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 27193  0.0  0.6 336656  7284 ?        S    09:50   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nwww-data 30187  0.0  0.5 336596  5520 ?        S    17:41   0:00  \\_ \/usr\/sbin\/apache2 -k start\r\nroot     30766  0.0  0.0  27492   600 ?        Ss   18:02   0:00 pts\/0\r\nroot     30767  0.0  0.1  18192  2064 pts\/0    Ss   18:02   0:00  \\_ -bash\r\nroot     31860  0.0  0.1  34504  1588 pts\/0    R+   18:41   0:00      \\_ ps auwwwwxf\r\nroot     31861  0.0  0.0   6688  1000 pts\/0    S+   18:41   0:00      \\_ less\r\n(END)\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Find-Memory-Hungry-Processes\"><\/span>7. Find Memory-Hungry Processes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Find the top 10 memory-hungry processes on your server:<\/p>\n<pre>alias ram='while read command percent rss; do if [[ \"${command}\" != \"COMMAND\" ]]; then rss=\"$(bc &lt;&lt;&lt; \"scale=2;${rss}\/1024\")\"; fi; printf \"%-26s%-8s%s\\n\" \"${command}\" \"${percent}\" \"${rss}\"; done &lt; &lt;(ps -A --sort -rss -o comm,pmem,rss | head -n 11)'<\/pre>\n<p>To enable this alias, you need to have &#8216;bc&#8217; package installed on your server, so install it on your server if it is not already done so:<\/p>\n<pre>apt-get install bc<\/pre>\n<pre># ram\r\nCOMMAND                   %MEM    RSS\r\nmysqld                    12.1    124.03\r\npython                    6.9     71.13\r\napache2                   1.8     18.61\r\nnamed                     1.7     18.18\r\napache2                   0.7     7.46\r\napache2                   0.7     7.39\r\napache2                   0.7     7.35\r\napache2                   0.7     7.35\r\napache2                   0.7     7.31\r\napache2                   0.7     7.28<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"8-Restart-Server\"><\/span>8. Restart Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create an alias to restart the server:<\/p>\n<pre>alias rst='sudo shutdown \u2013r now'<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Change-the-Default-Output-of-the-%E2%80%98df-Command\"><\/span>9. Change the Default Output of the &#8216;df&#8217; Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Change the default output of the &#8216;df&#8217; command and print sizes in powers of 1024:<\/p>\n<pre>alias df='df -h'<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"10-Change-the-Default-Output-of-the-%E2%80%98ping-Command\"><\/span>10. Change the Default Output of the &#8216;ping&#8217; Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Change the default output of the &#8216;ping&#8217; command and stop after sending 4 ECHO_REQUEST packets:<\/p>\n<pre>alias ping='ping -c 4'<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"11-Remove-Alias\"><\/span>11. Remove Alias<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Removing aliases is as simple as adding them. To unset a specific alias, use:<\/p>\n<pre># unalias lh\r\n# lh\r\n-bash: lh: command not found\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"12-Unset-all-aliases\"><\/span>12. Unset all aliases<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To unset all aliases, use the following command:<\/p>\n<pre># unalias -a<\/pre>\n<hr \/>\n<p>Of course, you don\u2019t have to\u00a0create bash aliases if you use one of our <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\">managed VPS hosting\u00a0plans<\/a>, in which case you can simply ask our expert Linux admins to <strong>create bash aliases<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span><\/strong>. If you liked this post on how to create bash aliases, please share it with your friends on the social networks using the buttons or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to create bash aliases on a Linux VPS running Ubuntu 16.04 as &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Create Bash Aliases\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#more-21877\" aria-label=\"Read more about How to Create Bash Aliases\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24760,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[1546],"class_list":["post-21877","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-bash-aliases","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Create Bash Aliases | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Create Bash Aliases | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Bash Aliases\" \/>\n<meta property=\"og:description\" content=\"How to Create Bash Aliases | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-06T12:25:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:42:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Create Bash Aliases\",\"datePublished\":\"2017-04-06T12:25:18+00:00\",\"dateModified\":\"2022-06-03T08:42:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/\"},\"wordCount\":448,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/How-to-Create-Bash-Aliases.jpg\",\"keywords\":[\"bash aliases\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/\",\"name\":\"How to Create Bash Aliases | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/How-to-Create-Bash-Aliases.jpg\",\"datePublished\":\"2017-04-06T12:25:18+00:00\",\"dateModified\":\"2022-06-03T08:42:14+00:00\",\"description\":\"How to Create Bash Aliases | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/How-to-Create-Bash-Aliases.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/How-to-Create-Bash-Aliases.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to Create Bash Aliases\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-bash-aliases\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Bash Aliases\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create Bash Aliases | RoseHosting","description":"How to Create Bash Aliases | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Bash Aliases","og_description":"How to Create Bash Aliases | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-04-06T12:25:18+00:00","article_modified_time":"2022-06-03T08:42:14+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Create Bash Aliases","datePublished":"2017-04-06T12:25:18+00:00","dateModified":"2022-06-03T08:42:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/"},"wordCount":448,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg","keywords":["bash aliases"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/","name":"How to Create Bash Aliases | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg","datePublished":"2017-04-06T12:25:18+00:00","dateModified":"2022-06-03T08:42:14+00:00","description":"How to Create Bash Aliases | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/How-to-Create-Bash-Aliases.jpg","width":1200,"height":600,"caption":"How to Create Bash Aliases"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-bash-aliases\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create Bash Aliases"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/21877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=21877"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/21877\/revisions"}],"predecessor-version":[{"id":41885,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/21877\/revisions\/41885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24760"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=21877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=21877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=21877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}