This note describes two methods of how to create a desktop shortcut in Ubuntu from the command line. The simplest method is to create the desktop shortcut as a symbolic link using the ln command. The second method is a bit more complex but it allows to create much more customizable desktop shortcuts using the […]
Blog
Docker: Remove All Images & Containers
This short note shows how to remove all Docker images and containers. Use these commands with caution as they force the removal of all the Docker images and containers including the running ones.
Batch File Comment (Remark) – Windows
A batch file (batch script) in Windows is a text file that typically has a .bat extension and includes one or more command prompt commands. It is a good practice to comment a source code in a batch file by leaving the remarks that explain functionality of some lines or blocks of code. Also any […]
OpenSSL: Generate Key – RSA Private Key
An RSA key is a private key based on RSA algorithm, used for authentication and an symmetric key exchange during establishment of an SSL/TLS session. The RSA private key in PEM format (the most common format for X.509 certificates, CSRs and cryptographic keys) can be generated from the command line using the openssl genpkey utility.
Alpine: Install Package
A minimal Docker image based on Alpine Linux has only 5 MB in size, but a lot of packages common for Linux distributions are not installed by default. In this short note i will show how to install a package in Alpine container from the command line using the apk (Alpine package manager). I will […]
Jenkins: Schedule – Build Periodically – Parameters
A Job in Jenkins can be scheduled for periodical builds in a declarative pipeline i.e. Jenkinsfile using a string in a cron-style syntax (with minor differences) defined in the triggers directive, for example triggers{cron(‘0 */3 * * *’)}. This note shows the examples of how to build Jenkins jobs and multi-branch pipelines periodically and how […]
Windows: Get Process Name From PID
The process identifier (a.k.a. process ID or PID) is a number used to uniquely identify an active process. In this short note i will show how to display information about the Windows process (incl. the process name and path to an executable file) by PID from the command-line prompt (CMD) or a Windows PowerShell.
Windows: `Touch` Command – Equivalent
The touch command in Linux is used to change a file’s “Access“, “Modify” and “Change” timestamps to the current time and date, but if the file doesn’t exist, the touch command creates it. If you simply want to create an empty file from the command-line prompt (CMD) or a Windows PowerShell – the type and […]
Windows: Uptime Command – CMD & PowerShell
Even though there is still no built-in Windows uptime command, the actual uptime of the server/workstation or the system boot time can be checked from the command-line. In this note i will show several methods of how to check Windows uptime from the command-line prompt and PowerShell.
Git – Checkout Remote Branch
Git doesn’t allow to work on remote branches directly so you can’t literally checkout a remote branch. If you want to checkout a remote branch, you need to create your own local “copy” of that branch and then check it out. This note shows how to do this.