{"id":59098,"date":"2023-10-16T15:01:14","date_gmt":"2023-10-16T07:01:14","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=59098"},"modified":"2023-10-22T15:34:08","modified_gmt":"2023-10-22T07:34:08","slug":"linux-command-cat","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/","title":{"rendered":"How to Use the Cat Command in Linux"},"content":{"rendered":"<p>The <code>cat<\/code> command, short for \u201cconcatenate,\u201d is a commonly-used tool in Linux, enabling users to view, create, and concentrate files, or redirect their output. In this post, we\u2019ll explore how both new and experienced Linux users can leverage the <code>cat<\/code> command for various tasks.<\/p>\n<p>The general syntax of the <code>cat<\/code> command is as follow:<\/p>\n<pre>$ cat [OPTION] [FILE]...<\/pre>\n<hr>\n<h3>1. Use <code>cat<\/code> to create a new file and add content<\/h3>\n<pre>cat > filename<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<p>The command <code>cat > vegetables.txt<\/code> takes the standard input and redirects it to a file named \u201cvegetables.txt\u201d. When you execute this command, your terminal doesn\u2019t display any output, but instead waits for you to enter text from the keyboard.<\/p>\n<p>Whatever you type will be written to \u201cvegetables.txt\u201d. To finish and save the file, you\u2019ll need to press <code>CTRL-D<\/code> (or <code>CTRL-Z<\/code> on Windows systems using some terminal applications).<\/p>\n<p>Here\u2019s an example of how you might use it:<\/p>\n<pre>$ cat > vegetables.txt\r\nCarrot\r\nBroccoli\r\nSpinach\r\n^D<\/pre>\n<p>At this point, a file named \u201cvegetables.txt\u201d would be created with the following content:<\/p>\n<pre>Carrot\r\nBroccoli\r\nSpinach<\/pre>\n<hr>\n<h3>2. Display file\u2019s content with <code>cat<\/code><\/h3>\n<pre>cat filename<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<p>Assume the file contains a list of common vegetables; executing the <code>command cat vegetables.txt<\/code> would display the contents of the file in the terminal.<\/p>\n<pre>Carrots\r\nBroccoli\r\nSpinach\r\nTomatoes\r\nCucumbers\r\nPeppers\r\nOnions\r\nPotatoes\r\nKale\r\nLettuce<\/pre>\n<hr>\n<h3>3. Display content of multiple files with <code>cat<\/code><\/h3>\n<pre>cat filename_1 filename_2<\/pre>\n<p>Example:<\/p>\n<p>Assuming the contents of the files fruits.txt and vegetables.txt are respectively as follows:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\n<\/pre>\n<pre>Carrot\r\nLettuce\r\nTomato\r\n<\/pre>\n<p>The command <code>cat fruits.txt vegetables.txt<\/code> would produce:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\nCarrot\r\nLettuce\r\nTomato\r\n<\/pre>\n<hr>\n<h3>4. Display content with line numbering with <code>cat<\/code><\/h3>\n<pre>cat -n filename<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<p>If the contents of <code>fruits.txt<\/code> are the same as in the previous example:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\n<\/pre>\n<p>Then the command <code>cat -n fruits.txt<\/code> would produce:<\/p>\n<pre>\r\n     1\tApple\r\n     2\tBanana\r\n     3\tCherry\r\n<\/pre>\n<hr>\n<h3>5. Copy, replace, or replicate a file\u2019s content using <code>cat<\/code><\/h3>\n<pre>cat filename new_filename<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<p>The command <code>cat fruits.txt > new_fruits.txt<\/code> will take the contents of <code>fruits.txt<\/code> and write them into a new file named <code>new_fruits.txt<\/code>. This command won\u2019t display any output to the terminal, assuming it executes successfully.<\/p>\n<p>If <code>fruits.txt<\/code> has the same content as before:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\n<\/pre>\n<p>After running the command, the content of <code>new_fruits.txt<\/code> will be:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\n<\/pre>\n<hr>\n<h3>6. Merge multiple files\u2019 content into one with <code>cat<\/code><\/h3>\n<pre>cat filename_1 filename_2 > filename_3<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<p>The command <code>cat fruits.txt vegetable.txt > grocery.txt<\/code> will concatenate the contents of <code>fruits.txt<\/code> and <code>vegetable.txt<\/code>, then redirect the output to a file called <code>grocery.txt<\/code>. If either of the input files doesn\u2019t exist, an error message will be displayed in the terminal, but you won\u2019t see the concatenated contents in the terminal because they are being redirected to <code>grocery.txt<\/code>.<\/p>\n<p>Suppose <code>fruits.txt<\/code> contains:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\n<\/pre>\n<p>And <code>vegetable.txt<\/code> contains:<\/p>\n<pre>Carrot\r\nLettuce\r\nTomato\r\n<\/pre>\n<p>After running the command, the terminal won\u2019t show any output (unless there\u2019s an error), but the file <code>grocery.txt<\/code> will contain:<\/p>\n<pre>Apple\r\nBanana\r\nCherry\r\nCarrot\r\nLettuce\r\nTomato\r\n<\/pre>\n<p>If <code>vegetable.txt<\/code> was misspelled or doesn\u2019t exist, you would see an error in the terminal similar to:<\/p>\n<pre>cat: vegetable.txt: No such file or directory\r\n<\/pre>\n<hr>\n<h3 style=\"padding-bottom:10px\">More Linux commands:<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"150\">Directory Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rm-rmdir\/\"><code>rmdir<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cd\/\"><code>cd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-pwd\/\"><code>pwd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-exa\/\"><code>exa<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ls\/\"><code>ls<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/\"><code>cat<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cp\/\"><code>cp<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-dd\/\"><code>dd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-less\/\"><code>less<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-touch\/\"><code>touch<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\"><code>ln<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\"><code>rename<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-more\/\"><code>more<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-head\/\"><code>head<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File System Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-chown\/\"><code>chown<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mkfs\/\"><code>mkfs<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-locate\/\"><code>locate<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Networking<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ping\/\"><code>ping<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-curl\/\"><code>curl<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-wget\/\"><code>wget<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-iptables\/\"><code>iptables<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mtr\/\"><code>mtr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Search and Text Processing<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\"><code>find<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-grep\/\"><code>grep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sed\/\"><code>sed<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-whatis\/\"><code>whatis<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ripgrep\/\"><code>ripgrep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\"><code>fd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-tldr\/\"><code>tldr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">System Information and Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-env\/\"><code>env<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-history\/\"><code>history<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\"><code>top<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-who\/\"><code>who<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-htop\/\"><code>htop<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-glances\/\"><code>glances<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-lsof\/\"><code>lsof<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">User and Session Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-screen\/\"><code>screen<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-su\/\"><code>su<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sudo\/\"><code>sudo<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-open\/\"><code>open<\/code><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>Understand the &#8216;cat&#8217; command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3397],"tags":[888,3316],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use the Cat Command in Linux - Hongkiat<\/title>\n<meta name=\"description\" content=\"Understand the &#039;cat&#039; command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.\" \/>\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.hongkiat.com\/blog\/linux-command-cat\/\" \/>\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 Cat Command in Linux\" \/>\n<meta property=\"og:description\" content=\"Understand the &#039;cat&#039; command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-16T07:01:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-22T07:34:08+00:00\" \/>\n<meta name=\"author\" content=\"Hongkiat.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat.com\" \/>\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:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/\"},\"author\":{\"name\":\"Hongkiat.com\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\"},\"headline\":\"How to Use the Cat Command in Linux\",\"datePublished\":\"2023-10-16T07:01:14+00:00\",\"dateModified\":\"2023-10-22T07:34:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/\"},\"wordCount\":386,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Linux\",\"Linux Commands\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/\",\"name\":\"How to Use the Cat Command in Linux - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2023-10-16T07:01:14+00:00\",\"dateModified\":\"2023-10-22T07:34:08+00:00\",\"description\":\"Understand the 'cat' command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-cat\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use the Cat Command in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\",\"name\":\"Hongkiat.com\",\"description\":\"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use the Cat Command in Linux - Hongkiat","description":"Understand the 'cat' command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.","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.hongkiat.com\/blog\/linux-command-cat\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the Cat Command in Linux","og_description":"Understand the 'cat' command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.","og_url":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2023-10-16T07:01:14+00:00","article_modified_time":"2023-10-22T07:34:08+00:00","author":"Hongkiat.com","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/"},"author":{"name":"Hongkiat.com","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3"},"headline":"How to Use the Cat Command in Linux","datePublished":"2023-10-16T07:01:14+00:00","dateModified":"2023-10-22T07:34:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/"},"wordCount":386,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Linux","Linux Commands"],"articleSection":["Desktop"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/","url":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/","name":"How to Use the Cat Command in Linux - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2023-10-16T07:01:14+00:00","dateModified":"2023-10-22T07:34:08+00:00","description":"Understand the 'cat' command in Linux more. This guide offers insights into viewing, creating, and concentrating files, ensuring you leverage its full potential.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use the Cat Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3","name":"Hongkiat.com","description":"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/com\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-fnc","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/59098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=59098"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/59098\/revisions"}],"predecessor-version":[{"id":69941,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/59098\/revisions\/69941"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=59098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=59098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=59098"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=59098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}