Skip to content

Magenaut

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

ls

Where is “showing the output of the ‘ls’ command vertically” documented?

August 7, 2022 by Magenaut

I found out it’s possible to show the output of the ls command vertically using the -1 switch:

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

What to use when the “ls” command doesn’t work?

August 7, 2022 by Magenaut

I tried to use the ls command and got an error:

Categories Q&A, Unix & Linux Tags command-line, linux, ls Leave a comment

proper way to iterate through contents in a directory

August 7, 2022 by Magenaut

I need to iterate through every file inside a directory. One common way I saw was using the for loop that begins with for file in *; do. However, I realized that it does not include hidden files (files that begin with a “.”). The other obvious way is then do something like for file … Read more

Categories Q&A, Unix & Linux Tags dot-files, for, ls, shell-script, wildcards Leave a comment

No colored output in less for the ls command

August 6, 2022 by Magenaut

If I run ls I get colored output which I find pretty handy for quickly getting a glance of the kind of file. When I try to pipe it to less even with the -r and -R flags the coloring always get lost. I am using zsh version 5.0.7. Any ideas? Thanks.

Categories Q&A, Unix & Linux Tags colors, less, ls, osx, pipe Leave a comment

What is the Linux equivalent of DOS “dir /s /b filename”?

August 6, 2022 by Magenaut

List all files/dirs in or below the current directory that match ‘filename’.

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

Output ls -l size field with digits grouped by thousands?

August 6, 2022 by Magenaut

It is possible to make ls -l output the size field with digits grouped by thousands? If so, how?

Categories Q&A, Unix & Linux Tags command-line, linux, locale, ls Leave a comment

Testing LS_COLORS in zsh

August 6, 2022 by Magenaut

A few years ago I found an interesting code snippet that prints each type of file in its corresponding color according to the colors set up in LS_COLORS. Unfortunately, I can’t remember the link anymore.

Categories Q&A, Unix & Linux Tags colors, ls, zsh Leave a comment
Newer posts
← Previous Page1 … Page5 Page6
  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