today's howtos
-
LibreOffice Workbook Worksheet and Cell Processing using Macro
In this tutorial, you will learn how to access the workbook, worksheet and Cell contents using LibreOffice Calc basic macros.
Spreadsheet applications like Calc consist of workbooks, worksheets and individual Cells. It is often required to process those using Macro to automate various tasks.
This tutorial will demonstrate the basic processing of worksheets and cells, which is the foundation of many complex macros.
Note: This tutorial assumes you have the initial set up on creating a basic Macro in LibreOffice Calc.
-
The Linux killall Command - buildVirtual
The killall command is a powerful tool in the Linux command line that allows you to terminate processes by their name. It is a convenient way to stop multiple processes at once, saving you the time and effort of manually killing each process individually.
The basic syntax of the killall command is killall process_name, where process_name is the name of the process you want to terminate. For example, to kill all instances of the firefox process, you would use the command killall firefox.
One useful feature of the killall command is the ability to specify a signal to be sent to the processes being terminated. The default signal is SIGTERM, which asks the process to terminate gracefully. However, you can also use other signals such as SIGKILL to force the process to terminate immediately. To specify a signal, you can use the -s option followed by the signal number or name. For example, to force all instances of the firefox process to terminate immediately, you would use the command killall -s SIGKILL firefox.
-
How to Backup and Restore Linux Command History
The Linux shell (specifically, “Bash“) takes each executed command as an event and saves the command in the “.bash_history” file located in the user’s home directory.
Now, there are two ways to view the history record of a user’s executed command: one using the history command, and the other by reading the “.bash_history” file using the cat command.