•  ru
ShellHacks
Command-Line Tips and Tricks

Blog

  • Blog

Ubuntu: Desktop Shortcut Creation

Posted on Monday December 7th, 2020by admin

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 […]

Read More
No comments yet
  • Blog

Docker: Remove All Images & Containers

Posted on Thursday November 26th, 2020by admin

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.

Read More
No comments yet
  • Blog

Batch File Comment (Remark) – Windows

Posted on Thursday November 19th, 2020by admin

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 […]

Read More
1 Comment
  • Blog

OpenSSL: Generate Key – RSA Private Key

Posted on Tuesday November 17th, 2020by admin

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.

Read More
No comments yet
  • Blog

Alpine: Install Package

Posted on Monday November 16th, 2020Wednesday November 18th, 2020by admin

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 […]

Read More
1 Comment
  • Blog

Jenkins: Schedule – Build Periodically – Parameters

Posted on Tuesday November 10th, 2020by admin

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 […]

Read More
No comments yet
  • Blog

Windows: Get Process Name From PID

Posted on Saturday October 31st, 2020by admin

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.

Read More
No comments yet
  • Blog

Windows: `Touch` Command – Equivalent

Posted on Wednesday October 28th, 2020by admin

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 […]

Read More
1 Comment
  • Blog

Windows: Uptime Command – CMD & PowerShell

Posted on Friday October 23rd, 2020by admin

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.

Read More
1 Comment
  • Blog

Git – Checkout Remote Branch

Posted on Tuesday October 20th, 2020Tuesday October 20th, 2020by admin

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.

Read More
No comments yet

Posts navigation

Older posts
Newer posts

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive artifactory aws bash boot cmd command-line curl dns docker encryption git java jenkins kubernetes linux mail mongodb mysql network nmap openssl oracle password pdf performance powershell prometheus proxy python rabbitmq raspberry pi redis ssh systemd telnet text-processing tor tsm windows yum
  • Twitter
  • RSS
Privacy
Copyright © 2011-2020 | www.ShellHacks.com