Skip to content

Magenaut

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

Unix & Linux

How to display lines 2-4 after each grep result?

August 9, 2022 by Magenaut

I’m parsing a mailbox file that stores e-mail server reports for unsuccessfully delivered e-mail. I wish to extract bad e-mail addresses, so that I remove them from the system. The log file looks like this:

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

How to stop cursor from blinking

August 9, 2022 by Magenaut

How do I make the cursor stop blinking when in a TTY? (or anywhere else).

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

The difference between deb versus deb-src in sources.list

August 9, 2022 by Magenaut

I don’t understand the difference between these two lines in my sources.list, please explain:

Categories Q&A, Unix & Linux Tags apt, debian, repository Leave a comment

How to create a bootable Debian USB drive using Windows

August 9, 2022 by Magenaut

I am running Windows 10 and am starting to learn how to boot from USB devices.

Categories Q&A, Unix & Linux Tags bios, debian, system-installation, usb-drive, windows Leave a comment

List the files containing a particular word in their text

August 9, 2022 by Magenaut

I would like to list the files recursively and uniquely that contain the given word.

Categories Q&A, Unix & Linux Tags file-search, find, grep Leave a comment

What is the safest way for programmatically writing to a file with root privileges?

August 9, 2022 by Magenaut

A huge application needs, at one specific time, to perform a small number of writes to a file which requires root permissions. It is not really a file but a hardware interface which is exposed to Linux as a file.

Categories Q&A, Unix & Linux Tags privileges, setuid Leave a comment

How to grep lines between start and end pattern?

August 9, 2022 by Magenaut

I have a file which is having following content: zdk aaa b12 cdn dke kdn Input1: aaa and cdn Output 1: aaa b12 cdn Input 2: zdk and dke Output 2: zdk aaa b12 cdn dke I could use below commands to achieve: grep -a aaa -A2 file # Output 1 grep -a aaa -A4 … Read more

Categories Q&A, Unix & Linux Tags awk, grep, sed, text-processing 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

Need advice in choosing a tiling WM

August 9, 2022 by Magenaut

I’ve used GNOME’s default window manager for some years, but now I want to try a tiling window manager.

Categories Q&A, Unix & Linux Tags software-rec, tiling-wm, window-manager Leave a comment

Why can I list other users processes without root permission?

August 9, 2022 by Magenaut

Using ps -aux or top, I can list other users running processes, but I’m neither running as root nor making use of sudo, why?

Categories Q&A, Unix & Linux Tags linux, process, security Leave a comment
Older posts
Newer posts
← Previous Page1 … Page167 Page168 Page169 … 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