Skip to content

Magenaut

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

Unix & Linux

Where should an application be installed if it consists of multiple files?

August 7, 2022 by Magenaut

I have noticed that essentially all the files in /usr/bin are stand-alone executables, rather than a directory containing the executable plus other files that the executable might need (such as configuration files, data files, etc.)

Categories Q&A, Unix & Linux Tags directory-structure, software-installation Leave a comment

How to recursively find the amount stored in directory?

August 7, 2022 by Magenaut

I know you are able to see the byte size of a file when you do a long listing with ll or ls -l. But I want to know how much storage is in a directory including the files within that directory and the subdirectories within there, etc. I don’t want the number of files, but instead the amount of storage those files take up.

Categories Q&A, Unix & Linux Tags directory, disk-usage, recursive Leave a comment

systemctl status shows : “State: degraded”

August 7, 2022 by Magenaut

When I run systemctl status, I get State: degraded at the top,

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

Bash script to get ASCII values for alphabet

August 7, 2022 by Magenaut

How do I get the ASCII value of the alphabet?

Categories Q&A, Unix & Linux Tags ascii, bash, bash-script Leave a comment

refresh changed content of file opened in vi(m)

August 7, 2022 by Magenaut

I have a config-file that I keep open in vim, but that sometimes gets changed on disk, without these changes being reflected on the terminal. Can I refresh the content on the screen without closing and re-opening the file? If so, how?

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

Cron only occasionally sends e-mail on output and errors

August 7, 2022 by Magenaut

On Debian 8.1, I’m using a Bash feature to detect whether the stackoverflow.com website is reachable:

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

Is the Filesystem Hierarchy Standard a UNIX standard or a GNU/Linux standard?

August 7, 2022 by Magenaut

The Filesystem Hierarchy Standard says where to put stuff in a UNIX distribution.

Categories Q&A, Unix & Linux Tags fhs, filesystems, history Leave a comment

Find files which are created a certain time after or before a particular file was created

August 7, 2022 by Magenaut

I need a shell script which finds files which are created 1 hour before or 1 hour after a particular file (test.txt) was created.

Categories Q&A, Unix & Linux Tags date, find, shell, shell-script Leave a comment

how does systemd determine service is stopped?

August 7, 2022 by Magenaut

Our application uses an init.d script to start and stop the application as a service. Under CentOS 7, /sbin/init is symlinked to systemd, so I can start my application using either:

Categories Q&A, Unix & Linux Tags init.d, systemd Leave a comment

How do I tell a script to wait for a process to start accepting requests on a port?

August 7, 2022 by Magenaut

I need a command that will wait for a process to start accepting requests on a specific port.

Categories Q&A, Unix & Linux Tags networking, open-files, process, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page265 Page266 Page267 … 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