Skip to content

Magenaut

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

Unix & Linux

How to run time on multiple commands AND write the time output to file?

August 8, 2022 by Magenaut

I want to run time command to measure time of several commands.

Categories Q&A, Unix & Linux Tags command, shell, time-utility Leave a comment

Find the total size of certain files within a directory branch

August 8, 2022 by Magenaut

Assume there’s an image storage directory, say, ./photos/john_doe, within which there are multiple subdirectories, where many certain files reside (say, *.jpg). How can I calculate a summary size of those files below the john_doe branch?

Categories Q&A, Unix & Linux Tags directory, directory-structure, files, size Leave a comment

What program specifically sets /var/log/boot.log to 644 perms in RHEL/Centos 6?

August 8, 2022 by Magenaut

I’ve been assigned to lock down all /var/log files so that they cannot be read except by the root user. I’ve been stumped by the /var/log/boot.log file. It seems that after every boot the file no matter what what previous permission state gets set to 644 permissions.

Categories Q&A, Unix & Linux Tags centos, logs, permissions, rhel Leave a comment

As root, how can I list the crontabs for all users?

August 8, 2022 by Magenaut

I have a script being run automatically that I can’t find in the crontab for the expected users, so I’d like to search all users’ crontabs for it.

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

documentation on ptmx and pts

August 8, 2022 by Magenaut

I am want to stream a linux terminal to my own program, and as far as I understand this is done by opening /dev/ptmx to start a new pts, I have tested this and this does indeed work (it creates a new file in /dev/pts). But I am not sure how I am supposed to … Read more

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

When I redirect the output of ls to a file, the filename is included in that file. How can I avoid this?

August 8, 2022 by Magenaut

Observe:

Categories Q&A, Unix & Linux Tags command-line, io-redirection, ls, shell Leave a comment

Send mail with an attachment and body of mail with table format

August 8, 2022 by Magenaut

I need to send a mail with an attachment and body of mail in table format.I have used the below code to send mail. but unable to attache file.

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

Permissions: What’s the right way to give Apache more user permissions?

August 8, 2022 by Magenaut

Context: I am making an in-browser control panel that gives me one button access to a library of scripts (.sh and .php) that I’ve written to process various kinds of data for a project. It’s a “one stop shop” for managing data for this project.

Categories Q&A, Unix & Linux Tags apache-httpd, permissions, php Leave a comment

Problems with the Wifi connections (RTL8723BE). Kali Linux

August 8, 2022 by Magenaut

I’d been using Kali on my VM for quite a long time and few days ago I’ve decided to install it like my main OS.

Categories Q&A, Unix & Linux Tags debian, kali-linux, realtek, wifi Leave a comment

Make xargs pass as first parameter

August 8, 2022 by Magenaut

I’m trying to produce this behaviour:

Categories Q&A, Unix & Linux Tags xargs Leave a comment
Older posts
Newer posts
← Previous Page1 … Page249 Page250 Page251 … 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