Skip to content

Magenaut

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

files

How do I “cat and follow” a file?

August 9, 2022 by Magenaut

A file is being sequentially downloaded by wget.

Categories Q&A, Unix & Linux Tags cat, files, open-files, pipe, tail Leave a comment

What is the difference between a hard link and a file?

August 9, 2022 by Magenaut

A hard link is defined as a pointer to an inode. A soft link, also known as a symbolic link, is defined as an independent file pointing to another link without the restrictions of hard links.

Categories Q&A, Unix & Linux Tags files, filesystems, hard-link, symlink Leave a comment

Fastest way to concatenate files

August 9, 2022 by Magenaut

I’ve got 10k+ files totaling over 20GB that I need to concatenate into one file.

Categories Q&A, Unix & Linux Tags bash, cat, files, shell-script Leave a comment

Back up and restore file permissions

August 9, 2022 by Magenaut

Is there a way to back up and restore file ownership and permissions (the things that can be changed with chown and chmod)?

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

Getting relative links between two paths

August 9, 2022 by Magenaut

Say I have two paths: <source_path> and <target_path>. I would like my shell (zsh) to automatically find out if there is a way to represent <target_path> from <source_path> as a relative path.

Categories Q&A, Unix & Linux Tags files, shell, symlink, zsh Leave a comment

Finding sparse files?

August 9, 2022 by Magenaut

Is there a straightforward way to find all the sparse files on my system, or in a particular directory tree?

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

Zip Archive With Limited Number of Files

August 8, 2022 by Magenaut

What command can I use to create zips with a file number limit? I have a folder (no subfolders) of, say, 5000 files, so I would want a command that could divide that number and create 10 individual zip archives, each consisting of no more than 500 files.

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

How to create a file even root user can’t delete it

August 8, 2022 by Magenaut

How to create a file even root user can’t delete it ?

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

Automatically detect when a file has reached a size limit

August 8, 2022 by Magenaut

I would like to send an email when a file reach a certain size limit.

Categories Q&A, Unix & Linux Tags cron, email, files, linux, shell-script Leave a comment

Why isn’t there any shell command to create files?

August 8, 2022 by Magenaut

Attention please: I am not asking how to make a file from the command line! I have been using touch for making files for years without paying attention that its main purpose is something else. If one wants to create a file from command line there are so many possibilities: touch foo.bar > foo.bar cat … Read more

Categories Q&A, Unix & Linux Tags bash, command-line, files, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page14 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