Skip to content

Magenaut

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

Unix & Linux

Difference between executing multiple commands with && and ;

August 11, 2022 by Magenaut

What’s the difference between executing multiple commands with && and ;? Examples: echo "Hi!" && echo "How are you?" and echo "Hi!"; echo "How are you?" Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as … Read more

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

Find out which modules are associated with a usb device?

August 11, 2022 by Magenaut

Could you recommend a way to figure out which driver is being used for a USB device.
Sort of a usb equivalent of lspci -k command.

Categories Q&A, Unix & Linux Tags drivers, kernel-modules Leave a comment

Harddisk serial number from terminal?

August 11, 2022 by Magenaut

I have multiple harddisks which get connected to my server and I’m not sure which one is what in the view of sdXY . If I can see the serial numbers of my harddisks from terminal, I can easily identify them.

Categories Q&A, Unix & Linux Tags hard-disk, hardware Leave a comment

Stripping directory paths to get file names

August 11, 2022 by Magenaut

What I am doing is converting mp3’s with LAME. I already have an old script I wrote that works but I want to add to it this ability–to no longer delete the file but instead save it in a new root folder with sub-directories that match the using the path that it is already in.

Categories Q&A, Unix & Linux Tags file-descriptors, filenames, shell-script, strip Leave a comment

How does one change the delay that occurs after entering an incorrect password?

August 11, 2022 by Magenaut

After entering an incorrect password at a login prompt, there s an approximately 3-second delay. How can I change that on a Linux system with PAM?

Categories Q&A, Unix & Linux Tags hardening, login, pam Leave a comment

Linux: set date through command line

August 11, 2022 by Magenaut

How to change the system date in Linux ?

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

Newlines in filenames

August 11, 2022 by Magenaut

I understand and accept the premise that defensive1 shell scripting is both prudent and, in the longer term, more sustainable.

Categories Q&A, Unix & Linux Tags filenames, newlines, shell-script Leave a comment

How can I mount a filesystem, mapping userids?

August 11, 2022 by Magenaut

I can successfully mount an ext4 partition, the problem is that all the files on the partition are owned by the user with userid 1000. On one machine, my userid is 1000, but on another it’s 1010. My username is the same on both machines, but I realise that the filesystem stores userids, not usernames.

Categories Q&A, Unix & Linux Tags ext4, mount Leave a comment

How to disable auto suspend when I close laptop lid?

August 11, 2022 by Magenaut

I’m using archlinux. It never auto-suspend before a recent system upgrade(maybe I updated the kernel?).

Categories Q&A, Unix & Linux Tags acpi, arch-linux, laptop, laptop-mode, suspend Leave a comment

A shell tool to “tablify” input data

August 11, 2022 by Magenaut

A long time ago I remember using a command that makes its input into a nicely formatted table.

Categories Q&A, Unix & Linux Tags shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page23 Page24 Page25 … 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