Skip to content

Magenaut

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

Unix & Linux

How to ignore write errors while zeroing a disk?

August 7, 2022 by Magenaut

Say you want to zero-out a failing hard disk. You want to overwrite as much as possible with zeros. What you don’t want is: the process aborts on the first write-error. How to do that?

Categories Q&A, Unix & Linux Tags dd, ddrescue, hard-disk Leave a comment

What are the exact differences between awk and cut with grep?

August 7, 2022 by Magenaut

We know that we can get the second column of the line we want from a file using these two techniques: awk '/WORD/ { print $2 }' filename or grep WORD filename| cut -f 2 -d ' ' My questions are: What are the differences between the two commands above? Which one has the best … Read more

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

How to automatically start and shut down VirtualBox machines?

August 7, 2022 by Magenaut

I need to run a software system that is intended to be installed as an appliance on a dedicated machine. In order to save energy, I plan to run the system on a VirtualBox VM instead.

Categories Q&A, Unix & Linux Tags services, virtual-machine, virtualbox Leave a comment

Highlight current mouse position

August 7, 2022 by Magenaut

I’m running a dual-screen setup and have my trackpad disabled most of the time (which includes hiding the mousepointer).
When I reenable the trackpad (and display the mouse pointer again), I’ve lost track where the pointer was before.

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

How to find speed of WLAN interface?

August 7, 2022 by Magenaut

I’m trying to find the speed of a network interface using a file descriptor. It’s easy to do it for ethX, just calling cat /sys/class/net/eth0/speed. Unfortunately, this method doesn’t work with wireless interfaces. When I call /sys/class/net/wlan0/speed I get an error: invalid argument.

Categories Q&A, Unix & Linux Tags file-descriptors, linux, ubuntu, wifi Leave a comment

Cron job to delete files older than 3 days

August 7, 2022 by Magenaut

I need to remove files older than 3 days with a cron job in 3 different directories. (these 3 directories are children of a parent directory /a/b/c/1 & /a/b/c/2 & /a/b/c/3) Can this be done with one line in the crontab?

Categories Q&A, Unix & Linux Tags cron, files, rm, shell-script, timestamps Leave a comment

How to convert floating point number to integer?

August 7, 2022 by Magenaut

Is this the right way to do float to integer conversion in bash? Is there any other method?

Categories Q&A, Unix & Linux Tags bash, floating-point, numeric-data Leave a comment

Tiling windows in GNOME 2

August 7, 2022 by Magenaut

How can I get tiling windows in GNOME?

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

How to start a second X session?

August 7, 2022 by Magenaut

I tried to do it with the command startx 1. It seemed to flicker to a different screen momentarily, but then exited. Got the following error:

Categories Q&A, Unix & Linux Tags startx, x11, xorg Leave a comment

How do I pipe ls to grep, and delete the files filtered by grep?

August 7, 2022 by Magenaut

I wanted to delete some package in my home file, but the filename was too long (google-chrome-stable_current_i386.deb). So, I decided to use the command ls|grep chrome|rm to pipe the files to grep to filter out the chrome file, and then remove it. It didn’t work, so I would like to see how I can do this.

Categories Q&A, Unix & Linux Tags grep, ls, pipe, rm Leave a comment
Older posts
Newer posts
← Previous Page1 … Page288 Page289 Page290 … 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