Skip to content

Magenaut

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

command-line

How can I find a file whose name includes a given string, such as “abcde”?

August 9, 2022 by Magenaut

Within a set of directories, how do I find a file whose name includes a given string, such as “abcde”?

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

Using –exclude with the du command

August 9, 2022 by Magenaut

This is probably something basic but I’m not able to make it work. I’m trying to use DU to get a total size of files minus certain directories. I need to exclude one specific directory called uploads but not every directory called uploads. For example, my file structure looks a bit like this:

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

How to to resize an ext4 partition from the command line?

August 9, 2022 by Magenaut

What’s the easiest way to resize an ext4 partition (or any type partition depending on the method) from the command line (potentially with the fewest commands, but also the easiest to understand)?

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

Simple command line HTTP server

August 9, 2022 by Magenaut

I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don’t want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security implications.

Categories Q&A, Unix & Linux Tags command-line, html, http, webserver Leave a comment

How can I remove duplicates in my .bash_history, preserving order?

August 9, 2022 by Magenaut

I really enjoying using control+r to recursively search my command history. I’ve found a few good options I like to use with it:

Categories Q&A, Unix & Linux Tags bash, command-history, command-line, sort, uniq Leave a comment

How to expand ext4 partition size using command-line?

August 9, 2022 by Magenaut

I have a drive with this configuration:

Categories Q&A, Unix & Linux Tags command-line, debian, filesystems, partition Leave a comment

Count number of lines of output from previous program

August 9, 2022 by Magenaut

I’m trying to count the number of lines of output a certain program produces. The problem is, the program takes a long time to run, and I want to display the output to the user. Is there a way to count the number of lines the last command outputted?

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

Which MP3 tagging tool for Linux?

August 9, 2022 by Magenaut

puddletag is an audio tag editor (primarily created) for GNU/Linux
similar to the Windows program, Mp3tag. Unlike most taggers for
GNU/Linux, it uses a spreadsheet-like layout so that all the tags you
want to edit by hand are visible and easily editable.

Categories Q&A, Unix & Linux Tags command-line, mp3, software-rec, tagging Leave a comment

How do I insert a space every four characters in a long line?

August 9, 2022 by Magenaut

I’ve got a long line that I want to insert a space every 4 characters, on a single lone line of solid text to make it easier to read, what’s the simplest way to do this? also I should be able to input the line from a pipe. e.g.

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

How do I add newlines between lines printed on the command line?

August 9, 2022 by Magenaut

Mail logs are incredibly difficult to read. How could I output a blank line between each line printed on the command line? For example, say I’m grep-ing the log. That way, multiple wrapped lines aren’t being confused.

Categories Q&A, Unix & Linux Tags command-line, logs, output, text-formatting, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … Page23 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