Skip to content

Magenaut

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

Unix & Linux

Does tail read the whole file?

August 9, 2022 by Magenaut

If I want to tail a 25 GB textfile, does the tail command read the whole file?

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

How can I numerically sort a single line of delimited items?

August 9, 2022 by Magenaut

I have a line (or many lines) of numbers that are delimited by an arbitrary character. What UNIX tools can I use to sort each line’s items numerically, retaining the delimiter?

Categories Q&A, Unix & Linux Tags numeric-data, sort Leave a comment

Correct location for piping and redirecting output in find -exec?

August 9, 2022 by Magenaut

I’m using find with the -exec option in console, on FreeBSD (for example, find . -exec sha1 {} ;).

Categories Q&A, Unix & Linux Tags find, freebsd, io-redirection, shell Leave a comment

Is awk’s nextfile specified in POSIX?

August 9, 2022 by Magenaut

GNU awk manual on nextfile reads:

Categories Q&A, Unix & Linux Tags awk, posix Leave a comment

sponge from moreutils – what’s the difference to shell redirect? useful examples?

August 9, 2022 by Magenaut

sponge reads standard input and writes it out to the specified file.
Unlike a shell redirect, sponge soaks up all its input before writing
the output file. This allows constructing pipelines that read from
and write to the same file.

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

Deleting billions of files from a directory while seeing the progress as well

August 9, 2022 by Magenaut

I have a directory of 30 TB having billions of files in it which are formally all JPEG files. I am deleting each folder of files like this:

Categories Q&A, Unix & Linux Tags progress-information, rm Leave a comment

How do I force a user to change a password at the first time login using ssh?

August 9, 2022 by Magenaut

I’m trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did the following so far:

Categories Q&A, Unix & Linux Tags bash, linux, login, pam, ssh Leave a comment

How to get only files created after a date with ls?

August 9, 2022 by Magenaut

With the ls command, is it possible to show only the files created after a specific date, hour…?

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

How to set power button to shutdown instead of suspend?

August 9, 2022 by Magenaut

I am using GNOME 3.18.1 on Arch Linux 4.2.5-1-ARCH x86_64 on a Dell E6530 laptop. Since I installed this OS years ago, the power button on my laptop has always led my OS to completely power down.

Categories Q&A, Unix & Linux Tags gnome3, power-management Leave a comment

Using “reserved” codes for exit status of shell scripts

August 9, 2022 by Magenaut

I recently came across this list of Exit Codes With Special Meanings from the Advanced Bash-Scripting Guide. They refer to these codes as being reserved and recommend that:

Categories Q&A, Unix & Linux Tags bash, exit, shell-script Leave a comment
Older posts
Newer posts
← Previous Page1 … Page148 Page149 Page150 … 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