{"id":17372,"date":"2026-03-09T12:22:16","date_gmt":"2026-03-09T06:52:16","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?p=17372"},"modified":"2026-03-09T12:22:18","modified_gmt":"2026-03-09T06:52:18","slug":"echo-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/echo-command-in-linux","title":{"rendered":"Echo Command in Linux Explained With Examples in 2026"},"content":{"rendered":"\n<p><strong>The echo command in Linux<\/strong> prints text or variable values to standard output. It\u2019s commonly used in Bash scripts to display messages, expand environment variables, control newlines with options like -n and -e, and redirect output to files. Typical use cases include logging, configuration automation, and quick checks in the terminal.<\/p>\n\n\n\n<p>Whether you\u2019re new to shell scripting or optimizing production servers, the echo command in Linux is one of the first tools you\u2019ll use. In this guide, I\u2019ll explain echo with practical examples, options, and best practices from real world hosting and DevOps environments, so you can script confidently and portably.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"what-is-the-echo-command-in-linux\">What is the echo Command in Linux?<\/h2>\n\n\n\n<p><strong>echo is a shell built in (in Bash, Zsh, etc.)<\/strong> that writes its arguments to standard output (stdout). <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"720\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2026\/01\/What-is-the-echo-Command-in-Linux.jpg\" alt=\"Echo Command in Linux\" class=\"wp-image-17469\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2026\/01\/What-is-the-echo-Command-in-Linux.jpg 1280w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2026\/01\/What-is-the-echo-Command-in-Linux-150x84.jpg 150w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>There\u2019s often also an external \/bin\/echo. While both output text, behavior can vary across shells especially with escape sequences and option handling so portability matters.<\/p>\n\n\n\n<p><strong>Basic syntax:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo &#91;options] &#91;string ...]<\/code><\/pre>\n\n\n\n<p><strong>Common options:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-n:<\/strong> Do not output the trailing newline<\/li>\n\n\n\n<li><strong>-e: <\/strong>Enable interpretation of backslash escapes (e.g., \\n, \\t)<\/li>\n\n\n\n<li><strong>-E:<\/strong> Disable interpretation of backslash escapes (default in many shells)<\/li>\n<\/ul>\n\n\n\n<p><strong>Important portability note: <\/strong>POSIX marks some echo behaviors (like -e escapes) as implementation defined. For scripts that must be portable and predictable, prefer printf for complex formatting.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"basic-echo-examples\">Basic echo Examples<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"print-simple-text\">Print simple text<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>echo Hello, World!<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"print-environment-variables\">Print environment variables<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"$HOME\"\necho \"User: $USER, Shell: $SHELL\"<\/code><\/pre>\n\n\n\n<p>Use double quotes to expand variables and preserve spaces; single quotes prevent expansion.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"command-substitution\">Command substitution<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"Today is: $(date +%F)\"\necho \"Kernel: $(uname -r)\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"handle-spaces-and-special-characters\">Handle spaces and special characters<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"Path with spaces: \/var\/www\/My Site\"\necho \"Dollar sign: \\$, Backslash: \\\\, Asterisk literal: \\*\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"newlines-tabs-and-escapes-with-e\">Newlines, Tabs, and Escapes with -e<\/h3>\n\n\n\n<p>With -e, echo interprets backslash escapes. Common sequences include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\\n:<\/strong> newline<\/li>\n\n\n\n<li><strong>\\t:<\/strong> horizontal tab<\/li>\n\n\n\n<li><strong>\\r:<\/strong> carriage return<\/li>\n\n\n\n<li><strong>\\a:<\/strong> alert (bell)<\/li>\n\n\n\n<li><strong>\\b:<\/strong> backspace<\/li>\n\n\n\n<li><strong>\\v:<\/strong> vertical tab<\/li>\n\n\n\n<li><strong>\\xHH:<\/strong> byte with hex value HH<\/li>\n\n\n\n<li><strong>\\0NNN:<\/strong> byte with octal value NNN<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># Newlines and tabs\necho -e \"Line1\\nLine2\\n\\tIndented on Line3\"\n\n# Carriage return to overwrite same line (e.g., status updates)\necho -ne \"Processing... \\rDone!\\n\"\n\n# Hex and octal bytes (may vary by shell)\necho -e \"A hex smile? \\x3A\\x29\"\necho -e \"Octal newline\\012Next line\"<\/code><\/pre>\n\n\n\n<p><strong>Portability tip:<\/strong> If your script targets multiple shells or systems, prefer printf for escapes and formatting. printf is consistent across POSIX systems.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"suppress-the-trailing-newline-with-n\">Suppress the Trailing Newline with -n<\/h2>\n\n\n\n<p>-n keeps the cursor on the same line useful for prompts or concatenating outputs.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Prompt without newline\necho -n \"Enter your username: \"\nread user\necho \"Hello, $user!\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># Concatenate on same line\necho -n \"Status: \"\necho \"OK\"<\/code><\/pre>\n\n\n\n<p>If your text begins with a dash (e.g., \u201c-n\u201d), use &#8212; to end option parsing: echo &#8212; &#8220;-n is text&#8221;.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"redirecting-echo-output-to-files-and-pipes\">Redirecting echo Output to Files and Pipes<\/h2>\n\n\n\n<p>echo becomes powerful when combined with redirection and pipelines for automation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Overwrite a file\necho \"server=8.8.8.8\" > resolv.conf\n\n# Append to a log\necho \"$(date +%F\\ %T) - Job finished\" >> \/var\/log\/backup.log\n\n# Pipe into another command\necho \"SELECT 1;\" | mysql -u root -p\n\n# Use sudo safely with tee (redirecting with sudo alone won't work due to shell permissions)\necho \"net.ipv4.ip_forward=1\" | sudo tee -a \/etc\/sysctl.conf > \/dev\/null\n\n# Write multiple lines with EOF (cat + heredoc is often cleaner than many echoes)\ncat > \/etc\/motd &lt;&lt;'EOF'\nWelcome to the server.\nAuthorized use only.\nEOF<\/code><\/pre>\n\n\n\n<p>In hosting environments (e.g., when configuring Nginx, PHP-FPM, or environment files), echo + tee is a safe way to write files with elevated privileges.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"environment-variables-and-quoting-best-practices\">Environment Variables and Quoting Best Practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use double quotes to expand variables and preserve whitespace: <strong>echo &#8220;$PATH&#8221;<\/strong><\/li>\n\n\n\n<li>Use single quotes to print literals: <strong>echo &#8216;$PATH&#8217;<\/strong><\/li>\n\n\n\n<li>Use braces for clarity in concatenation: <strong>echo &#8220;Home: ${HOME}\/projects&#8221;<\/strong><\/li>\n\n\n\n<li>Quote variables to avoid word splitting and globbing: <strong>echo &#8220;$file_name&#8221;<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>name=\"YouStable\"\necho \"Provider: $name\"     # expands\necho 'Provider: $name'     # literal\n\nfile=\"*.log\"\necho \"$file\"               # prints *.log\necho $file                 # may expand to matching files<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"echo-in-shell-scripts-and-automation\">Echo in Shell Scripts and Automation<\/h2>\n\n\n\n<p>In production scripts, echo is commonly used for logging, status messages, and generating configuration on the fly. Below is a robust pattern seen across <strong><a href=\"https:\/\/www.youstable.com\/blog\/create-ci-cd-on-linux-server\">CI\/CD<\/a><\/strong> and server automation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env bash\nset -euo pipefail\n\nlog() { echo \"&#91;$(date +%F\\ %T)] $*\"; }\nerr() { echo \"&#91;$(date +%F\\ %T)] ERROR: $*\" &gt;&amp;2; }\n\nlog \"Starting deployment\"\nif systemctl is-active --quiet nginx; then\n  log \"Nginx is running\"\nelse\n  err \"Nginx is not running\"\n  exit 1\nfi\n\n# Generate a small .env file\necho \"APP_ENV=production\" &gt; \/var\/www\/app\/.env\necho \"DB_HOST=localhost\" &gt;&gt; \/var\/www\/app\/.env\n\nlog \"Deployment finished\"<\/code><\/pre>\n\n\n\n<p>Redirect to stderr with &gt;&amp;2 for error messages. For multi line files, heredocs or printf often make scripts cleaner than many echo calls.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"devops-and-hosting-use-cases\">DevOps and Hosting Use Cases<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Provisioning:<\/strong> echo lines into config files during server bootstrap (e.g., sysctl, limits.conf, .env)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youstable.com\/blog\/install-cron-jobs-on-linux\"><strong>CRON jobs:<\/strong><\/a> echo status to logs for easy audit<\/li>\n\n\n\n<li><strong>Nginx\/Apache templates:<\/strong> echo variables into site configs (often via heredocs)<\/li>\n\n\n\n<li><strong>Kubernetes\/Docker:<\/strong> echo secrets into files inside containers (with caution and correct permissions)<\/li>\n<\/ul>\n\n\n\n<p>On managed Linux hosting like <strong><a href=\"https:\/\/www.youstable.com\/\">YouStable<\/a><\/strong>, echo helps automate one off tweaks without full config management useful for quickly setting maintenance banners, updating environment variables, or seeding initial app settings. For larger fleets, pair echo with Ansible or Terraform for repeatable automation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"common-pitfalls-and-portability-tips\">Common Pitfalls and Portability Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-e behavior varies:<\/strong> Some shells ignore -e unless explicitly enabled; others process escapes by default. For reliable formatting, use printf.<\/li>\n\n\n\n<li><strong>Strings starting with -n or -e:<\/strong> Use &#8212; to stop option parsing: echo &#8212; &#8220;-n is text&#8221;.<\/li>\n\n\n\n<li>Globbing and word splitting: Always quote variables and star characters to avoid unintended expansion.<\/li>\n\n\n\n<li><strong>Trailing backslashes: <\/strong>echo -e &#8220;line\\&#8221; may behave unexpectedly; escape carefully or switch to printf.<\/li>\n\n\n\n<li><strong>NUL bytes: <\/strong>echo generally can\u2019t output NULs portably; if you need binary safe output, use printf or dedicated tools.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"echo-vs-printf-which-should-you-use\">echo vs printf: Which Should You Use?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use echo when you need simple, human readable messages with minimal formatting.<\/li>\n\n\n\n<li>Use printf for precise, portable formatting, escape sequences, numeric formatting, and binary safe output.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># echo: quick message\necho \"Backup complete\"\n\n# printf: predictable formatting\nprintf \"User: %s | ID: %d\\n\" \"$USER\" 1001\n\n# Colors (more reliable with printf)\nprintf \"\\033&#91;32mSUCCESS\\033&#91;0m\\n\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"frequently-used-one-liners-with-echo\">Frequently Used One Liners with echo<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># Create or overwrite a config file\necho \"max_connections=200\" &gt; \/etc\/myapp.conf\n\n# Append a public SSH key (ensure correct permissions)\necho \"ssh-ed25519 AAAA... user@host\" &gt;&gt; ~\/.ssh\/authorized_keys\n\n# Quick JSON creation (for small payloads)\necho '{\"enabled\": true, \"env\": \"prod\"}' &gt; config.json\n\n# Silent success message in scripts, then exit\necho \"OK\" &gt;&amp;2; exit 0\n\n# Create a .env file with multiple values\ncat &gt; .env &lt;&lt;EOF\nAPP_ENV=production\nCACHE_DRIVER=redis\nEOF\n\n# Test a port open via netcat with a message\necho \"PING\" | nc -v -w 2 127.0.0.1 6379\n\n# Use tee with sudo to write root-owned files\necho \"fs.file-max=100000\" | sudo tee \/etc\/sysctl.d\/99-file-max.conf &gt; \/dev\/null<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"best-practices-recap\">Best Practices Recap<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For simple output, echo is fine; for formatting and portability, favor printf.<\/li>\n\n\n\n<li>Quote variables and strings to avoid globbing and word splitting.<\/li>\n\n\n\n<li>Use &#8212; to prevent option misinterpretation when printing strings beginning with a dash.<\/li>\n\n\n\n<li>Prefer heredocs or printf for multi line configs.<\/li>\n\n\n\n<li>Combine echo with tee and proper permissions for safe file writes on servers.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-ast-global-color-1-background-color has-background\"><strong>Also take a look at these commands<br>\u2022 <a href=\"https:\/\/www.youstable.com\/blog\/chocolatey-install-command\">Chocolatey Install Command Explained With Example<\/a><br>\u2022 <a href=\"https:\/\/www.youstable.com\/blog\/chown-command-in-linux\">Chown Command in Linux Explained With Examples<\/a><br>\u2022 <a href=\"https:\/\/www.youstable.com\/blog\/nmap-command-in-linux\">NMAP Command in Linux | Ultimate Network Scanning Guide<\/a><br>\u2022 <a href=\"https:\/\/www.youstable.com\/blog\/head-command-in-linux\">Head Command in linux | Complete User Guide with Examples<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"faqs\">FAQs<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1768045261855\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"whats-the-difference-between-bash-echo-and-bin-echo\">What\u2019s the difference between Bash echo and \/bin\/echo?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Bash echo is a shell built in, while \/bin\/echo is an external binary. Built-ins avoid a process spawn and may handle options differently from \/bin\/echo. Because behaviors vary (especially -e and escape handling), scripts should not mix assumptions; for predictability, use printf.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768045442893\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"why-does-echo-e-not-work-on-my-system\">Why does echo -e not work on my system?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Some shells treat -e as a literal string, not an option. Others already interpret escapes by default. This inconsistency is why POSIX discourages relying on echo for escape processing. If you need newlines, tabs, or hex escapes, switch to printf for consistent results.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768045452764\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-do-i-echo-a-dollar-sign-backslash-or-quotes\">How do I echo a dollar sign, backslash, or quotes?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Quote and\/or escape special characters. Examples: echo &#8220;\\$HOME&#8221; prints a dollar sign and HOME literally. echo &#8220;\\\\&#8221; prints a backslash. echo &#8216;&#8221;double quotes&#8221;&#8216; prints double quotes; echo &#8220;&#8216;single quotes'&#8221; prints single quotes. When in doubt, wrap the entire string in single quotes and escape embedded single quotes as needed.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768045459298\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-can-i-add-color-to-terminal-output-using-echo\">How can I add color to terminal output using echo?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can emit ANSI escape codes, but printf is more reliable. Example: printf &#8220;\\033[31mERROR\\033[0m\\n&#8221; prints red text. With echo, some shells require -e and proper escaping: echo -e &#8220;\\e[32mOK\\e[0m&#8221;. For scripts targeting multiple systems, prefer printf.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768045466318\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"should-i-use-echo-or-printf-in-production-scripts\">Should I use echo or printf in production scripts?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use echo for simple, human readable messages. Use printf when you need consistent formatting, reliable escape handling, or to avoid portability issues. On managed hosting like YouStable, we recommend printf for CI\/CD pipelines and echo for quick logs and one liners.<\/p>\n<p>Mastering the echo command in Linux is foundational for any sysadmin or developer. With the techniques above and an eye on portability you\u2019ll write cleaner scripts, automate faster, and avoid subtle bugs across environments. If you\u2019re building on YouStable\u2019s Linux hosting, these practices integrate seamlessly into your deployment workflows.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The echo command in Linux prints text or variable values to standard output. It\u2019s commonly used in Bash scripts to [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":18631,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[350],"tags":[],"class_list":["post-17372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2026\/01\/Echo-Command-in-Linux.jpg","author_info":{"display_name":"Sanjeet Chauhan","author_link":"https:\/\/www.youstable.com\/blog\/author\/sanjeet"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=17372"}],"version-history":[{"count":10,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17372\/revisions"}],"predecessor-version":[{"id":19329,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17372\/revisions\/19329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/18631"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=17372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=17372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=17372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}