Skip to content

Magenaut

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

linux

Route SSH to host through interface

August 8, 2022 by Magenaut

Is it possible to route all outgoing requests for SSH (port 22) to mydynamicdns.afraid.org via wlan0 instead of eth0 when both are connected?

Categories Q&A, Unix & Linux Tags ip, linux, networking, route, ssh Leave a comment

Creating a Debian package that does not remove directories after it’s purged

August 8, 2022 by Magenaut

I’m trying to create a Debian package that doesn’t delete an empty directory after it’s purged. Specifically, I’m creating my own package containing some CA certificates I trust.

Categories Q&A, Unix & Linux Tags debian, dpkg, linux, packaging Leave a comment

Bash script Multiply only numbers from a text file?

August 8, 2022 by Magenaut

I am looking for a bash command that will multiply only numbers from a text file. Below is the content of my text file. I need multiply all numbers by 100.

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

Why is the size of my IO requests being limited, to about 512K?

August 8, 2022 by Magenaut

I read /dev/sda using a 1MiB block size. Linux seems to limit the IO requests to 512KiB an average size of 512KiB. What is happening here? Is there a configuration option for this behaviour?

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

How to tell what method was used to log in (Password vs. Keyfile) from the bashrc

August 8, 2022 by Magenaut

Is there a way how you can check what auth method the user which just logged in to an account were using?

Categories Q&A, Unix & Linux Tags bashrc, key-authentication, linux, login, ssh Leave a comment

Accidentally screwed up permissions big time — what should I do?

August 8, 2022 by Magenaut

Was changing ownership of everything to root the right thing to do?

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

pivot_root from initramfs to new root – error “Invalid argument”

August 8, 2022 by Magenaut

You can not use pivot_root on an initramfs rootfs, you will get Invalid Argument. You can only pivot real filesystems.

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

octal dump of directory

August 8, 2022 by Magenaut

I got a copy of The Unix Programming Environment by Kernighan and Pike from a garage sale. I’m very interested in the chapter about the UNIX filesystem. Naturally, I also found this passage very interesting:

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

How can I access a deleted open file on Linux (output of a running crontab task)?

August 8, 2022 by Magenaut

I have an hourly hour-long crontab job running with some mtr (traceroute) output every 10 minutes (that is going to go for over an hour prior to it being emailed back to me), and I want to see the current progress thus far.

Categories Q&A, Unix & Linux Tags data-recovery, deleted-files, linux, open-files Leave a comment

How to remove a USB drive without worry if its been unmounted?

August 8, 2022 by Magenaut

Sometimes I unplug my usb drive only to find out files were not written to it.

Categories Q&A, Unix & Linux Tags linux, mount, usb, usb-drive Leave a comment
Older posts
Newer posts
← Previous Page1 … Page41 Page42 Page43 … Page63 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