Loading...
nixCraft Linux / UNIX Newsletter |
How to remove grep command while grepping using ps command Posted: 21 May 2021 01:10 AM PDT {Updated} We all use ps | grep foo combo to find and narrow down a running process on Linux and Unix-like systems. However, this results in an annoying problem where the grep command also appears in their own grepping result. Let us see how to exclude or hide grep from ps results. The post How to remove grep command while grepping using ps command appeared first on nixCraft. |
zcommands: Read gzip Compressed Text Files On a Fly on Linux and Unix Posted: 20 May 2021 04:08 PM PDT {Updated} Linux and Unix like operating systems comes with z* commands. These commands allow you to read gzip compressed text files using zless, zcat, zmore, and friends commands. The gzip command reduces the size of the files using Lempel-Ziv coding (LZ77). Whenever possible, each file is replaced by one with the extension .gz while keeping the same ownership modes, access, and modification times. z* commands have some cool usage too, such as display the current time in different zonename. The post zcommands: Read gzip Compressed Text Files On a Fly on Linux and Unix appeared first on nixCraft. |
How to shutdown FreeBSD laptop when running out of battery power Posted: 20 May 2021 03:34 PM PDT After my Raspberry PI died, I decided not to get a new one immediately. Instead, I turned the older laptop into a FreeBSD server. I use this server for Git, backup via ZFS snapshots, running Debian/RHEL VM using bhyve, side project web server and jails with ZFS. It works perfectly, but during monsoon season, the electric supply at home goes for hours, and my battery backup UPS only works for 15 minutes. Hence, when my FreeBSD laptop starts to run out of battery juicy, I want to shut it down automatically to avoid sudden filesystem and other corruption issues. |
You are subscribed to email updates from [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
Loading...
Loading...