Showing headlines posted by tecmint

« Previous ( 1 ... 10 11 12 13 14 15 )

How to Create an SSH Key Passphrase in Linux

SSH keys are commonly used without a passphrase. This is especially true when automating tasks because no human is expected to be available to type in the passphrase. Nevertheless, the use of SSH key passphrases is recommended for interactive users.

How to Generate Self-Signed SSL Certificates using OpenSSL

  • LinuxShellTips; By LinuxShellTips (Posted by tecmint on Mar 30, 2021 6:59 PM EDT)
  • Story Type: Tutorial; Groups: Linux
Ideally, SSL certificates are issued by publicly trusted certificate authorities (e.g. Let’s Encrypt, Comodo, Verisign) to provide authentication and encryption on the internet. However, you could obtain an SSL certificate without going through a third-party certificate authority — this is what is referred to as a self-signed certificate.

LFCA: Learn to Manage Time and Date in Linux – Part 6

Time is crucial in any Linux system. Multiple services such as crontab, anacron, backup and restore services depend on accurate time to carry out their tasks as expected.

How to Use Break and Continue in Shell Scripts

  • Tecmint; By Karthick (Posted by tecmint on Mar 26, 2021 2:54 AM EDT)
  • Groups: Linux
In this article, we will take a look at how to use a break and continue in bash scripts. In bash, we have three main loop constructs (for, while, until). Break and continue statements are bash builtin and used to alter the flow of your loops. This concept of break and continue are available in popular programming languages like Python.

How to Set Static IP Address on Ubuntu Linux

  • LinuxShellTips; By LinuxShellTips (Posted by tecmint on Mar 25, 2021 6:14 PM EDT)
  • Story Type: Tutorial; Groups: Linux
On Ubuntu 18.04 and later versions, there is a new way to set an IP address i.e., Netplan. This tutorial describes how to set an IP address from the command line on Ubuntu Linux by using the Netplan utility.

How to Batch Convert PNG Images to JPG Format in Linux

  • LinuxShellTips (Posted by tecmint on Mar 24, 2021 7:03 PM EDT)
  • Story Type: Tutorial; Groups: Linux
Although PNG offers a better image quality compared with JPG, the large size factor is usually a concern for Internet users. This is typically why PNG images are converted to JPG.

How to Use until Loop in Your Shell Scripts

  • Tecmint; By Karthick (Posted by tecmint on Mar 23, 2021 8:45 PM EDT)
  • Groups: Linux
In bash for, while, and until are three loop constructs. While each loop differs syntactically and functionally their purpose is to iterate over a block of code when a certain expression is evaluated.

Until loop is used to execute a block of code until the expression is evaluated to be false. This is exactly the opposite of a while loop. While loop runs the code block while the expression is true and until loop does the opposite.

How Do I Escape Spaces in Paths for Scp in Linux?

  • LinuxShellTips; By LinuxShellTips (Posted by tecmint on Mar 23, 2021 12:04 PM EDT)
  • Story Type: Tutorial; Groups: Linux
The Secure Copy tool (scp) is an easy way to securely copy files to and from remote computers. But frustration can easily set in when scp does not work correctly due to spaces in file names and/or folder paths.

« Previous ( 1 ... 10 11 12 13 14 15 )