Skip to content

Magenaut

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

ls

When I redirect the output of ls to a file, the filename is included in that file. How can I avoid this?

August 8, 2022 by Magenaut

Observe:

Categories Q&A, Unix & Linux Tags command-line, io-redirection, ls, shell Leave a comment

What does the ‘d’ mean in ls -al results and what is that slot called?

August 8, 2022 by Magenaut

In Linux, what does the d mean in the first position of drwxr-xr-x? And what are all of the possible letters that could be there, and what do they mean? I’m trying to learn more about the Linux file permissions system, and I’d like to see a list of the character meanings for the first … Read more

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

Determining the number of files and subdirectories in Linux

August 8, 2022 by Magenaut

When displaying directories in Linux using ls -ld, I get something like this:

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

+ or @ mark after running ‘ls -al’

August 7, 2022 by Magenaut

In Mac OS X, run ‘ls -al’ gives me something like this. drwxrwxrwx+ 4 smcho staff 136 May 5 09:18 Public drwxr-xr-x+ 6 smcho staff 204 Feb 1 2010 Sites drwxrwxrwx 9 smcho staff 306 Feb 2 2010 backup [email protected] 36 smcho staff 1224 Sep 4 22:51 bin What’s the + or @ at the … Read more

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

size of directory reported by ls

August 7, 2022 by Magenaut

I understand the size reported by ls corresponds with number of inodes inside the directory, not their actual size. I have noticed peculiar behavior, when displaying directory size with ls. Here is how to quickly reproduce it: first create empty directory, the size reported by ls is 4096 (as expected) mkdir test ll -d test/ … Read more

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

The ls command is not working for a directory with a huge number of files

August 7, 2022 by Magenaut

I had a directory which had around 5 million files. When I tried to run the ls command from inside this directory, my system consumed a huge amount of memory and it hung after sometime. Is there an efficient way to list the files other than using the ls command?

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

dircolors: modify color settings globaly

August 7, 2022 by Magenaut

I understand ls uses dircolors to display colored output. dircolors has default database of colors associated with file extensions, which can be printed wiht the command

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

Show only hidden files (dot files) in ls alias

August 7, 2022 by Magenaut

I’m using the command

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

List subdirectories only n level deep

August 7, 2022 by Magenaut

Festival stores voicepack data in the following example directory structure:

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

How do I pipe ls to grep, and delete the files filtered by grep?

August 7, 2022 by Magenaut

I wanted to delete some package in my home file, but the filename was too long (google-chrome-stable_current_i386.deb). So, I decided to use the command ls|grep chrome|rm to pipe the files to grep to filter out the chrome file, and then remove it. It didn’t work, so I would like to see how I can do this.

Categories Q&A, Unix & Linux Tags grep, ls, pipe, rm Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 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