Skip to content

Magenaut

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

Unix & Linux

Why can’t tr read from /dev/urandom on OSX?

August 7, 2022 by Magenaut

A colleague suggested creating a random key via the following command:

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

get first X characters from the cat command?

August 7, 2022 by Magenaut

I have a text file I’m outputting to a variable in my shell script. I only need the first 50 characters however.

Categories Q&A, Unix & Linux Tags cat, cut Leave a comment

Fedora 23 — Can I safely delete files in /var/cache/PackageKit/metadata/updates/packages?

August 7, 2022 by Magenaut

I noticed that the folder referenced in the subject line is taking up 1.5 GB. Can I run the below to clear it without causing permanent damage to my system?

Categories Q&A, Unix & Linux Tags disk-usage, fedora Leave a comment

How do I switch from an unknown shell to bash?

August 7, 2022 by Magenaut

I was surprised that I didn’t find this question already on the site. So, today $ came up after I logged in as a new user. This was unexpected because my main user’s prompt starts with [email protected]:~$.

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

convert images to pdf: How to make PDF Pages same size

August 7, 2022 by Magenaut

I did something like

Categories Q&A, Unix & Linux Tags conversion, imagemagick, pdf Leave a comment

How to delete the rest of each line after a certain pattern or a string in a file?

August 7, 2022 by Magenaut

Suppose I have a list of URLs in a text file:

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

Increase %e precision with /usr/bin/time shell command

August 7, 2022 by Magenaut

When I run the time command in shell time ./myapp I get an output like the following:

Categories Q&A, Unix & Linux Tags scripting, shell, time Leave a comment

How do I create a blank PDF from the command line?

August 7, 2022 by Magenaut

I recently needed a single blank PDF page (8.5″ x 11″ size) and realized that I didn’t know how to make one from the command line.

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

Specify the sort order with LC_COLLATE so lowercase is before uppercase

August 7, 2022 by Magenaut

Given the file:

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

understanding the output of “apt-cache policy”

August 7, 2022 by Magenaut

I ran apt-cache policy sudo before and after installing sudo:

Categories Q&A, Unix & Linux Tags apt Leave a comment
Older posts
Newer posts
← Previous Page1 … Page280 Page281 Page282 … 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