Skip to content

Magenaut

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

Unix & Linux

Is there a tool that combines zcat and cat transparently?

August 11, 2022 by Magenaut

When handling log files, some end up as gzipped files thanks to logrotate and others not. So when you try something like this:

Categories Q&A, Unix & Linux Tags cat, compression, gzip, text-processing Leave a comment

Using awk to sum the values of a column, based on the values of another column

August 11, 2022 by Magenaut

I am trying to sum certain numbers in a column using awk. I would like to sum just column 3 of the “smiths” to get a total of 212. I can sum the whole column using awk but not just the “smiths”. I have:

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

set LC_* but not LC_ALL

August 11, 2022 by Magenaut

I’d like to have a German (Austria) locale (A4 paper size, 24 hour time, yyyy-mm-dd), but an English-language user interface (I don’t like poor translations). I figured that the correct way to achieve this is to set the LC_ variables as follows in my .bashrc (please correct me if I’m wrong):

Categories Q&A, Unix & Linux Tags environment-variables, locale Leave a comment

Concatenate multiple files with same header

August 11, 2022 by Magenaut

I have multiple files with the same header and different vectors below that. I need to concatenate all of them but I want only the header of first file to be concatenated and I don’t want other headers to be concatenated since they are all same.

Categories Q&A, Unix & Linux Tags shell-script, text-processing Leave a comment

What does dd stand for?

August 11, 2022 by Magenaut

I know very well what the command does, but man dd, info dd tell me: ‘Convert and copy a file’, as does GNU Coreutils.

Categories Q&A, Unix & Linux Tags command-names, dd Leave a comment

extract value between two search patterns on same line

August 11, 2022 by Magenaut

I have the following in a file Output.dat. I need to extract the value between dn: uid= and ,ou=

Categories Q&A, Unix & Linux Tags sed, text-processing Leave a comment

Windows Managers vs Login Managers Vs Display Managers Vs Desktop Environment

August 11, 2022 by Magenaut

I posted a question and noticed people weren’t distinguishing correctly between many of these things: Windows Managers vs Login Managers Vs Display Managers Vs Desktop Environment. Can someone please clear this up, i.e. tell us the difference between them and how they are related perhaps?

Categories Q&A, Unix & Linux Tags desktop-environment, display-manager, login-manager, window-manager Leave a comment

How to start 2FA-using OpenVPN with systemd?

August 11, 2022 by Magenaut

I have openvpn config that users 2 factor authentication.

Categories Q&A, Unix & Linux Tags openvpn, systemd, ubuntu Leave a comment

Command line tool to “cat” pairwise expansion of all rows in a file

August 11, 2022 by Magenaut

Suppose I have a file (call it sample.txt) that looks like this:

Categories Q&A, Unix & Linux Tags awk, shell, shell-script, text-processing Leave a comment

How do ssh remote command line arguments get parsed

August 11, 2022 by Magenaut

I’ve seen the questions and answers about needing to double-escape the arguments to remote ssh commands. My question is: Exactly where and when does the second parsing get done?

Categories Q&A, Unix & Linux Tags bash, process, quoting, shell, ssh Leave a comment
Older posts
Newer posts
← Previous Page1 … Page18 Page19 Page20 … 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