{"id":12315,"date":"2026-03-09T12:31:44","date_gmt":"2026-03-09T07:01:44","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?p=12315"},"modified":"2026-03-09T12:31:46","modified_gmt":"2026-03-09T07:01:46","slug":"head-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/head-command-in-linux","title":{"rendered":"Head Command in linux | Complete User Guide with Examples 2026"},"content":{"rendered":"\n<p><strong>The head command in Linux<\/strong> prints the beginning of files or input, letting you quickly preview the first lines or bytes without opening the entire file. By default, head shows the first 10 lines, supports multiple files, and works with pipes. It\u2019s essential for log inspection, data sampling, and shell scripting.<\/p>\n\n\n\n<p>If you regularly manage servers, debug applications, or process datasets, learning the head command in Linux is a must. This beginner friendly guide explains head\u2019s syntax, options, practical use cases, and advanced tips, crafted from 12+ years of hands on hosting and sysadmin experience at YouStable.<\/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-head-command-in-linux\">What is the head Command in Linux?<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2304\" height=\"1728\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/image-28.png\" alt=\"What Is the head Command in Linux?\" class=\"wp-image-12474\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/image-28.png 2304w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/image-28-150x113.png 150w\" sizes=\"auto, (max-width: 2304px) 100vw, 2304px\" \/><\/figure>\n\n\n\n<p>head is a standard Unix\/Linux utility (part of GNU coreutils on most distributions) that outputs the start of a file or data stream. It defaults to 10 lines but can output any number of lines or bytes you specify. It supports multiple files, works seamlessly with pipes, and is safe to use on huge files.<\/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=\"syntax-and-basic-usage\">Syntax and Basic Usage<\/h2>\n\n\n\n<p>At its simplest, head prints the first 10 lines of each file you pass. Use options to change how many lines or bytes you see.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>head &#91;OPTION]... &#91;FILE]...<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"show-the-first-n-lines\">Show the First N Lines<\/h3>\n\n\n\n<p>Use -n (or &#8211;lines) to control line count. Positive numbers print the first N lines. A leading minus excludes the last N lines (see advanced tips below).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># First 10 lines (default)\nhead \/var\/log\/syslog\n\n# First 20 lines\nhead -n 20 \/var\/log\/syslog\n\n# First 3 lines of two files\nhead -n 3 file1.txt file2.txt<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"show-the-first-n-bytes\">Show the First N Bytes<\/h3>\n\n\n\n<p>Use -c (or &#8211;bytes) when you need byte precise previews, helpful for binary files or tight performance constraints.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># First 100 bytes\nhead -c 100 image.jpg &gt; sample.bin\n\n# First 4 KiB of a huge log\nhead -c 4096 \/var\/log\/nginx\/access.log<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"read-from-standard-input-pipes\">Read from Standard Input (Pipes)<\/h3>\n\n\n\n<p>Head works perfectly in <a href=\"https:\/\/www.youstable.com\/blog\/what-is-ci-cd-on-linux-server\">pipelines<\/a>, making it a go to tool for sampling command output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Preview the first 10 matches\ngrep \"ERROR\" \/var\/log\/app.log | head\n\n# Sample the first 15 lines of a sorted list\nsort largefile.txt | head -n 15<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"multiple-files-and-headers\">Multiple Files and Headers<\/h3>\n\n\n\n<p>When you pass multiple files, head prints a header before each file by default. You can quiet or force headers with -q or -v.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Default: headers shown\nhead -n 5 file1.txt file2.txt\n\n# Quiet: no headers\nhead -q -n 5 file1.txt file2.txt\n\n# Verbose: always show headers\nhead -v file1.txt<\/code><\/pre>\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=\"essential-options-and-flags\">Essential Options and Flags<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>-n, --lines=K<\/strong><\/code><\/pre>\n\n\n\n<p>Print the first K lines. If K has a leading minus (e.g., -n -5), head prints all but the last K lines. This is useful for trimming trailers or footers in generated files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># First 25 lines\nhead -n 25 report.txt\n\n# Everything except the last 3 lines (GNU head)\nhead -n -3 report.txt<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"c-bytesk\">-c, &#8211;bytes=K<\/h3>\n\n\n\n<p>Print the first K bytes. With a leading minus, print all but the last K bytes. This helps when dealing with binary footers or when you need a byte limited sample for tooling tests.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># First 1 MB of a file\nhead -c 1M bigfile.dat\n\n# All but the last 512 bytes (GNU head)\nhead -c -512 archive.tar<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"q-quiet-and-v-verbose\">-q, &#8211;quiet and -v, &#8211;verbose<\/h3>\n\n\n\n<p>Control whether headers are printed for multiple files. -q suppresses headers; -v forces them even for a single file. This is helpful in scripts to make outputs deterministic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"z-zero-terminated\">-z, &#8211;zero-terminated<\/h3>\n\n\n\n<p>Treat input lines as NUL terminated instead of newline terminated (GNU extension). Use this for safety with filenames containing newlines, typically when piping from find -print0.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Safely sample filenames containing special characters\nfind . -type f -print0 | head -z -n 10 | tr '\\0' '\\n'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"help-and-version\">Help and Version<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>head --help\nhead --version<\/code><\/pre>\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=\"practical-use-cases-for-head\">Practical Use Cases for head<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"quickly-preview-logs\">Quickly Preview Logs<\/h3>\n\n\n\n<p>Sampling logs helps you validate rotations, formats, and pipeline stages without loading the entire file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Inspect the latest rotated syslog\nls -ltr \/var\/log | tail -n 5 | head -n 1\n\n# Verify Nginx access log structure\nhead -n 20 \/var\/log\/nginx\/access.log<\/code><\/pre>\n\n\n\n<p>On <strong><a href=\"https:\/\/www.youstable.com\/\">YouStable VPS or dedicated servers<\/a><\/strong>, this approach saves I\/O and reduces CPU usage while you troubleshoot, especially on high traffic web stacks.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"check-csv-headers-and-sample-rows\">Check CSV Headers and Sample Rows<\/h3>\n\n\n\n<p>Data teams often need to confirm schema and encoding quickly. head gives you a reliable snapshot.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># View header + first 10 rows\nhead -n 11 data.csv\n\n# Check if file is actually binary or malformed text\nhead -c 256 data.csv | hexdump -C<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"combine-with-grep-sed-awk\">Combine with grep, sed, awk<\/h3>\n\n\n\n<p>Head is a great \u201ccircuit breaker\u201d to limit volume in pipelines so you can iterate faster.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># First 15 error lines only\ngrep -i \"error\" app.log | head -n 15\n\n# Preview first 50 unique domains (case-insensitive)\n<a href=\"https:\/\/www.youstable.com\/blog\/awk-command\">awk<\/a> -F, '{print tolower($3)}' access.csv | sort -u | head -n 50\n\n# Sample transformed lines to validate logic\nsed 's\/foo\/bar\/g' big.txt | head<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"inspect-binary-files-safely\">Inspect Binary Files Safely<\/h3>\n\n\n\n<p>When working with archives or images, read a small byte range instead of opening the whole file. This is safer and faster on production hosts.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Peek at magic numbers or headers\nhead -c 64 file.bin | hexdump -C\n\n# Verify TAR header without expanding\nhead -c 512 backup.tar | hexdump -C<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"script-friendly-file-sampling\">Script-Friendly File Sampling<\/h3>\n\n\n\n<p>Use head in CI\/CD or <a href=\"https:\/\/www.youstable.com\/blog\/install-cron-jobs-on-linux\">cron jobs<\/a> to provide concise, readable logs and limit noisy output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># In a script: log top of a build artifact list\nls -lh artifacts\/ | head -n 20 &gt; build_summary.txt<\/code><\/pre>\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=\"advanced-tips-for-power-users\">Advanced Tips for Power Users<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"head-vs-tail-vs-sed\">Head vs Tail vs Sed<\/h3>\n\n\n\n<p>&#8211; head shows the beginning.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <code>tail<\/code> to show the end (and <code>tail -f<\/code> to follow growth).<\/li>\n\n\n\n<li>Use <code>sed<\/code> or <code>awk<\/code> when you need pattern based selection or structured field processing.<\/li>\n\n\n\n<li>For performance sampling, <code>head<\/code> is the fastest way to preview content before building complex commands.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"exclude-trailing-lines-or-bytes\">Exclude Trailing Lines or Bytes<\/h3>\n\n\n\n<p>GNU head supports negative counts to exclude data from the end. This is rarely known but extremely handy.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Drop last 2 lines\nhead -n -2 file.txt\n\n# Drop last 128 bytes\nhead -c -128 file.bin<\/code><\/pre>\n\n\n\n<p>Note: Negative counts are a GNU extension and may not work on all Unix variants (e.g., some BSD\/macOS builds). For portability, prefer positive counts or use sed\/awk equivalents.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"performance-and-i-o-safety\">Performance and I\/O Safety<\/h3>\n\n\n\n<p>On busy servers, avoid cat bigfile | head patterns that add unnecessary processes. Call head directly on the file, or use targeted pipelines. Use -c for byte-capped reads to minimize disk I\/O, especially on networked storage or when previewing massive logs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"preview-remote-files\">Preview Remote Files<\/h3>\n\n\n\n<p>With SSH, you can preview files on remote hosts without copying them locally.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Peek at a remote log\nssh user@server \"head -n 50 \/var\/log\/app.log\"<\/code><\/pre>\n\n\n\n<p>If you manage multiple environments, a YouStable VPS or Dedicated Server gives you root access and predictable I\/O performance, ideal for log inspection, deployments, and secure remote management at scale.<\/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=\"common-mistakes-and-how-to-avoid-them\">Common Mistakes and How to Avoid Them<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Assuming <code>-n +N<\/code> works with head:<\/strong> That syntax belongs to <code>tail<\/code>. Use <code>-n N<\/code> with head.<\/li>\n\n\n\n<li><strong>Using head to \u201cfollow\u201d files:<\/strong> Use <code>tail -f<\/code> to watch logs in real time.<\/li>\n\n\n\n<li><strong>Portability issues:<\/strong> GNU-specific flags like <code>-z<\/code> or negative counts may not work on non-GNU systems (some macOS\/BSD). Stick to <code>-n<\/code> and <code>-c<\/code> for portability.<\/li>\n\n\n\n<li><strong>Binary surprises:<\/strong> Previewing binary files in a terminal can produce control characters. Prefer <code>head -c<\/code> combined with <code>hexdump -C<\/code>.<\/li>\n\n\n\n<li><strong>CRLF line endings:<\/strong> Windows-formatted files may display differently. Convert with <code>dos2unix<\/code> if line breaks appear odd.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"real-world-scenarios-from-hosting-and-devops\">Real World Scenarios from Hosting and DevOps<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/www.youstable.com\/blog\/install-apache-web-server-in-linux\/\">Web server<\/a> triage:<\/strong> Validate new Nginx\/Apache logs after a deploy with head \/var\/log\/nginx\/access.log to confirm format and rotation.<\/li>\n\n\n\n<li><strong>Database exports: <\/strong>Check dump headers and initial statements with <code>head -n 30 backup.sql<\/code> to ensure correct schema and encoding.<\/li>\n\n\n\n<li><strong>CI artifact checks: <\/strong>Confirm the top of packaging manifests before pushing to production.<\/li>\n\n\n\n<li><strong>Security audits:<\/strong> Sample the first lines of auth logs to spot recent anomalies before deeper analysis.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"cheat-sheet-handy-head-patterns\">Cheat Sheet: Handy head Patterns<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>First 50 lines:<\/strong> <code>head -n 50 file<\/code><\/li>\n\n\n\n<li><strong>First 8 KB:<\/strong> <code>head -c 8K file<\/code><\/li>\n\n\n\n<li><strong>Preview multiple files quietly:<\/strong> <code>head -q -n 5 f1 f2 f3<\/code><\/li>\n\n\n\n<li><strong>Exclude last 2 lines (GNU): <\/strong><code>head -n -2 file<\/code><\/li>\n\n\n\n<li><strong>Sample pipeline output:<\/strong> <code>command | head<\/code><\/li>\n\n\n\n<li><strong>Zero terminated safety (GNU):<\/strong> <code>find . -print0 | head -z -n 10<\/code><\/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\/echo-command-in-linux\">Echo 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><\/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-1765513606564\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"what-does-the-head-command-do-in-linux\">What does the head command do in Linux?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>head prints the beginning of files or streams. By default, it outputs the first 10 lines but can show any number of lines or bytes. It\u2019s ideal for quick previews, scripting, and performance friendly checks on large files.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765513611689\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-do-i-show-the-first-20-lines-of-a-file\">How do I show the first 20 lines of a file?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use head -n 20 filename. Replace 20 with any positive number to see that many lines. For bytes instead of lines, use head -c 100 filename.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765513623673\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"can-i-use-head-with-multiple-files\">Can I use head with multiple files?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. Pass multiple filenames: head -n 5 file1 file2. Head adds a header before each file. Suppress headers with -q or force them with -v.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765513629988\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"what-is-the-difference-between-head-and-tail\">What is the difference between head and tail?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>head shows the beginning of a file, while tail shows the end. Use tail -f to follow a growing log file in real time; head doesn\u2019t support \u201cfollow.\u201d<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765513633573\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-can-i-preview-binary-files-safely\">How can I preview binary files safely?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use head -c to limit bytes, then pipe to hexdump for readable output. Example: head -c 64 file.bin | hexdump -C. This avoids sending raw control characters to your terminal.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765513647622\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"why-doesnt-head-n-3-work-on-my-mac\">Why doesn\u2019t head -n -3 work on my Mac?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Negative counts are a GNU extension. Some BSD\/macOS versions of head don\u2019t support them. Use portable alternatives like sed or upgrade coreutils (e.g., via Homebrew) to get GNU head.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765513655913\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-do-i-print-only-headers-of-a-csv-using-head\">How do I print only headers of a CSV using head?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If the first line is the header, run head -n 1 data.csv. To preview the header and a few rows, use head -n 11 data.csv.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>The head command in Linux is a small but mighty utility for fast file previews, safer pipelines, and smarter troubleshooting. Mastering -n and -c flags, plus headers and zero terminated input, will speed up your daily work across logs, CSVs, and binaries.<\/p>\n\n\n\n<p>If you manage production workloads, pair these CLI skills with reliable infrastructure. YouStable\u2019s <a href=\"https:\/\/www.youstable.com\/vps-hosting\/\">high-performance VPS<\/a> and <a href=\"https:\/\/www.youstable.com\/dedicated-servers\/\">Dedicated Servers<\/a> provide the stability, root access, and observability you need to triage issues quickly, so your head and tail sessions stay fast, even under load.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The head command in Linux prints the beginning of files or input, letting you quickly preview the first lines or [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":15127,"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":""}},"iawp_total_views":2,"footnotes":""},"categories":[350,1195],"tags":[],"class_list":["post-12315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase","category-blogging"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/Head-command-in-linux.jpg","author_info":{"display_name":"Prahlad Prajapati","author_link":"https:\/\/www.youstable.com\/blog\/author\/prahladblog"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/12315","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=12315"}],"version-history":[{"count":9,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/12315\/revisions"}],"predecessor-version":[{"id":19331,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/12315\/revisions\/19331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/15127"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=12315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=12315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=12315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}