Skip to content

Magenaut

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

osx

If I connect a physical device, how can I ever know which device file belongs to it?

August 9, 2022 by Magenaut

Say I plug in several USB drives which don’t get automatically mounted. How can I find out which device file belongs to which physical device, so I can mount it for example?

Categories Q&A, Unix & Linux Tags bsd, devices, linux, osx, usb Leave a comment

Is macOS a Unix distribution?

August 9, 2022 by Magenaut

I know that macOS is a UNIX operating system, but I don’t know whether macOS could be called a UNIX distribution in the same way Gentoo or Debian are GNU/Linux distributions.

Categories Q&A, Unix & Linux Tags distributions, osx Leave a comment

How to use ifconfig to show active interface only

August 9, 2022 by Magenaut

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below.

Categories Q&A, Unix & Linux Tags command-line, interface, networking, osx Leave a comment

Simple sed replacement of tabs mysteriously failing

August 9, 2022 by Magenaut

This ought to be really simple, but for some reason it is not working:

Categories Q&A, Unix & Linux Tags osx, regular-expression, sed Leave a comment

find -delete does not delete non-empty directories

August 9, 2022 by Magenaut

The command

Categories Q&A, Unix & Linux Tags find, osx Leave a comment

What prevents stdout/stderr from interleaving?

August 9, 2022 by Magenaut

Say I run some processes:

Categories Q&A, Unix & Linux Tags osx, output, shell, stderr, stdout Leave a comment

Is there a root password on OS X and Ubuntu?

August 8, 2022 by Magenaut

When you setup a new Ubuntu or OS X installation a user is generally created for you. On OS X it is whatever username you pick. On Ubuntu (the server version) usually the ubuntu user is created.

Categories Q&A, Unix & Linux Tags osx, password, root, ubuntu Leave a comment

What is a ~ (tilde) when used as a prefix to a path?

August 8, 2022 by Magenaut

Edit: This is a duplicate of https://stackoverflow.com/questions/998626/meaning-of-tilde-in-linux-bash-not-home-directory/. I don’t have the reputation to close this question as duplicate.

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

Shuffle two parallel text files

August 8, 2022 by Magenaut

I have two sentence-aligned parallel corpora (text files) with about 50 mil words. (from the Europarl corpus -> parallel translation of legal documents).
I’d now like to shuffle the lines of the two files, but both in the same way. I wanted to approach that using gshuf (I’m on a Mac) using one unique random source.

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

How do I move files based on size?

August 8, 2022 by Magenaut

I tried this:

Categories Q&A, Unix & Linux Tags find, osx Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 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