Skip to content

Magenaut

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

Unix & Linux

Print odd-numbered lines, print even-numbered lines

August 11, 2022 by Magenaut

I want to print the odd-numbered and even-numbered lines from files.

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

What to do when a Linux desktop freezes?

August 11, 2022 by Magenaut

I’m a Windows guy, dual booted recently, and now I’m using Linux Mint 12

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

Linux “top” command: What are us, sy, ni, id, wa, hi, si and st (for CPU usage)?

August 11, 2022 by Magenaut

When I issue top in Linux, I get a result similar to this:

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

Get total duration of video files in a directory

August 11, 2022 by Magenaut

I have a list of .ts files:

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

Difference between process group and job?

August 11, 2022 by Magenaut

What’s the difference between a process group and a job? If I type pr * | lpr then is it both a process group as well a job?
What exactly is the difference between a process group ID and a job ID?

Categories Q&A, Unix & Linux Tags job-control, process, process-groups Leave a comment

How to use inotifywait to watch a directory for creation of files of a specific extension

August 11, 2022 by Magenaut

I have seen this answer.

Categories Q&A, Unix & Linux Tags filesystems, inotify, monitoring, shell, shell-script Leave a comment

Can I safely remove /var/cache?

August 11, 2022 by Magenaut

I am running out of disk space and noted that I have a large /var/cache directory. Can I safely remove this? (using Arch Linux, BTW).

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

Writing a systemd service to be executed at resume

August 11, 2022 by Magenaut

my Dell laptop is subject to this bug with kernel 3.14. As a workaround I wrote a simple script

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

How can I kill a process and be sure the PID hasn’t been reused

August 11, 2022 by Magenaut

Suppose, for example, you have a shell script similar to:

Categories Q&A, Unix & Linux Tags kill, process Leave a comment

How to bulk convert all the file in a file system branch between Unix and Windows line break format?

August 11, 2022 by Magenaut

Everybody knows 🙂 that in Windows plain text files lines are terminated with CR+LF, and in Unix&Linux – with LF only. How can I quickly convert all my source code files from one format to another and back?

Categories Q&A, Unix & Linux Tags newlines, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page25 Page26 Page27 … 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