Skip to content

Magenaut

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

Unix & Linux

Bash sort array according to length of elements?

August 6, 2022 by Magenaut

Given an array of strings, I would like to sort the array according to the length of each element.

Categories Q&A, Unix & Linux Tags array, bash, shell-script, sort Leave a comment

How can you schedule a computer to boot at a specific time?

August 6, 2022 by Magenaut

Usually BIOSes have an option to schedule a time to which to boot at. Is there a Unix/Linux interface to specify the scheduled boot?

Categories Q&A, Unix & Linux Tags boot, scheduling Leave a comment

tomcat 8 will not start after initial install

August 6, 2022 by Magenaut

I am trying to install tomcat on a new CentOS 7 virtual machine. I successfully installed apache httpd, and am able to get the apache test page when I type the ip of the virtual machine into a web browser on another computer in the network. But I am getting the following error message when I type systemctl start tomcat:

Categories Q&A, Unix & Linux Tags centos, tomcat, webserver Leave a comment

Is interrupting badblocks risky?

August 6, 2022 by Magenaut

I’m running badblocks to check for bad segments on an external drive, and it’s been about an hour and it has not yet finished. Now, I need to go and consider cancelling. Is this somehow risky? Should I avoid this?

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

How do I resolve samba share to IP address or host name

August 6, 2022 by Magenaut

I have a list of hosts in the network providing shares via SAMBA. How can I determine either IP address or the host name of one particular host, e.g. the one with the name “SASAK02”.

Categories Q&A, Unix & Linux Tags networking, samba Leave a comment

btrfs — Is it dangerous to defragment subvolume which has readonly snapshots?

August 6, 2022 by Magenaut

If you open the defragment section of btrfs-filesystem(8), you will see the following ominous inscription left by the developers:

Categories Q&A, Unix & Linux Tags btrfs, copy-on-write, defragmentation Leave a comment

How to emulate Process Substitution in Dash?

August 6, 2022 by Magenaut

In bash, I can use Process Substitution and treat output of a process as if it was a file saved on disk:

Categories Q&A, Unix & Linux Tags dash, process-substitution Leave a comment

Why does POSIX require certain shell built-ins to have an external implementation?

August 6, 2022 by Magenaut

From this question about whether printf is a built-in for yash, comes this answer that quotes the POSIX standard.

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

where does lspci gather its information from?

August 6, 2022 by Magenaut

In kernel.org’s documentation on proc I found “[The latest version of this document is available online“. There I says: “… lspci is a synonym for cat /proc/pci“.

Categories Q&A, Unix & Linux Tags documentation, proc Leave a comment

How updated and relevant is “The Linux Documentation Project”?

August 6, 2022 by Magenaut

I have been advised by many senior Unix/Linux Administrators to go through “The Linux Documentation Project” on the site www.tldp.org.

Categories Q&A, Unix & Linux Tags documentation, linux Leave a comment
Older posts
Newer posts
← Previous Page1 … Page364 Page365 Page366 … 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