Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

ls

How can I make ls show information about the directory specified only, not info about its sub-files or folder contents?

August 11, 2022 by Magenaut

Say I have folder “foo” residing, the home directory. I want to get some info of it, owner, group, permissions, etc…

Categories Q&A, Unix & Linux Tags directory, ls Leave a comment

ls command: what does the first line mean?

August 11, 2022 by Magenaut

When I do ls -l I get this:

Categories Q&A, Unix & Linux Tags ls, shell Leave a comment

View extended ACL for a file with ‘+’ in ls -l output

August 11, 2022 by Magenaut

A file in a ls -l listing has permissions such as:

Categories Q&A, Unix & Linux Tags acl, ls, permissions Leave a comment

What happens when the current directory is deleted?

August 11, 2022 by Magenaut

In the first terminal A, I create a directory, enter the directory, and create a file:

Categories Q&A, Unix & Linux Tags deleted-files, directory, ls, pwd Leave a comment

What is the number between file permission and owner in ls -l command output?

August 11, 2022 by Magenaut

This number is the hardlink count of the file, when referring to
a file, or the number of contained directory entries, when referring
to a directory.

Categories Q&A, Unix & Linux Tags ls Leave a comment

How to report number of files in all subdirectories?

August 11, 2022 by Magenaut

I need to inspect all sub-directories and report how many files (without further recursion) they contain:

Categories Q&A, Unix & Linux Tags find, ls Leave a comment

How to match case insensitive patterns with ls?

August 11, 2022 by Magenaut

I would like to list all files matching a certain pattern while ignoring the case.

Categories Q&A, Unix & Linux Tags case-sensitivity, ls, shell, wildcards Leave a comment

How can I search for a file with fixed name length using ls?

August 10, 2022 by Magenaut

In a directory, I have files like

Categories Q&A, Unix & Linux Tags ls, shell, wildcards Leave a comment

List only regular files (but not directories) in current directory

August 10, 2022 by Magenaut

I can use ls -ld */ to list all the directory entries in the current directory. Is there a similarly easy way to just list all the regular files in the current directory? I know I can use find

Categories Q&A, Unix & Linux Tags files, ls, shell, wildcards Leave a comment

What’s the difference between “s” and “S” in ls -la?

August 10, 2022 by Magenaut

When I ls -la, it prints many attributes. Something like this:

Categories Q&A, Unix & Linux Tags ls, permissions Leave a comment
Older posts
Page1 Page2 … Page6 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress