{"id":17365,"date":"2026-01-21T16:35:37","date_gmt":"2026-01-21T11:05:37","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?p=17365"},"modified":"2026-01-21T16:35:39","modified_gmt":"2026-01-21T11:05:39","slug":"cp-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/cp-command-in-linux","title":{"rendered":"Cp Command in Linux With Examples in 2026"},"content":{"rendered":"\n<p><strong>The cp command in Linux<\/strong> copies files and directories to a new location. Its basic form is <code>cp SOURCE DEST<\/code> for single files and <code>cp -r SOURCE_DIR DEST_DIR<\/code> for directories. <\/p>\n\n\n\n<p>Key options include <code>-i<\/code> (prompt before overwrite), <code>-n<\/code> (no overwrite), <code>-a<\/code> (archive\/preserve attributes), and <code>-v<\/code> (verbose) for safe, transparent copying. Whether you manage a personal Linux setup or production servers, mastering the cp command in Linux is essential. <\/p>\n\n\n\n<p>In this guide, you\u2019ll learn the syntax, safest flags, and real world examples used by system administrators every day, plus expert tips from hosting environments, so you avoid data loss and copy exactly what you intend.<\/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-cp-command-in-linux\">What is the cp Command in Linux?<\/h2>\n\n\n\n<p><strong>The cp (copy) command duplicates files<\/strong> or directories from a source to a destination. It\u2019s part of GNU coreutils on most Linux distributions and supports powerful options to preserve permissions, ownership, timestamps, extended attributes, and links crucial for servers, containers, and development workflows.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"cp-command-syntax\">cp Command Syntax<\/h2>\n\n\n\n<p><strong>Here\u2019s the general syntax you\u2019ll use most often:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp &#91;OPTIONS] SOURCE DEST\ncp &#91;OPTIONS] SOURCE... DIRECTORY\ncp &#91;OPTIONS] -t DIRECTORY SOURCE...<\/code><\/pre>\n\n\n\n<p><strong>Important notes:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If DEST is a directory, cp places copies inside that directory.<\/li>\n\n\n\n<li>Copying directories requires <code>-r<\/code> or <code>-R<\/code> (recursive).<\/li>\n\n\n\n<li>Use <code>-a<\/code> (archive) to preserve attributes and structure, ideal for backups and migrations.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"basic-cp-examples-files\">Basic cp Examples (Files)<\/h2>\n\n\n\n<p><strong>Copy a file to a new file name:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp report.txt report-backup.txt<\/code><\/pre>\n\n\n\n<p><strong>Copy a file into a directory:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp report.txt \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p><strong>Copy multiple files into a directory:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp index.html styles.css app.js \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p><strong>Copy files to a directory using the target directory option (<code>-t<\/code>):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -t \/var\/www\/html\/ index.html styles.css app.js<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"copying-directories-with-cp-r\">Copying Directories with cp -r<\/h2>\n\n\n\n<p><strong>To copy a directory and its contents recursively, use <code>-r<\/code> or <code>-R<\/code>:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -r assets\/ \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p><strong>Copy a directory into a new directory name:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -r \/etc\/nginx\/ nginx-backup\/<\/code><\/pre>\n\n\n\n<p>On servers, always combine recursion with safety flags (like <code>-i<\/code> or backups) to avoid accidental overwrites.<\/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=\"preserving-permissions-and-metadata-cp-a-p-preserve\">Preserving Permissions and Metadata (cp -a, -p, &#8211;preserve)<\/h2>\n\n\n\n<p>When moving website code, system configs, or user data, preserving attributes matters. The <code>-a<\/code> flag (archive) is the go-to, equivalent to <code>-dR --preserve=all<\/code> on GNU\/Linux.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Best practice for backups and migrations\ncp -a \/var\/www\/html\/ \/backups\/html-$(date +%F)\/<\/code><\/pre>\n\n\n\n<p><strong>Preserve selected attributes with <code>-p<\/code> or <code>--preserve<\/code>:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Preserve mode, ownership, and timestamps\ncp -p app.service \/etc\/systemd\/system\/\n\n# Preserve specific attributes (GNU cp)\ncp --preserve=mode,ownership,timestamps,links,xattr,context source dest<\/code><\/pre>\n\n\n\n<p>On shared hosting or containers, ownership might not be preserved unless you run the command with appropriate privileges (e.g., sudo). Verify with <code>ls -l<\/code> after copying.<\/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=\"controlling-overwrites-safely-i-n-f-u\">Controlling Overwrites Safely (-i, -n, -f, -u)<\/h2>\n\n\n\n<p>Overwrites are a common source of data loss. Use these flags to control behavior:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-i:<\/strong> Interactive; ask before overwrite.<\/li>\n\n\n\n<li><strong>-n:<\/strong> No clobber; do not overwrite existing files.<\/li>\n\n\n\n<li><strong>-f:<\/strong> Force overwrite by removing destination first.<\/li>\n\n\n\n<li><strong>-u:<\/strong> Only copy when SOURCE is newer than DEST or DEST is missing.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># Safer: prompt to overwrite\ncp -i config.php \/var\/www\/html\/\n\n# Never overwrite existing files\ncp -n *.png \/var\/www\/html\/images\/\n\n# Update only when newer (handy for deployments)\ncp -u build\/* \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p><strong>Combine with <code>-v<\/code> (verbose) to see what\u2019s happening:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -uv build\/* \/var\/www\/html\/<\/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=\"working-with-links-hard-links-symlinks-and-dereferencing\"><strong>Working with Links: Hard Links, Symlinks, and Dereferencing<\/strong><\/h2>\n\n\n\n<p>Links matter in application directories and shared assets. <\/p>\n\n\n\n<p><strong>Understand how cp treats them:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-s: <\/strong>Create symbolic links instead of copying files.<\/li>\n\n\n\n<li><strong>-l:<\/strong> Create hard links instead of copying (same inode, same filesystem only).<\/li>\n\n\n\n<li><strong>-P:<\/strong> Do not dereference symlinks (copy the link as a link).<\/li>\n\n\n\n<li><strong>-L:<\/strong> Dereference symlinks (copy the target file contents).<\/li>\n\n\n\n<li><strong>-H:<\/strong> Follow symlinks listed on the command line only.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># Copy symlinks as symlinks (archive mode includes -d which behaves like -P)\ncp -a site\/ \/var\/www\/\n\n# Copy the contents that symlinks point to\ncp -Lr site\/ \/var\/www\/\n\n# Create symlinks instead of copying data\ncp -s bigfile.iso bigfile-link.iso<\/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=\"automatic-backups-while-copying-backup-b-s\">Automatic Backups While Copying (&#8211;backup, -b, -S)<\/h2>\n\n\n\n<p>Create backups of overwritten files automatically, a lifesaver on production servers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Backup overwritten files using default suffix ~\ncp -b settings.php \/var\/www\/html\/\n\n# Custom suffix for easier rollbacks\ncp --backup=numbered -S .bak settings.php \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p><strong>Backup controls (GNU cp):<\/strong> <code>none<\/code>, <code>simple<\/code>, <code>numbered<\/code>, <code>existing<\/code>. Use <code>numbered<\/code> for versioned backups like <code>file.bak.~1~<\/code>, <code>~2~<\/code>, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"advanced-and-performance-options-gnu-cp\">Advanced and Performance Options (GNU cp)<\/h2>\n\n\n\n<p><strong>On modern filesystems, cp offers advanced behaviors:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8211;reflink[=auto|always|never]:<\/strong> Copy on write clone on btrfs\/XFS, instant and space efficient.<\/li>\n\n\n\n<li><strong>&#8211;sparse=auto|always|never: <\/strong>Efficiently handle sparse files (VM images, databases).<\/li>\n\n\n\n<li><strong>&#8211;attributes only:<\/strong> Copy metadata without file contents.<\/li>\n\n\n\n<li><strong>&#8211;parents: <\/strong>Recreate source path under the destination.<\/li>\n\n\n\n<li><strong>-T: <\/strong>Treat DEST as a normal file (avoid implicit directory behavior).<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># Fast, space-saving clone if supported\ncp --reflink=auto vm.qcow2 vm-copy.qcow2\n\n# Preserve path structure under \/backup\ncp --parents \/etc\/nginx\/nginx.conf \/backup\/<\/code><\/pre>\n\n\n\n<p>Some flags vary on non GNU systems (e.g., macOS\/BSD). Check <code>man cp<\/code> for your platform.<\/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=\"wildcards-patterns-and-quoting\">Wildcards, Patterns, and Quoting<\/h2>\n\n\n\n<p>Shell wildcards expand before cp runs. Use quotes to handle spaces or special characters safely.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Copy all .log files\ncp *.log \/var\/log\/archive\/\n\n# Copy files with spaces in the name\ncp \"My Report Q4.pdf\" \"\/srv\/docs\/Reports\/\"\n\n# Copy only today\u2019s build artifacts\ncp build-$(date +%F)-*.tar.gz \/releases\/<\/code><\/pre>\n\n\n\n<p>cp does not support <strong>\u201cexclude\u201d<\/strong> patterns. For selective copies, consider find or rsync.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Example: copy everything except *.log using rsync semantics\nrsync -av --exclude='*.log' src\/ dest\/<\/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=\"real-world-use-cases-on-servers-and-hosting\">Real World Use Cases on Servers and Hosting<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Backup configs before edits:<\/strong> <code>cp -a \/etc\/nginx\/nginx.conf \/etc\/nginx\/nginx.conf.bak<\/code><\/li>\n\n\n\n<li><strong>Deploy static sites safely:<\/strong> <code>cp -anv build\/ \/var\/www\/html\/<\/code> (no overwrite existing)<\/li>\n\n\n\n<li><strong>Rollback friendly changes:<\/strong> <code>cp -bv -S .bak index.php \/var\/www\/html\/<\/code><\/li>\n\n\n\n<li><strong>Preserve permissions when migrating webroots:<\/strong> <code>cp -a \/var\/www\/html\/ \/mnt\/new-disk\/html\/<\/code><\/li>\n\n\n\n<li><strong>Clone large images fast with reflinks on supported filesystems:<\/strong> <code>cp --reflink=auto image.qcow2 image-test.qcow2<\/code><\/li>\n<\/ul>\n\n\n\n<p>If you manage VPS, cloud, or <strong><a href=\"https:\/\/www.youstable.com\/dedicated-servers\/\">dedicated servers with YouStable<\/a><\/strong>, we recommend practicing on a staging path and enabling backups. Combine <code>-a<\/code>, <code>-i<\/code>, and <code>--backup<\/code> during critical changes for maximum safety.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"cp-vs-mv-vs-rsync-vs-scp-which-should-you-use\">cp vs mv vs rsync vs scp: Which Should You Use?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>cp:<\/strong> Local copies; fast, simple, preserves attributes with <code>-a<\/code>. No network support and no built in \u201cexclude\u201d.<\/li>\n\n\n\n<li><strong>mv:<\/strong> Move\/rename; faster on the same filesystem (metadata update). Not a copy.<\/li>\n\n\n\n<li><strong>rsync:<\/strong> Incremental, network capable, filters\/excludes, progress, and resume. Ideal for deployments and backups.<\/li>\n\n\n\n<li><strong>scp\/sftp:<\/strong> Transfer over SSH. Use for remote copies; prefer <code>rsync -e ssh<\/code> for efficiency.<\/li>\n<\/ul>\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=\"best-practices-and-safety-tips\">Best Practices and Safety Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Dry run the path:<\/strong> Use <code>ls<\/code> or <code>echo<\/code> to confirm wildcards before copying.<\/li>\n\n\n\n<li><strong>Prefer archive mode for system data:<\/strong> <code>cp -a<\/code> preserves what matters.<\/li>\n\n\n\n<li><strong>Prevent clobbering:<\/strong> Start with <code>-i<\/code> or <code>-n<\/code> on production systems.<\/li>\n\n\n\n<li><strong>Back up automatically: <\/strong>Add <code>-b --backup=numbered -S .bak<\/code> for critical files.<\/li>\n\n\n\n<li><strong>Quote paths:<\/strong> Protect spaces and special characters with quotes.<\/li>\n\n\n\n<li><strong>Verify:<\/strong> Use <code>-v<\/code> and check with <code>diff<\/code> or hashes for high stakes copies.<\/li>\n\n\n\n<li><strong>Permissions:<\/strong> After copying web apps, verify ownership (<code>chown<\/code>) and modes (<code>chmod<\/code>).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"troubleshooting-common-cp-errors\"><strong>Troubleshooting Common cp Errors<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Permission denied:<\/strong> Use <code>sudo<\/code> or adjust permissions\/SELinux context.<\/li>\n\n\n\n<li><strong>Not a directory: <\/strong>You intended a directory but DEST is a file; use <code>-T<\/code> carefully to force file behavior.<\/li>\n\n\n\n<li><strong>Omitting directory:<\/strong> Forgot <code>-r<\/code> for directories add it and rerun.<\/li>\n\n\n\n<li><strong>Broken symlinks copied: <\/strong>Use <code>-L<\/code> if you need the target\u2019s contents instead of the link.<\/li>\n\n\n\n<li><strong>Attributes lost: <\/strong>Use <code>-a<\/code> or <code>--preserve<\/code>; ensure filesystem and user privileges allow preservation.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"cp-command-quick-reference-most-used-flags\"><strong>cp Command Quick Reference (Most Used Flags)<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-r\/-R:<\/strong> Recursive directory copy<\/li>\n\n\n\n<li><strong>-a: <\/strong>Archive (preserve all, copy symlinks as symlinks)<\/li>\n\n\n\n<li><strong>-p:<\/strong> Preserve mode, ownership, timestamps<\/li>\n\n\n\n<li><strong>-i\/-n\/-f\/-u:<\/strong> Overwrite control (interactive\/no clobber\/force\/update)<\/li>\n\n\n\n<li><strong>-v:<\/strong> Verbose output<\/li>\n\n\n\n<li><strong>-b &#8211;backup -S:<\/strong> Backup overwritten files with suffix<\/li>\n\n\n\n<li><strong>-s\/-l:<\/strong> Make symlinks or hard links instead of copying<\/li>\n\n\n\n<li><strong>-L\/-P\/-H:<\/strong> Dereference or preserve symlinks<\/li>\n\n\n\n<li><strong>&#8211;reflink: <\/strong>Copy on write clone when supported<\/li>\n\n\n\n<li><strong>&#8211;parents:<\/strong> Recreate source path<\/li>\n\n\n\n<li><strong>-t\/-T:<\/strong> Specify target directory \/ treat DEST as a file<\/li>\n<\/ul>\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\"><strong>FAQ&#8217;s<\/strong><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1768388099830\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"1-what-does-cp-a-do-in-linux\">1. What does cp -a do in Linux?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p><code>cp -a<\/code> is \u201carchive\u201d mode. It copies directories recursively and preserves almost everything permissions, ownership, timestamps, symbolic links, hard links, and extended attributes making it ideal for backups and migrations on servers.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768388120664\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"2-how-do-i-copy-a-directory-in-linux\">2. How do I copy a directory in Linux?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use <code>cp -r<\/code> or <code>cp -R<\/code>. For example, <code>cp -r project\/ \/opt\/apps\/<\/code>. To preserve permissions and links, prefer <code>cp -a project\/ \/opt\/apps\/<\/code>. Add <code>-v<\/code> for progress-like output and <code>-i<\/code> to avoid accidental overwrites.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768388129093\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"3-how-can-i-avoid-overwriting-existing-files-with-cp\">3. How can I avoid overwriting existing files with cp?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use <code>-n<\/code> (no clobber) to skip existing files or <code>-i<\/code> (interactive) to prompt before overwrite. For extra safety, enable backups with <code>-b<\/code> or <code>--backup=numbered -S .bak<\/code> so you can roll back changes quickly.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768388135353\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"4-should-i-use-cp-or-rsync-for-deployments\">4. Should I use cp or rsync for deployments?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>For simple local copies, cp is fine. For selective updates, excludes, bandwidth efficiency, or remote transfers, rsync is superior. Many admins deploy with <code>rsync -av --delete<\/code> to keep targets in sync and log changes clearly.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768388143799\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"5-why-are-file-permissions-different-after-copying\">5. Why are file permissions different after copying?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If you used plain <code>cp<\/code>, default umask and user may alter permissions\/ownership. Use <code>cp -a<\/code> or <code>-p<\/code> to preserve attributes. Also ensure you have the privileges to set ownership (often requires sudo), and verify with <code>ls -l<\/code> afterward.<\/p>\n<p>Mastering the cp command in Linux helps you copy safely, preserve what matters, and move faster in real world server environments. If you host on YouStable, our support team can guide you on safe file operations during migrations and deployments.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The cp command in Linux copies files and directories to a new location. Its basic form is cp SOURCE DEST [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":17878,"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-17365","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\/Cp-Command-in-Linux-With-Examples.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\/17365","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=17365"}],"version-history":[{"count":14,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17365\/revisions"}],"predecessor-version":[{"id":17880,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17365\/revisions\/17880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/17878"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=17365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=17365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=17365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}