Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

The top command is a Linux command that displays real-time information about your computer’s processes. This information includes how much CPU and memory each process is using. The top command is very helpful when you want to troubleshoot problems with your computer or optimize its performance. While there are many different top commands that can be used on Linux, the most common are ps, netstat, lsof, vmstat, and htop. These top commands can be used to view information about your computer’s processes, view information about your computer’s network connections, view information about open files and the processes that are using…

Read More

The Linux date command displays the current date and time of the system. While writing the shell scripts, I realise that sometimes we are required to find future dates—for example, dates after 10 days, 2 months, or 1 year, etc. The date command provides an option to display the future dates as described. -d, –date=STRING display time described by STRING, not ‘now’ Let’s understand this with some examples: Display current date: Simply type “date” to display the current date and time of system. date Thu Sep 22 03:58:36 UTC 2022 Date after 10 days: What will be the date after…

Read More

The pathlib module offers classes representing filesystem paths with semantics appropriate for different operating systems. We can create nested directory structure suing pathlib.Path.mkdir function in Python. On Linux:

On Windows:

Here: parents=True: instruct to create parent directories if not available. exist_ok=True: Do not throw an error if a directory already exists. Execute the above Python script and checked for the newly created directory tree. /dir1 └── dir2 └── dir3

Read More

The Python virtual environment provides a command “deactivate” to go back to normal. Once the virtualenv is activated, you simply run the below command to deactivate the environment and get the original shell back. deactivate In the case of using “Anaconda” run the following command to deactivate the conda environment. conda deactivate Reference: https://docs.python.org/3/library/venv.html

Read More

Environment variables are a way to store values on the local machine (the one running the program). For example, you can store a user ID that would be used for logging in to a system. You can also use environment variables to store configuration settings like the name of a database connection. When setting environment variables, it is important to consider the security implications. If an attacker is able to access your environment variables, they could gain access to sensitive information such as your username and password. Therefore, it is important to keep your environment variable names secure. Those new…

Read More

Let’s Encrypt is a free, automated, and open certificate authority: it lets you create and install free TLS certificates in your web server with a few command-line arguments. With Let’s Encrypt, you can provide HTTPS on your website for every user without spending money or worrying about renewal dates. The Certbot provides an easy way to generate Let’s Encrypt free certificates for all websites that support HTTP and serve their content over HTTPS. In this article, we will see how to use Certbot to automate the process of generating Let’s Encrypt certificates. Step 1 – Installing Certbot Most Linux systems…

Read More

Maven Local Repository is a feature provided in Maven that allows you to manage local copies of your project’s dependencies. By default, Maven makes a copy of each dependency artifact that is used in your project and stores it in the local repository. macOS – /Users/{username}/.m2/repository Linux – /home/{username}/.m2/repository Windows – c:\Users\{username}\.m2\repository Customize Maven Local Repository The settings.xml is the main configuration file of Maven. It is available for user-level or system-level configurations. Global level: Is available at ${MAVEN_HOME}/conf/settings.xml is applied for all Maven users on the system that share the same installation. User level: Can be found at ${HOME}/.m2/settings.xml.…

Read More

A terminal is the command line interface (CLI) for the macOS. That takes only commands as input and is sent to the operating system. The default font size is good enough, but some people require to increase in font size for better visibility. You can increase or decrease the terminal font size via terminal preferences. Launch a terminal on your system. Then open in the menubar: Terminal >> Preferences A new dialog box will open with the terminal profile editor. Here you can change the terminal theme, background color or image, cursor, font, and font size. Click change button as…

Read More

If you use macOS, you probably use Apple-built apps like Pages, Numbers, and Keynote for word processing, spreadsheets, and presentations. These are great programs with a lot of functionality and ease of use. They’re also not free. You can only get them through the Mac App Store. But if you have to meet a budget or just prefer open source software instead of closed source programs, you might want to look at alternatives. However, there are many great free word processing programs available that are similar to Word, such as Google Docs or Microsoft Office online. Unfortunately, they’re all Windows-only…

Read More

Apache Maven is an open-source, community-driven project that aims to build and maintain the most popular Open Source tools for building Java applications. It was created by the Apache Software Foundation in 2001 as an attempt to standardize the build process for Java projects. Over the years, it has developed into a robust set of tools that can be used for a wide range of projects. Maven provides a number of benefits, including integration with other tools such as Jenkins, AWS CodeStar, and more. This allows for more automated builds and faster release cycles. In this tutorial, we will discuss…

Read More