{"id":456,"date":"2022-09-13T05:52:33","date_gmt":"2022-09-13T05:52:33","guid":{"rendered":"https:\/\/formatswap.com\/blog\/?p=456"},"modified":"2022-11-12T02:15:23","modified_gmt":"2022-11-12T02:15:23","slug":"how-to-use-the-alias-command-in-linux","status":"publish","type":"post","link":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/","title":{"rendered":"How to Use the Alias Command in Linux"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1024x576.jpg\" alt=\"linux header image\" class=\"wp-image-470\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1024x576.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-300x169.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-768x432.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1536x864.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>In this tutorial you will learn how to create your own custom <a href=\"https:\/\/en.wikipedia.org\/wiki\/Alias_(command)\">alias<\/a> commands in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linux\">Linux<\/a>. Setting up a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linux\">Linux<\/a> <a href=\"https:\/\/en.wikipedia.org\/wiki\/Alias_(command)\">alias<\/a> is a very easy thing to do. Aliases are very beneficial as they save a lot of time, such as remembering long or complicated commands. We will be adding our own <a href=\"https:\/\/en.wikipedia.org\/wiki\/Alias_(command)\">aliases<\/a> by editing the <strong>&#8220;.bashrc&#8221;<\/strong> file. This tutorial will work on virtually all <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linux\">Linux<\/a> distributions. Continue reading below to get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Open the Terminal<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"699\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/open-terminal-1024x699.png\" alt=\"launch terminal in linux\" class=\"wp-image-464\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/open-terminal-1024x699.png 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/open-terminal-300x205.png 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/open-terminal-768x524.png 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/open-terminal.png 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first thing you need to do is open a new Terminal window in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linux\">Linux<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Edit the .bashrc File<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"699\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/nano-bashrc-1024x699.png\" alt=\"edit bashrc\" class=\"wp-image-462\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/nano-bashrc-1024x699.png 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/nano-bashrc-300x205.png 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/nano-bashrc-768x524.png 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/nano-bashrc.png 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you have the new terminal window open, enter the command <strong>nano<\/strong> <strong>~\/.bashrc<\/strong> and press <strong>Enter<\/strong>. This will open your .bashrc file using the nano text editor. The .bashrc file is a script that runs every time you launch Bash. You can add commands here for customizing and automating your <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linux\">Linux<\/a> environment. If you open the file and it is blank it means you do not already have it (the file). The file will be created once you save using Ctrl+X, press the Y key, then press Enter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add the Command Alias&#8217;s<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"699\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/create-custom-alias-1024x699.png\" alt=\"add alias commands to bashrc file\" class=\"wp-image-463\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/create-custom-alias-1024x699.png 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/create-custom-alias-300x205.png 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/create-custom-alias-768x524.png 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/create-custom-alias.png 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Towards the top of your bashrc file you will want to add a few new lines. Afterwards you can begin typing your alias commands. The format to use is <strong>alias aliasname=&#8221;Linux Command&#8221;<\/strong>. For example one of my aliases is <strong>&#8216;alias pg=&#8221;ping google.com&#8221;&#8216;<\/strong>. When the command &#8220;pg&#8221; is ran, it will ping Google. The possibilities with aliases are endless. After adding your custom aliases simply save and close the file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reload the Bash Configuration<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"699\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/reload-source-1024x699.png\" alt=\"reload bashrc\" class=\"wp-image-465\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/reload-source-1024x699.png 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/reload-source-300x205.png 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/reload-source-768x524.png 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/reload-source.png 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Next you will have to reload the .bashrc file to reload the changes you just made. To do this type &#8220;source <strong>~\/.bashrc<\/strong>&#8221; and press <strong>Enter<\/strong>. The alias is now ready to be used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Test the Linux Alias&#8217;s<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"699\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/test-alias-1024x699.png\" alt=\"test the alias command\" class=\"wp-image-466\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/test-alias-1024x699.png 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/test-alias-300x205.png 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/test-alias-768x524.png 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/test-alias.png 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To use your custom <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linux\">Linux<\/a> aliases type the command that was written for it. In my example I used &#8220;<strong>pg&#8221;<\/strong> to ping google.com. Above is an example of the custom alias command running.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Questions?<\/h2>\n\n\n\n<p>If you have any additional questions or thoughts feel free to comment them below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Resources<\/h2>\n\n\n\n<p>View our list of <a href=\"https:\/\/formatswap.com\/blog\/programming\/the-top-5-programming-languages-to-learn-in-2022\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Top 10 Programming Languages to Learn in 2022<\/a>.<\/p>\n\n\n\n<p>Learn <a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-veracrypt-and-encrypt-a-flash-drive-on-ubuntu-22-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install Ubuntu Server 22.04 [Step by Step]<\/a>.<\/p>\n\n\n\n<p>Click here to learn <a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-mysql-on-ubuntu-server-22-04-lts\/\">How to Install MySQL on Ubuntu Server 22.04 LTS.<\/a><\/p>\n\n\n\n<p>View our <a href=\"https:\/\/formatswap.com\/blog\/category\/programming\/\" target=\"_blank\" rel=\"noreferrer noopener\">Programming Articles and Tutorials<\/a>.<\/p>\n\n\n\n<p>Learn <a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-nginx-ubuntu-20-04\/\">How to install and configure Nginx \u2013 Ubuntu 20.04<\/a>.<\/p>\n\n\n\n<p>View all of our available online tools and converters at <a href=\"https:\/\/formatswap.com\" target=\"_blank\" rel=\"noreferrer noopener\">Formatswap.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial you will learn how to create your own custom alias commands in Linux. Setting up a Linux alias is a very easy thing to do. Aliases are very beneficial as they save a lot of time, such as remembering long or complicated commands. We will be adding our own aliases by editing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[4],"tags":[8,35,14],"class_list":["post-456","post","type-post","status-publish","format-standard","hentry","category-linux-tutorials","tag-linux","tag-terminal","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Use the Alias Command in Linux - Format Swap - Tech Tutorials<\/title>\n<meta name=\"description\" content=\"In this tutorial you will learn how to automate commands in Linux using alias&#039;s. You will learn how to set an alias and how to reload Bash.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use the Alias Command in Linux - Format Swap - Tech Tutorials\" \/>\n<meta property=\"og:description\" content=\"In this tutorial you will learn how to automate commands in Linux using alias&#039;s. You will learn how to set an alias and how to reload Bash.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Format Swap - Tech Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-13T05:52:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-12T02:15:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1024x576.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d01ee8e1e4f3718cfcc57eeb8ad6188\"},\"headline\":\"How to Use the Alias Command in Linux\",\"datePublished\":\"2022-09-13T05:52:33+00:00\",\"dateModified\":\"2022-11-12T02:15:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/\"},\"wordCount\":421,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/top-linux-distros-1024x576.jpg\",\"keywords\":[\"linux\",\"terminal\",\"tutorial\"],\"articleSection\":[\"Linux Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/\",\"name\":\"How to Use the Alias Command in Linux - Format Swap - Tech Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/top-linux-distros-1024x576.jpg\",\"datePublished\":\"2022-09-13T05:52:33+00:00\",\"dateModified\":\"2022-11-12T02:15:23+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d01ee8e1e4f3718cfcc57eeb8ad6188\"},\"description\":\"In this tutorial you will learn how to automate commands in Linux using alias's. You will learn how to set an alias and how to reload Bash.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/top-linux-distros.jpg\",\"contentUrl\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/top-linux-distros.jpg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-use-the-alias-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use the Alias Command in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/\",\"name\":\"Format Swap - Tech Tutorials\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d01ee8e1e4f3718cfcc57eeb8ad6188\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/formatswap.com\\\/blog\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCsIPLkRPTbbTaT8YX0Dh2-A\"],\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use the Alias Command in Linux - Format Swap - Tech Tutorials","description":"In this tutorial you will learn how to automate commands in Linux using alias's. You will learn how to set an alias and how to reload Bash.","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:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the Alias Command in Linux - Format Swap - Tech Tutorials","og_description":"In this tutorial you will learn how to automate commands in Linux using alias's. You will learn how to set an alias and how to reload Bash.","og_url":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/","og_site_name":"Format Swap - Tech Tutorials","article_published_time":"2022-09-13T05:52:33+00:00","article_modified_time":"2022-11-12T02:15:23+00:00","og_image":[{"url":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1024x576.jpg","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/formatswap.com\/blog\/#\/schema\/person\/3d01ee8e1e4f3718cfcc57eeb8ad6188"},"headline":"How to Use the Alias Command in Linux","datePublished":"2022-09-13T05:52:33+00:00","dateModified":"2022-11-12T02:15:23+00:00","mainEntityOfPage":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/"},"wordCount":421,"commentCount":0,"image":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1024x576.jpg","keywords":["linux","terminal","tutorial"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/","url":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/","name":"How to Use the Alias Command in Linux - Format Swap - Tech Tutorials","isPartOf":{"@id":"https:\/\/formatswap.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros-1024x576.jpg","datePublished":"2022-09-13T05:52:33+00:00","dateModified":"2022-11-12T02:15:23+00:00","author":{"@id":"https:\/\/formatswap.com\/blog\/#\/schema\/person\/3d01ee8e1e4f3718cfcc57eeb8ad6188"},"description":"In this tutorial you will learn how to automate commands in Linux using alias's. You will learn how to set an alias and how to reload Bash.","breadcrumb":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#primaryimage","url":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros.jpg","contentUrl":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2022\/09\/top-linux-distros.jpg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-use-the-alias-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/formatswap.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use the Alias Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/formatswap.com\/blog\/#website","url":"https:\/\/formatswap.com\/blog\/","name":"Format Swap - Tech Tutorials","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/formatswap.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/formatswap.com\/blog\/#\/schema\/person\/3d01ee8e1e4f3718cfcc57eeb8ad6188","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/formatswap.com\/blog","https:\/\/www.youtube.com\/channel\/UCsIPLkRPTbbTaT8YX0Dh2-A"],"url":"https:\/\/formatswap.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":5,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":706,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions\/706"}],"wp:attachment":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/media?parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/categories?post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/tags?post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}