Skip to content

Magenaut

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

Unix & Linux

Remove entire row in a file if first column is repeated

August 10, 2022 by Magenaut

I have a file containing two columns and 10 million rows. The first column contains many repeated values, but there is a distinct value in column 2. I want to remove the repeated rows and want to keep only one using awk. Note: the file is sorted with values in column 1. For example:

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

find and rsync?

August 10, 2022 by Magenaut

I want to be able to search for files over 14 days and over 10k and than rsync those found files to a destination.

Categories Q&A, Unix & Linux Tags bash, find, pipe, rsync, shell Leave a comment

What are the readline word separators?

August 10, 2022 by Magenaut

When I delete a “word” in Bash, it will stop at certain characters like _ and /. For example, if I type

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

Map Caps Lock to Control in Linux Mint

August 10, 2022 by Magenaut

I am running the latest version of Linux Mint with Cinnamon. I’m trying to map Caps Lock to Ctrl, but I cannot figure out how to do it. All web searches I’ve done have led me to older versions of Linux Mint (there is no keyboard layout option in my settings). How can I do this?

Categories Q&A, Unix & Linux Tags keyboard-shortcuts, linux-mint, x11, xkb, xmodmap Leave a comment

Setting running process affinity with taskset fails

August 10, 2022 by Magenaut

I’m attempting to limit a process to a given number of CPU cores. According to the taskset man page and this documentation, the following should work:

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

apt-get – autoremove wants to uninstall Gnome

August 10, 2022 by Magenaut

As empathy 2.30 in Debian Wheezy didn’t meet all my preferences I tried out empathy 3.1 from experimental, using the command:

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

What does pwd output?

August 10, 2022 by Magenaut

Does the command pwd in a shell script output the directory the shell script is in?

Categories Q&A, Unix & Linux Tags command-line, linux, shell Leave a comment

Triggering an action when a specific volume is connected

August 10, 2022 by Magenaut

I have a USB key that contains my keepass2 password database and I’d like to perform some actions when it is plugged into my computer, namely:

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

Redirect stdout over ssh

August 10, 2022 by Magenaut

I would like to run

Categories Q&A, Unix & Linux Tags io-redirection, pipe, ssh Leave a comment

Why does the following way not change core file limit size?

August 10, 2022 by Magenaut

To solve the problem in https://unix.stackexchange.com/a/446428/674, I followed https://stackoverflow.com/a/17483998/156458, but it doesn’t set core file limit size?

Categories Q&A, Unix & Linux Tags bash, core-dump, ulimit Leave a comment
Older posts
Newer posts
← Previous Page1 … Page110 Page111 Page112 … 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