Skip to content

Magenaut

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

Unix & Linux

Split file by number of lines including header in each one

August 10, 2022 by Magenaut

I need to split a .txt file into smaller ones containing 100 lines each, including the header. I don’t know if this is relevant, but the original file is delimited like this:

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

Disable ForwardX11Timeout without ForwardX11Trusted in OpenSSH Client?

August 10, 2022 by Magenaut

By default, recent versions of OpenSSH automatically set ForwardX11Timeout to 20 minutes if you set ForwardX11Trusted to no.

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

sleep, wait and Ctrl+C propagation

August 10, 2022 by Magenaut

If I have the following shell script

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

Is there a reason why ‘owner’ permissions exist? Aren’t group permissions enough?

August 10, 2022 by Magenaut

I think I rather understand how file permissions work in Linux. However, I don’t really understand why they are split into three levels and not into two.

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

Are Modules listed under /sys/module all the Loaded Modules?

August 10, 2022 by Magenaut

I’m wondering if I can use the directory listing of /sys/module instead of lsmod to get a list of currently loaded modules.

Categories Q&A, Unix & Linux Tags kernel-modules, linux, sysfs Leave a comment

Why are reboot, shutdown and poweroff symlinks to systemctl?

August 10, 2022 by Magenaut

In Arch Linux, if I do ls -l in /sbin, I can see that reboot, shutdown and poweroff are all symlinks to /usr/bin/systemctl. But issuing reboot, shutdown and systemctl commands obviously does not all have the same behaviour.

Categories Q&A, Unix & Linux Tags arch-linux, ln, ls, reboot, symlink Leave a comment

Gnome suggests me to open external HDDs with Anjuta

August 10, 2022 by Magenaut

When I attach an external HDD, GNOME suggests opening it with Anjuta:

Categories Q&A, Unix & Linux Tags external-hdd, gnome-shell Leave a comment

How to perform chroot with Linux namespaces?

August 10, 2022 by Magenaut

After reading about Linux namespaces I was under the impression that they are, amongst a lot of other features, an alternative to chroot. For example, in this article:

Categories Q&A, Unix & Linux Tags chroot, namespace Leave a comment

Ranger – open_with without suspending

August 10, 2022 by Magenaut

When I open a file into ranger with a GUI application not listed in the rifle.conf file (i.e. using the open_with command), the ranger terminal window gets “suspended” until I close the GUI app.

Categories Q&A, Unix & Linux Tags defaults, gui, ranger, window Leave a comment

Trailing slashes on symbolic links to directories

August 10, 2022 by Magenaut

I’m trying to emulate the process of path resolution (see man page path_resolution) in unix-like systems.

Categories Q&A, Unix & Linux Tags coreutils, directory, filenames, symlink Leave a comment
Older posts
Newer posts
← Previous Page1 … Page105 Page106 Page107 … 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