Skip to content

Magenaut

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

Unix & Linux

Is there any way to execute commands from history?

August 9, 2022 by Magenaut

For example:

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

What page replacement algorithms are used in Linux kernel for OS file cache?

August 9, 2022 by Magenaut

Linux uses the unused portions of memory for file caching, and it cleans up the space when needed.

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

How to search text throughout entire file system?

August 9, 2022 by Magenaut

Assuming that the grep tool should be used, I’d like to search for the text string “800×600” throughout the entire file system.

Categories Q&A, Unix & Linux Tags grep, recursive Leave a comment

Detect if mouse button is pressed, then invoke a script or command

August 9, 2022 by Magenaut

Is there any way to get mouse button state from bash? Xdotool can only get mouse location.

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

SSD: how often should I do fstrim?

August 9, 2022 by Magenaut

There are different sources and different practices are suggested. I found the following proposals how often one should run fstrim.

Categories Q&A, Unix & Linux Tags ssd, trim Leave a comment

Change default sudo password timeout

August 9, 2022 by Magenaut

When I run sudo and enter my password, a subsequent invocation of sudo within a few minutes will not need the password to be re-entered.

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

How to add a function to .bash_profile/.profile/bashrc in shell?

August 9, 2022 by Magenaut

I have a function which converts epoch time to date. Here is the definition

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

Linux file command classifying files

August 9, 2022 by Magenaut

I need to recognize type of data contained in random files. I am new to Linux.

Categories Q&A, Unix & Linux Tags file-command, file-format Leave a comment

How to change cron shell (sh to bash)?

August 9, 2022 by Magenaut

Is it possible to make commands in crontab run with bash instead of sh? I know you can pass commands to bash with -c, but that’s annoying and I never use sh anyway.

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

How to safely replace a not-yet-failed disk in a Linux RAID5 array?

August 9, 2022 by Magenaut

I have a software RAID5 array (Linux md) on 4 disks.

Categories Q&A, Unix & Linux Tags linux, mdadm, raid5, software-raid Leave a comment
Older posts
Newer posts
← Previous Page1 … Page159 Page160 Page161 … 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