{"id":17359,"date":"2026-01-21T16:27:38","date_gmt":"2026-01-21T10:57:38","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?p=17359"},"modified":"2026-01-21T16:27:41","modified_gmt":"2026-01-21T10:57:41","slug":"ls-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/ls-command-in-linux","title":{"rendered":"Ls Command in Linux Explained With Examples in 2026"},"content":{"rendered":"\n<p><strong>The ls command in Linux <\/strong>lists files and directories. By default it shows names in the current directory; with options you can display permissions, sizes, timestamps, hidden files, sort order, and recursive listings. <\/p>\n\n\n\n<p>Syntax: ls [options] [path]. Use ls -la for a detailed, all files view and ls -lh for human\u2011readable sizes. If you\u2019re learning Linux, mastering the ls command is essential. <\/p>\n\n\n\n<p>In this guide, we explain the ls command in Linux with practical examples, clear options, and real world tips from years of working on production servers. Whether you manage a VPS, dedicated machine, or local dev environment, this cheat sheet style tutorial will make ls second nature.<\/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-ls-command-in-linux\">What is the ls Command in Linux?<\/h2>\n\n\n\n<p>The ls command <strong>(short for \u201clist\u201d)<\/strong> displays the contents of a directory. It\u2019s part of GNU coreutils on most Linux distributions and is also available on other Unix like systems. <\/p>\n\n\n\n<p>While ls can appear simple, its options provide deep insight into files, permissions, sizes, and structure, crucial for system administration and troubleshooting.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"basic-syntax-and-output\">Basic Syntax and Output<\/h3>\n\n\n\n<p>At its simplest, ls lists the current directory. You can pass one or more paths and combine multiple options to refine output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls\nls \/var\/log\nls &#91;options] &#91;path1] &#91;path2] ...\n<\/code><\/pre>\n\n\n\n<p>Default behavior varies slightly by distro (for example, many have an alias enabling colored output). Hidden files (dotfiles) are not shown unless you request them with -a.<\/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=\"essential-ls-options-with-examples\">Essential ls Options (With Examples)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"show-hidden-files-a-and-a\">Show Hidden Files: -a and -A<\/h3>\n\n\n\n<p>Use -a to include dotfiles (files starting with .) and special entries . and ..; -A includes dotfiles but omits . and &#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -a\nls -A\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"long-listing-format-l\">Long Listing Format: -l<\/h3>\n\n\n\n<p>-l displays detailed information: file type, permissions, links, owner, group, size, timestamp, and name. This is the go to format for auditing permissions and ownership.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l\nls -l \/etc\n<\/code><\/pre>\n\n\n\n<p>Combine -l with -a to include hidden files, and -h for human-readable sizes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lah\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"human-readable-sizes-h\">Human Readable Sizes: -h<\/h3>\n\n\n\n<p>-h converts byte counts to friendly units (K, M, G). It only affects long listings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lh \/var\/log\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"sort-by-time-or-size-t-s-r\">Sort by Time or Size: -t, -S, -r<\/h3>\n\n\n\n<p>-t sorts by modification time (newest first). -S sorts by size (largest first). -r reverses the sort order.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Newest first\nls -lt\n\n# Oldest first\nls -ltr\n\n# Largest files first\nls -lhS\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"recursive-listing-r\">Recursive Listing: -R<\/h3>\n\n\n\n<p>-R traverses subdirectories and lists everything recursively. Use with caution in large trees.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lR \/var\/www\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"list-directories-themselves-d\">List Directories Themselves: -d<\/h3>\n\n\n\n<p>-d prevents ls from listing directory contents; it shows the directory entry itself. Useful for patterns like *\/ (all subdirectories).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Show only directories in current path\nls -d *\/\n\n# Show details about the directory, not its contents\nls -ld \/etc\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"one-entry-per-line-1\">One Entry Per Line: -1<\/h3>\n\n\n\n<p>-1 forces one filename per line. Handy for scripts or when piping to other tools.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -1\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"append-file-type-indicators-f-or-p\">Append File Type Indicators: -F or -p<\/h3>\n\n\n\n<p>-F appends indicators like \/ for directories, * for executables. -p appends \/ to directories only. This improves readability without going full -l.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -F\nls -p\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"group-directories-first\">Group Directories First<\/h3>\n\n\n\n<p>On GNU ls, &#8211;group directories first lists folders before files while keeping sort semantics intact.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls --group-directories-first\nls -l --group-directories-first\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"colorized-output\">Colorized Output<\/h3>\n\n\n\n<p>Colors help distinguish directories, symlinks, executables, and archives. Many distros alias ls to ls &#8211;color=auto by default. If not, enable it manually or set LS_COLORS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Enable color on demand\nls --color=auto\n\n# Persistent alias (add to ~\/.bashrc)\nalias ls='ls --color=auto'\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"formatting-timestamps-and-precision\">Formatting, Timestamps, and Precision<\/h3>\n\n\n\n<p>You can tweak date formats and show access or change times instead of modification time. This is valuable for audits.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># ISO-like times (clean, sortable)\nls -l --time-style=long-iso\n\n# Show access time instead of modification time\nls -lu\n\n# Show status-change (metadata) time\nls -lc\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"filtering-and-patterns-what-ls-really-matches\">Filtering and Patterns: What ls Really Matches<\/h3>\n\n\n\n<p>Important: ls itself doesn\u2019t interpret regular expressions. The shell expands wildcards (globs) before ls runs. Common globs include *, ?, and character classes like [0-9]. Use quotes to prevent the shell from expanding special characters.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># List .log files\nls *.log\n\n# List files starting with access- and ending in .gz\nls access-*.gz\n\n# Use quotes if filenames contain spaces or brackets\nls -- \"file&#91;1].txt\"\n<\/code><\/pre>\n\n\n\n<p>To exclude patterns, pipe through grep (simple, not bulletproof for strange filenames). For reliable scripting with complex names, use find and null delimited output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Exclude .git directory from a long listing (simple)\nls -la | grep -v '^d.*\\.git$'\n\n# Robust enumeration (preferred for scripts)\nfind . -maxdepth 1 -print0 | xargs -0 ls -ld\n<\/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-server-use-cases-real-world-examples\">Practical Server Use Cases (Real World Examples)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"1-quick-permission-audit\">1) Quick Permission Audit<\/h3>\n\n\n\n<p>On web servers, incorrect permissions can expose configuration files. Use -l to check mode bits, owner, and group. Look for world writable entries<strong> (\u2026w\u2026w\u2026w) <\/strong>and unexpected owners.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Audit a web root\nls -l \/var\/www\/html\n\n# Audit only directories at top level\nls -ld \/var\/www\/html\/*\/\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"2-identify-space-hogs\">2) Identify Space Hogs<\/h3>\n\n\n\n<p>When disk usage spikes, sort by size to find large files quickly. Pair with human readable output for clarity.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Biggest files in current directory\nls -lhS | head\n\n# Biggest rotated logs\nls -lhS \/var\/log\/*.gz | head\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"3-release-and-build-management\">3) Release and Build Management<\/h3>\n\n\n\n<p>Sort by modification time to find the latest artifact or see deployment order.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Latest build artifact on top\nls -lt build\/ | head\n<\/code><\/pre>\n\n\n\n<p>On <strong><a href=\"https:\/\/www.youstable.com\/\">YouStable VPS or Dedicated servers<\/a><\/strong>, SSH into your instance and use ls -lt to validate recent deployments, or ls -lah to verify permissions after CI\/CD steps. It\u2019s a low latency way to confirm that your release pipeline produced the expected files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"reading-the-long-listing-format\">Reading the Long Listing Format<\/h3>\n\n\n\n<p>In ls -l output, the first column shows file type and permissions. Interpreting these lines correctly is vital for security and operations.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-rw-r--r-- 1 root root  1245 2026-01-08 12:34 index.html\ndrwxr-xr-x 2 root root  4096 2026-01-08 12:10 assets\nlrwxrwxrwx 1 root root    11 2026-01-08 12:00 latest -&gt; release-5.2\n<\/code><\/pre>\n\n\n\n<p><strong>Breakdown:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Type:<\/strong> first character (- file, d directory, l symlink)<\/li>\n\n\n\n<li><strong>Permissions: <\/strong>user\/group\/other (r read, w write, x execute)<\/li>\n\n\n\n<li><strong>Links: <\/strong>number of hard links<\/li>\n\n\n\n<li><strong>Owner\/Group:<\/strong> file ownership<\/li>\n\n\n\n<li><strong>Size:<\/strong> bytes (or human readable with -h)<\/li>\n\n\n\n<li><strong>Timestamp: <\/strong>by default, modification time<\/li>\n\n\n\n<li><strong>Name: <\/strong>if a symlink, shows the target with -&gt;<\/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=\"common-pitfalls-and-how-to-avoid-them\">Common Pitfalls and How to Avoid Them<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"argument-list-too-long\">\u201cArgument list too long\u201d<\/h3>\n\n\n\n<p>Using massive globs like ls *.log across millions of files can hit shell limits. Prefer find for scale.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find . -name '*.log' -maxdepth 1 -print0 | xargs -0 ls -lh\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"filenames-with-spaces-newlines-or-quotes\">Filenames With Spaces, Newlines, or Quotes<\/h3>\n\n\n\n<p>Use -Q to quote names or -b to escape them. For scripting, avoid parsing plain ls output; use null-delimited tools instead.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Quote filenames\nls -Q\n\n# Escape special characters\nls -b\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"performance-in-huge-directories\">Performance in Huge Directories<\/h3>\n\n\n\n<p>ls -lR on large trees can be slow. Narrow your scope (subdirectories, filters) or rely on find with pruning. For quick counts, prefer wc -l with globs or find.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Count entries fast\nls -1 | wc -l\nfind . -maxdepth 1 -type f | wc -l\n<\/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=\"when-ls-isnt-enough-alternatives\">When ls Isn\u2019t Enough: Alternatives<\/h2>\n\n\n\n<p>While ls is perfect for interactive use, specialized tools shine for certain tasks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>find:<\/strong> reliable recursion, complex filters, safe for scripting with -print0<\/li>\n\n\n\n<li><strong>du:<\/strong> summarize disk usage per directory<\/li>\n\n\n\n<li><strong>tree:<\/strong> visualize directory structures<\/li>\n\n\n\n<li><strong>eza\/exa:<\/strong> modern ls like tools with icons, Git info, improved defaults<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"cross-platform-notes-linux-macos-bsd\">Cross Platform Notes (Linux, macOS, BSD)<\/h2>\n\n\n\n<p>Option availability can differ. GNU ls (Linux) supports flags like &#8211;group directories first and &#8211;time style that may not exist on BSD\/macOS. If a command fails on macOS, consult man ls for the local equivalents or install GNU coreutils (gdircolors, gls) via a package manager.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"quick-is-cheat-sheet\">Quick is Cheat Sheet<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>List all files (including hidden): <strong>ls -la<\/strong><\/li>\n\n\n\n<li>Human readable long list:<strong> ls -lh<\/strong><\/li>\n\n\n\n<li>Newest first: <strong>ls -lt<\/strong><\/li>\n\n\n\n<li>Oldest first: <strong>ls -ltr<\/strong><\/li>\n\n\n\n<li>Largest first: <strong>ls -lhS<\/strong><\/li>\n\n\n\n<li>Recursive list:<strong> ls -lR<\/strong><\/li>\n\n\n\n<li>Directories only: <strong>ls -d *\/<\/strong><\/li>\n\n\n\n<li>Append file type indicators: <strong>ls -F<\/strong><\/li>\n\n\n\n<li>Group directories first: <strong>ls &#8211;group-directories-first<\/strong><\/li>\n\n\n\n<li>Quote names safely: <strong>ls -Q<\/strong><\/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=\"real-world-tips-from-hosting-environments\">Real World Tips From Hosting Environments<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After migrations, run ls -lah to confirm ownership and permissions match your web server user (www-data, nginx, apache).<\/li>\n\n\n\n<li>On log heavy servers, ls -lhS \/var\/log helps quickly pinpoint oversized logs before rotating or archiving.<\/li>\n\n\n\n<li>Use ls -lt on release folders to verify the most recent deployment and symlink targets.<\/li>\n\n\n\n<li><strong>Combine ls -l with grep to flag dangerous modes:<\/strong> ls -l | grep<strong> &#8216;^-&#8230;&#8230;rwx&#8217;<\/strong> highlights world executable files.<\/li>\n<\/ul>\n\n\n\n<p>At <strong><a href=\"https:\/\/www.youstable.com\/\">YouStable<\/a><\/strong>, we encourage customers to leverage SSH access on VPS and Dedicated plans. Fast ls checks often catch permission issues or oversized logs long before they become outages.<\/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\">FAQ&#8217;s<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1768454100807\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"1-what-does-the-ls-command-do-in-linux\">1. What does the ls command do in Linux?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>ls lists files and directories. It can show names only or detailed metadata like permissions, ownership, size, and timestamps. Use ls -l for detail, ls -a for hidden files, and ls -lh for human readable sizes. Combine options and paths to tailor the output to your task.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768454109179\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"2-how-do-i-show-hidden-files-in-linux\">2. How do I show hidden files in Linux?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Hidden files start with a dot. Use ls -a to show all files, including . and .., or ls -A to show hidden files without . and &#8230; For a detailed view, run ls -la or ls -lA.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768454116317\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"3-how-can-i-list-files-by-size-or-date\">3. How can I list files by size or date?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>For size, use ls -lhS (largest first). For time, use ls -lt (newest first) or ls -ltr (oldest first). Combine with -h to get readable sizes and with specific directories to focus your search.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768454124116\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"4-how-do-i-list-only-directories\">4. How do I list only directories?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use the shell\u2019s glob for directories and prevent descent with -d. For example, ls -d *\/ lists only directories in the current path. For a detailed listing of directories themselves, use ls -ld *\/.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1768454131145\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"5-whats-the-difference-between-ls-l-and-ls-la\">5. What\u2019s the difference between ls -l and ls -la?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>ls -l shows a long listing of visible files and directories. ls -la adds hidden files (dotfiles) and the special entries . and .. to the long listing, giving you the full picture of a directory\u2019s contents.<\/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><strong>The ls command in Linux is<\/strong> more than a simple directory listing, it\u2019s a fast, flexible lens into your system\u2019s structure, security, and usage. With the options in this guide and the practical workflows above, you\u2019ll navigate servers with confidence. On <strong><a href=\"https:\/\/www.youstable.com\/\">YouStable hosting<\/a><\/strong>, pair ls with SSH to validate deployments, permissions, and storage health in seconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ls command in Linux lists files and directories. By default it shows names in the current directory; with options [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":17870,"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-17359","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\/Ls-Command-in-Linux-Explained-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\/17359","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=17359"}],"version-history":[{"count":8,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17359\/revisions"}],"predecessor-version":[{"id":17872,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/17359\/revisions\/17872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/17870"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=17359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=17359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=17359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}