Skip to content

Magenaut

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

directory

Fine-tune LS_COLORS for directory suffixes?

August 8, 2022 by Magenaut

I’m fine customizing most settings in LS_COLORS. I don’t need help customizing the colors for different file suffixes. What I would like to do is configure special colors for certain directories, based on their suffix.

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

Permissions to change only directory content and not itself

August 8, 2022 by Magenaut

We have a directory and want to protect that from remove and rename, but we need to be able to rename, remove and create contents. What we can do?

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

The number of links for a folder doesn’t reflect the real status?

August 8, 2022 by Magenaut

A question for ls command.

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

Directory permissions vs file permssions

August 8, 2022 by Magenaut

If I have two users called john and sally. Both are part of the users group. john creates a directory with permissions 775. sally then puts a file there with 644 permissions.

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

Finding the correct tmp dir on multiple platforms

August 8, 2022 by Magenaut

I have a script that needs to create temporary files for its work, and clean up after itself. My question is about finding the right base directory for the temporary files.

Categories Q&A, Unix & Linux Tags directory, shell-script, tmp Leave a comment

Find the total size of certain files within a directory branch

August 8, 2022 by Magenaut

Assume there’s an image storage directory, say, ./photos/john_doe, within which there are multiple subdirectories, where many certain files reside (say, *.jpg). How can I calculate a summary size of those files below the john_doe branch?

Categories Q&A, Unix & Linux Tags directory, directory-structure, files, size Leave a comment

Difference between “cd -” and “cd ~-“

August 7, 2022 by Magenaut

The Bash command

Categories Q&A, Unix & Linux Tags bash, cd-command, directory, pushd Leave a comment

Using sftp to Transfer a Directory?

August 7, 2022 by Magenaut

When I try to use sftp to transfer a directory containing files, I get an error message:

Categories Q&A, Unix & Linux Tags directory, recursive, sftp 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

Move files to specific folders based on name

August 7, 2022 by Magenaut

I have this file/folder scheme:

Categories Q&A, Unix & Linux Tags bash, directory, filenames, rename Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page11 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