Skip to content

Magenaut

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

Unix & Linux

How to print a specific column with awk on a remote ssh session?

August 9, 2022 by Magenaut

When using

Categories Q&A, Unix & Linux Tags awk, ssh Leave a comment

Automatically rename files when they are placed in a specific directory

August 9, 2022 by Magenaut

Is it possible to automatically rename a file when it’s placed in a specific directory?

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

How does the linux kernel know device major and minor numbers?

August 9, 2022 by Magenaut

As far as I know, the kernel detects hardware, adds information to sysfs creates a device in /dev and then generates a udev event. My question is, do device drivers do all of this or it is the kernel itself? If drivers do it, then they would know the device major and minor number to create the file in devtmps.

Categories Q&A, Unix & Linux Tags drivers, linux-kernel, udev Leave a comment

Delete an array in awk

August 9, 2022 by Magenaut

In awk, I can clear an array with a loop, making it an empty array, which is equivalent to deleting it.

Categories Q&A, Unix & Linux Tags array, awk Leave a comment

New RAID array will not auto assemble, leads to boot problems

August 9, 2022 by Magenaut

I had just asked this question where I was unable to boot after installing a new RAID1 Array. I was able to get to the terminal, but once I sorted that out I realized that my problem isn’t so much an fstab boot problem as an mdadm auto assemble problem.

Categories Q&A, Unix & Linux Tags mdadm, raid Leave a comment

How to find the hashing algorithm used to hash passwords?

August 9, 2022 by Magenaut

I have the working password and can see the hash (/etc/passwd). How do I find the hashing algorithm used to hash the password, without manually trying different algorithms until I find a match?

Categories Q&A, Unix & Linux Tags hashsum, passwd Leave a comment

Replacing string based on line number

August 9, 2022 by Magenaut

I have a situation where i want to replace a particular string in many files

Categories Q&A, Unix & Linux Tags awk, sed Leave a comment

Speed up copying 1000000 small files

August 9, 2022 by Magenaut

I have 1000000 4-20 kb files in a dir (You can generate similar files like this: seq 10000 | gzip > a; seq 1000000 | parallel --bar 'head -c{=$_=int(rand()*16)+4=}k a > {}')

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

Cron entry for last Saturday of every month

August 9, 2022 by Magenaut

I want to schedule my script for last Saturday of every month.
I have come up with the below:

Categories Q&A, Unix & Linux Tags cron, date Leave a comment

How do I completely silence a cronjob to /dev/null/?

August 9, 2022 by Magenaut

On my Ubuntu-Desktop and on my debian-server I have a script which needs to be executed each minute (a script that calls the minute-tic of my space online browsergame).

Categories Q&A, Unix & Linux Tags cron, email, io-redirection Leave a comment
Older posts
Newer posts
← Previous Page1 … Page127 Page128 Page129 … Page371 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